Sha256: 3763d544de0c189853e9776fbbefe6f586631195489baebeea84e502772de497

Contents?: true

Size: 294 Bytes

Versions: 3

Compression:

Stored size: 294 Bytes

Contents

class Album < ActiveRecord::Base
  self.table_name = 'Album'
  self.primary_key = 'AlbumId'

  alias_attribute :id, 'AlbumId'
  alias_attribute :title, 'Title'
  alias_attribute :artist_id, 'ArtistId'

  belongs_to :artist, foreign_key: 'ArtistId'
  has_many :tracks, foreign_key: 'AlbumId'
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
chinook_database-0.1.4 lib/chinook_database/models/album.rb
chinook_database-0.1.3 lib/chinook_database/models/album.rb
chinook_database-0.1.2 lib/chinook_database/models/album.rb