diff --git a/db/migrate/20170407104322_remove_default_checklist_item_position_value.rb b/db/migrate/20170407104322_remove_default_checklist_item_position_value.rb new file mode 100644 index 000000000..286feee75 --- /dev/null +++ b/db/migrate/20170407104322_remove_default_checklist_item_position_value.rb @@ -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