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:
parent
8e890fbaa6
commit
56f38bcdcf
2 changed files with 7 additions and 2 deletions
5
db/migrate/20150628113425_make_package_name_not_null.rb
Normal file
5
db/migrate/20150628113425_make_package_name_not_null.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
class MakePackageNameNotNull < ActiveRecord::Migration
|
||||
def change
|
||||
change_column :packages, :name, :string, null: false
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue