Problem Associating Two Models

I have a List model which holds all of the lists used throughout the
app. This model has the following fields: id, list, value, sequence.
To fetch a list of states, you could do something like

Now I also have a Record model which holds a reference to a User
model. I also want it to link back to three different lists (state,
country, and user_group). These references are independent of each
other and should be linked by a list ID. Any ideas on how to
construct the Record model and database structure?

Thanks in advance!

  • Dave

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs