Through associations should set both parent ids on join models

member = Member.new(club: Club.new)
member.save!

Before:

member.current_membership.club_id # => nil

After:

member.current_membership.club_id # => club's id
Merge pull request #15579 from sgrif/sg-through-associations

Through associations should set both parent ids on join models