diff --git a/db/migrate/20220128044651_remove_annomark_id_in_annotations.rb b/db/migrate/20220128044651_remove_annomark_id_in_annotations.rb index 69f2a50..1521c38 100644 --- a/db/migrate/20220128044651_remove_annomark_id_in_annotations.rb +++ b/db/migrate/20220128044651_remove_annomark_id_in_annotations.rb @@ -1,5 +1,9 @@ class RemoveAnnomarkIdInAnnotations < ActiveRecord::Migration[6.1] - def change - safety_assured { remove_column :annotations, :annomark_id, :integer, null: false } + def up + safety_assured { remove_column :annotations, :annomark_id, :integer } + end + + def down + add_column :annotations, :annomark_id, :integer, null: false end end