Want to contribute or report missing content? Find all locations in a given country and state. That model can be fetched through this association. Following this strategy you store all the attributes of the classes in one table. This allows you to set the primary keys of the records that will be associated. Thank you time and many to many schema?