[Rails] Foreign key
HI all,
In my application i have 2 tables, 1.logins and 2. credits.
logins contains customer details and credits has credit detils of
customers.
i have given custom foreign key while migrating database for credits
table instead of logins_id i have given as log_id.
how to mention this in model associtations
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home