Need a unique gift idea?
A Pastebin account makes a great Christmas gift


a guest Jun 14th, 2018 50 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  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