Where are the models defined?
Are they Refinery models, are they from a refinery extension, or are they your own.
Whatever the details, the basic answer will refer back Rails Active Record Associations - has_one, has_many, belongs_to, has_and_belongs_to_many and has_many through.