Hi,
Is that possible to establish a relationship between Tree and Branch such as:
class Tree < ActiveRecord::Base
has_many :branches
end
class Branch < ActiveRecord::Base
belongs_to :tree
end
But with an array of foreign keys branch_ids stored in Tree? I know it's the opposite of the default process, but I want to do so (just for testing).
Many thanks for any help.