diff --git a/app/models/journal_paper.rb b/app/models/journal_paper.rb index 9a92627..1c49805 100644 --- a/app/models/journal_paper.rb +++ b/app/models/journal_paper.rb @@ -31,7 +31,8 @@ class JournalPaper # paginates_per 10 #relations - belongs_to :member_profile + has_and_belongs_to_many :member_profile, class_name: "MemberProfile", foreign_key: 'member_profile_id' + belongs_to :journal_paper_type has_and_belongs_to_many :journal_types