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.
This commit is contained in:
Christoph Haas 2015-06-28 15:08:16 +02:00
parent 8e890fbaa6
commit 56f38bcdcf
2 changed files with 7 additions and 2 deletions

View file

@ -0,0 +1,5 @@
class MakePackageNameNotNull < ActiveRecord::Migration
def change
change_column :packages, :name, :string, null: false
end
end