aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG
diff options
context:
space:
mode:
authorganesh <ganesh@ganesh-laptop.(none)>2011-06-04 00:31:45 +0530
committerganesh <ganesh@ganesh-laptop.(none)>2011-06-04 00:31:45 +0530
commit79990505e5080804b53d81fec059136afa2237d7 (patch)
tree3d005c116ecf4dabafd6acba5185a80150ab2048 /activerecord/CHANGELOG
parent72f51990b72482df41c1711b43e77f94177224be (diff)
downloadrails-79990505e5080804b53d81fec059136afa2237d7.tar.gz
rails-79990505e5080804b53d81fec059136afa2237d7.tar.bz2
rails-79990505e5080804b53d81fec059136afa2237d7.zip
updated Changelog
Diffstat (limited to 'activerecord/CHANGELOG')
-rw-r--r--activerecord/CHANGELOG18
1 files changed, 6 insertions, 12 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG
index b05d3970c7..f44ddc58b4 100644
--- a/activerecord/CHANGELOG
+++ b/activerecord/CHANGELOG
@@ -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]