aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/CHANGELOG12
1 files changed, 6 insertions, 6 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG
index f44ddc58b4..97bec3f11d 100644
--- a/activerecord/CHANGELOG
+++ b/activerecord/CHANGELOG
@@ -237,13 +237,13 @@
rails g model post user:belongs_to will generate the following:
class CreatePosts < ActiveRecord::Migration
- def change
- create_table :posts do |t|
- t.belongs_to :user
- t.timestamps
- end
- add_index :posts, :user_id
+ def change
+ create_table :posts do |t|
+ t.belongs_to :user
+ t.timestamps
end
+ add_index :posts, :user_id
+ end
end
[Santiago Pastorino]