fix hound

This commit is contained in:
Mojca Lorber 2017-04-10 10:45:56 +02:00
parent cf57c5dc87
commit a1bc26f549

View file

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