Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # this works
- belongs_to :company, :foreign_key => 'companyId'
- # this does not, although it should be equivalent?
- belongs_to :company, :foreign_key => Company.primary_key # Company.primary_key is "companyId"
Add Comment
Please, Sign In to add comment