class User schema_inheritance end class Customer < User has_many Project end class Project belongs_to Customer end Customer[1].projects #=> 'no such column user_oid'
The above fails on every other repo pull (STI..)
How did I force the relation through a specific class/table? I remember I fixed this stuff by hand like that.
(1 attempts)
Rayman answered:
belongs_to Customer, :through => Customer
damn it was hidden well..