Sha256: ebd20061e30d416dda547503bea14b9d6e1474c9db7d451fef98d752ef81181d

Contents?: true

Size: 401 Bytes

Versions: 2

Compression:

Stored size: 401 Bytes

Contents

# encoding: UTF-8

module WorldDb
  module Model

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

  end # module Model
end # module WorldDb

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
beerdb-0.9.4 lib/beerdb/models/city.rb
beerdb-0.9.3 lib/beerdb/models/city.rb