Created
May 12, 2014 13:47
-
-
Save mattmarcello/296ac3248aeea6e87cbc to your computer and use it in GitHub Desktop.
This file contains 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 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