Set inverse relationship on a has_many when it is a belongs_to or a habtm.