aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/member_detail.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/models/member_detail.rb')
-rw-r--r--activerecord/test/models/member_detail.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/activerecord/test/models/member_detail.rb b/activerecord/test/models/member_detail.rb
index 9d253aa126..157130986c 100644
--- a/activerecord/test/models/member_detail.rb
+++ b/activerecord/test/models/member_detail.rb
@@ -1,7 +1,8 @@
class MemberDetail < ActiveRecord::Base
- belongs_to :member, :inverse_of => false
+ belongs_to :member, inverse_of: false
belongs_to :organization
- has_one :member_type, :through => :member
+ has_one :member_type, through: :member
+ has_one :membership, through: :member
- has_many :organization_member_details, :through => :organization, :source => :member_details
+ has_many :organization_member_details, through: :organization, source: :member_details
end