diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-06-13 09:46:30 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-06-13 09:46:42 -0700 |
commit | b483a0d2a75bbec2f5eee363c88238cb612f07d6 (patch) | |
tree | 40c6422cd8477ee299ace2505c9bd4258f253243 /activerecord/test/cases/column_test.rb | |
parent | 47e8bb10a421831f8119af91d7ca29c949268475 (diff) | |
download | rails-b483a0d2a75bbec2f5eee363c88238cb612f07d6.tar.gz rails-b483a0d2a75bbec2f5eee363c88238cb612f07d6.tar.bz2 rails-b483a0d2a75bbec2f5eee363c88238cb612f07d6.zip |
Ambiguous reflections are on :through relationships are no longer supported.
For example, you need to change this:
class Author < ActiveRecord::Base
has_many :posts
has_many :taggings, :through => :posts
end
class Post < ActiveRecord::Base
has_one :tagging
has_many :taggings
end
class Tagging < ActiveRecord::Base
end
To this:
class Author < ActiveRecord::Base
has_many :posts
has_many :taggings, :through => :posts, :source => :tagging
end
class Post < ActiveRecord::Base
has_one :tagging
has_many :taggings
end
class Tagging < ActiveRecord::Base
end
Diffstat (limited to 'activerecord/test/cases/column_test.rb')
0 files changed, 0 insertions, 0 deletions