Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. def self.down
  2. # By default, we don't want to make any assumption about how to roll back a migration when your
  3. # model already existed. Please edit below which fields you would like to remove in this migration.
  4. raise ActiveRecord::IrreversibleMigration
  5. end
  6.  
  7. `StandardError: An error has occurred, this and all later migrations canceled:
  8.  
  9. ActiveRecord::IrreversibleMigration`
  10.  
  11. ActiveRecord::Connection.base.execute('your ALTER query')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement