I have a list of items that are ordered according to their provenance.
Origin is ordered under a tree, so that is displays that way:
USA > LA > Los A.
Right now, i have two classes and a join table items_origins.
class Origin < ActiveRecord::Base
class Item < ActiveRecord::Base
I feel like it is unneeded to have a join_table here, and has_many
origins doesn’t seem logic.
Can anyone tell me if i am doing this correctly?