Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use new migration style in HABTM join table

Yes, we're on Rails 3.1 now.
  • Loading branch information...
commit d64e0955d04a40355e312ca4ee57b2c9a8e248cc 1 parent 0cd93a6
Prem Sichanugrist sikachu authored
Showing with 1 addition and 5 deletions.
  1. +1 −5 activerecord/lib/active_record/associations.rb
6 activerecord/lib/active_record/associations.rb
View
@@ -1424,16 +1424,12 @@ def belongs_to(name, options = {})
# 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:
Please sign in to comment.
Something went wrong with that request. Please try again.