aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPrem Sichanugrist <s@sikachu.com>2011-10-20 17:13:01 -0400
committerPrem Sichanugrist <s@sikachu.com>2011-10-20 17:13:01 -0400
commitd64e0955d04a40355e312ca4ee57b2c9a8e248cc (patch)
tree5ad96af0c458b2e24d47a62e199e3fe1767c387c
parent0cd93a6e2bbcdd2ead0d6e4b739dfd8def04d8d5 (diff)
downloadrails-d64e0955d04a40355e312ca4ee57b2c9a8e248cc.tar.gz
rails-d64e0955d04a40355e312ca4ee57b2c9a8e248cc.tar.bz2
rails-d64e0955d04a40355e312ca4ee57b2c9a8e248cc.zip
Use new migration style in HABTM join table
Yes, we're on Rails 3.1 now.
-rw-r--r--activerecord/lib/active_record/associations.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb
index 0952ea2829..2449df079a 100644
--- a/activerecord/lib/active_record/associations.rb
+++ b/activerecord/lib/active_record/associations.rb
@@ -1424,16 +1424,12 @@ module ActiveRecord
# join table with a migration such as this:
#
# class CreateDevelopersProjectsJoinTable < ActiveRecord::Migration
- # def self.up
+ # def change
# create_table :developers_projects, :id => false do |t|
# t.integer :developer_id
# t.integer :project_id
# end
# end
- #
- # def self.down
- # drop_table :developers_projects
- # end
# end
#
# Adds the following methods for retrieval and query: