aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2011-06-06 22:12:34 +0200
committerXavier Noria <fxn@hashref.com>2011-06-06 22:12:34 +0200
commit689e12b828665b7b2cfcda85d46249c5cf2aa713 (patch)
treedcec46788305ef264d6eb1b984e5a55662f952c9
parent5d8df14d6dd3f657af28e72e30f9a97ca9607f82 (diff)
downloadrails-689e12b828665b7b2cfcda85d46249c5cf2aa713.tar.gz
rails-689e12b828665b7b2cfcda85d46249c5cf2aa713.tar.bz2
rails-689e12b828665b7b2cfcda85d46249c5cf2aa713.zip
Revert "updated Changelog "
This reverts commit 79990505e5080804b53d81fec059136afa2237d7. Conflicts: activerecord/CHANGELOG Reason: Sorry, CHANGELOGs can't be edited via docrails.
-rw-r--r--activerecord/CHANGELOG7
1 files changed, 6 insertions, 1 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG
index 97bec3f11d..ead2a244e5 100644
--- a/activerecord/CHANGELOG
+++ b/activerecord/CHANGELOG
@@ -237,13 +237,18 @@
rails g model post user:belongs_to will generate the following:
class CreatePosts < ActiveRecord::Migration
- def change
+ def up
create_table :posts do |t|
t.belongs_to :user
t.timestamps
end
+
add_index :posts, :user_id
end
+
+ def down
+ drop_table :posts
+ end
end
[Santiago Pastorino]