Sha256: 53e6acee84dd9d3e52b4a8c9e35342da808dfebfb419890cfa91d86d09b2c2b4

Contents?: true

Size: 367 Bytes

Versions: 3

Compression:

Stored size: 367 Bytes

Contents

module WorldDb::Model

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

end # module WorldDb::Model

Version data entries

3 entries across 3 versions & 1 rubygems

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