Skip to content

Instantly share code, notes, and snippets.

@warmwaffles
Created October 31, 2012 20:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save warmwaffles/3989460 to your computer and use it in GitHub Desktop.
Save warmwaffles/3989460 to your computer and use it in GitHub Desktop.
How I handle database rollbacks on complex migrations
class SomeDumbMigration < ActiveRecord::Migration
def up
### ....
end
def down
raise "WHAT IN DA FUQ ARE YOU DOING"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment