I have a legacy DB with join tables that have I开发者_开发问答Ds as primary keys... Is there anything I can do?
Thanks!
Instead of has_and_belongs_to_many, use
has_many :whatevers, :through => :habtm_table
I have a legacy DB with join tables that have I开发者_开发问答Ds as primary keys... Is there anything I can do?
Thanks!
Instead of has_and_belongs_to_many, use
has_many :whatevers, :through => :habtm_table
精彩评论