Remove unused defined association
`belongs_to :developer` on `Comment` model was added in 431f8e0 but it is unused.
This commit is contained in:
parent
f81f840c02
commit
c073240f70
@ -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 New Issue
Block a user