Created
September 7, 2012 11:14
-
-
Save kinopyo/3665235 to your computer and use it in GitHub Desktop.
Rails irreversible drop table migration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class DropProductsTable < ActiveRecord::Migration | |
def up | |
drop_table :products | |
end | |
def down | |
raise ActiveRecord::IrreversibleMigration | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment