From 79990505e5080804b53d81fec059136afa2237d7 Mon Sep 17 00:00:00 2001 From: ganesh Date: Sat, 4 Jun 2011 00:31:45 +0530 Subject: updated Changelog --- activerecord/CHANGELOG | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'activerecord/CHANGELOG') 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] -- cgit v1.2.3