mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #29415 from kamipo/remove_unused_defined_association
Remove unused defined association
This commit is contained in:
commit
03fa6b2907
2 changed files with 1 additions and 2 deletions
|
@ -143,7 +143,7 @@ class MergingDifferentRelationsTest < ActiveRecord::TestCase
|
|||
assert_equal ["Mary", "Mary", "Mary", "David"], posts_by_author_name
|
||||
end
|
||||
|
||||
test "relation merging (using a proc argument)" do
|
||||
test "relation merging (using a proc argument)" do
|
||||
dev = Developer.where(name: "Jamis").first
|
||||
|
||||
comment_1 = dev.comments.create!(body: "I'm Jamis", post: Post.first)
|
||||
|
|
|
@ -9,7 +9,6 @@ class Comment < ActiveRecord::Base
|
|||
belongs_to :post, counter_cache: true
|
||||
belongs_to :author, polymorphic: true
|
||||
belongs_to :resource, polymorphic: true
|
||||
belongs_to :developer
|
||||
|
||||
has_many :ratings
|
||||
|
||||
|
|
Loading…
Reference in a new issue