lib/beerdb/models/beer.rb in beerdb-0.5.2 vs lib/beerdb/models/beer.rb in beerdb-0.6.0
- old
+ new
@@ -6,9 +6,10 @@
belongs_to :country, :class_name => 'WorldDb::Models::Country', :foreign_key => 'country_id'
belongs_to :region, :class_name => 'WorldDb::Models::Region', :foreign_key => 'region_id'
belongs_to :city, :class_name => 'WorldDb::Models::City', :foreign_key => 'city_id'
+ belongs_to :brand, :class_name => 'BeerDb::Models::Brewery', :foreign_key => 'brand_id'
belongs_to :brewery, :class_name => 'BeerDb::Models::Brewery', :foreign_key => 'brewery_id'
has_many :taggings, :as => :taggable, :class_name => 'WorldDb::Models::Tagging'
has_many :tags, :through => :taggings, :class_name => 'WorldDb::Models::Tag'