Created
November 15, 2012 07:33
-
-
Save elico/4077221 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#db name:msg | |
#tables client, queue, templates | |
#I want to store messages queue and when needed to compose msg from templates. | |
#I have id field in each one of them | |
# | |
# in the queue I have template ID and client ID and I want to use one select to get all the data from both tables. | |
# so what relationship needed? I kind of go confused with belongs_to and has_many. | |
# thanks. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment