Skip to content

Instantly share code, notes, and snippets.

@mattmarcello
Created May 12, 2014 13:47
Show Gist options
  • Save mattmarcello/296ac3248aeea6e87cbc to your computer and use it in GitHub Desktop.
Save mattmarcello/296ac3248aeea6e87cbc to your computer and use it in GitHub Desktop.
class DropChefs < ActiveRecord::Migration
# The `change` method is insufficient
# def change
# drop_table :celebrity_chefs
# end
def up
drop_table :celebrity_chefs
end
def down
create_table :celebrity_chefs do |t|
t.string :name
t.integer :age
t.boolean :bleached_goatee
t.timestamps
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment