Displaying 1 result from an estimated 1 matches for "find_by_media_id_and_price_code_id".
2006 Aug 09
2
has_many through delete issue
I have the following many-to-many relationships defined in my model code
to model a many to many relationship between Media and PriceCode with
Price being the association table:
class Media < ActiveRecord::Base
has_many :prices
has_many :price_codes, :through => :prices
end
class Price < ActiveRecord::Base
belongs_to :media
belongs_to :price_code
end
class PriceCode <