ccuilla wrote: > On Sep 28, 9:34�am, John Barnette <[email protected]> wrote: > >> Fixture entries are intentionally tied to the structure of the DB. � >> Since that's the case, the association goes on the side with the � >> foreign key. In your situation, the users table has an account_id � >> field, and the accounts table has nothing. > > Actually the accounts table has an administrator_id (which maps to id > in users) and the users table has an account_id column (which maps to > id in accounts).
You don't need both. In fact, you shouldn't have both: it decreases maintainability without providing any benefit. Best, -- Marnen Laibow-Koser http://www.marnen.org [email protected] -- 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

