Skip to content

Commit

Permalink
doc: use change to modify migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
lazaro committed Jul 2, 2013
1 parent ee938ac commit 933b642
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions book/02_getting_started.md
Expand Up @@ -241,14 +241,10 @@ upon each other like LEGO blocks. Each new Migrations must have different
class's names, is a good idea name migration's explicit. For exmaple:

class AddTagColumn < V 1.1
def self.up
def self.change
add_column Page.table_name, :tag, :string
Page.reset_column_information
end

def self.down
drop_table Page.table_name
end
end

Now we just need to tell Camping to use our migration. Write this at the bottom of nuts.rb
Expand Down

0 comments on commit 933b642

Please sign in to comment.