Hi I have a table where I need to identify one of the children as the
So, its like:
has_one: Child :as :prime_child (?)
or something like that? Do I put something like prime_child_id in the
Yes. You should be able to do
class Parent < AR::B
has_many :children # not :Child !
has_one :prime_child, :class_name => 'Child'
The two associations are completely independent. The fact that they
refer to the same child class and table is irrelevant.