fix default value for position of checklist items

This commit is contained in:
Mojca Lorber 2017-04-07 14:35:47 +02:00
parent 4855111dcb
commit cf57c5dc87

View file

@ -0,0 +1,9 @@
class RemoveDefaultChecklistItemPositionValue < ActiveRecord::Migration
def up
change_column :checklist_items, :position, :integer, default: nil, null: true
end
def down
change_column :checklist_items, :position, :integer, default: 0, null: false
end
end