Browse Source

Fix migration to rollback

pull/17/head
Angel Aviel Domaoan 4 years ago committed by Angel Aviel Domaoan
parent
commit
0cdc0be78b
  1. 8
      db/migrate/20220128044651_remove_annomark_id_in_annotations.rb

8
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

Loading…
Cancel
Save