Permalink
Browse files

updated Changelog

  • Loading branch information...
ganesh
ganesh committed Jun 3, 2011
1 parent 72f5199 commit 79990505e5080804b53d81fec059136afa2237d7
Showing with 6 additions and 12 deletions.
  1. +6 −12 activerecord/CHANGELOG
View
@@ -237,19 +237,13 @@
rails g model post user:belongs_to will generate the following:
class CreatePosts < ActiveRecord::Migration
- def up
- create_table :posts do |t|
- t.belongs_to :user
-
- t.timestamps
+ def change
+ create_table :posts do |t|
+ t.belongs_to :user
+ t.timestamps
+ end
+ add_index :posts, :user_id
end
-
- add_index :posts, :user_id
- end
-
- def down
- drop_table :posts
- end
end
[Santiago Pastorino]

0 comments on commit 7999050

Please sign in to comment.