debshots/db/migrate/20150628113425_make_package_name_not_null.rb
Christoph Haas 56f38bcdcf Make sure that a package has a valid name
If this contraint had been there I would have found a bug
in the import_debian Rake task much sooner.
2015-06-28 15:08:16 +02:00

5 lines
135 B
Ruby

class MakePackageNameNotNull < ActiveRecord::Migration
def change
change_column :packages, :name, :string, null: false
end
end