daily pastebin goal
1%
SHARE
TWEET

Untitled

a guest Jun 14th, 2018 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # this works
  2.   belongs_to :company, :foreign_key => 'companyId'
  3.   # this does not, although it should be equivalent?
  4.   belongs_to :company, :foreign_key => Company.primary_key # Company.primary_key is "companyId"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top