Sha256: 74c508a5fa454331e7c6726ea887a602846de0b60aa22554aafa5b663bc20c81

Contents?: true

Size: 374 Bytes

Versions: 3

Compression:

Stored size: 374 Bytes

Contents

module WorldDb::Model

class Country
  has_many :beers,     :class_name => 'BeerDb::Model::Beer',    :foreign_key => 'country_id'
  has_many :brands,    :class_name => 'BeerDb::Model::Brand',   :foreign_key => 'country_id'
  has_many :breweries, :class_name => 'BeerDb::Model::Brewery', :foreign_key => 'country_id'
end # class Country

end # module WorldDb::Model

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
beerdb-0.9.2 lib/beerdb/models/country.rb
beerdb-0.9.1 lib/beerdb/models/country.rb
beerdb-0.9.0 lib/beerdb/models/country.rb