Skip to content

Commit

Permalink
updated Changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
ganesh authored and fxn committed Jun 6, 2011
1 parent f7ac354 commit 5e44184
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions activerecord/CHANGELOG
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -237,19 +237,13 @@
rails g model post user:belongs_to will generate the following: rails g model post user:belongs_to will generate the following:


class CreatePosts < ActiveRecord::Migration class CreatePosts < ActiveRecord::Migration
def up def change
create_table :posts do |t| create_table :posts do |t|
t.belongs_to :user t.belongs_to :user

t.timestamps
t.timestamps end
add_index :posts, :user_id
end end

add_index :posts, :user_id
end

def down
drop_table :posts
end
end end


[Santiago Pastorino] [Santiago Pastorino]
Expand Down

0 comments on commit 5e44184

Please sign in to comment.