Sha256: 5a37b29486e053ad2380e09676f4412380bd87a34011c6ab0c52c0088ad61337

Contents?: true

Size: 300 Bytes

Versions: 2

Compression:

Stored size: 300 Bytes

Contents

class PlayList < ActiveRecord::Base
  self.table_name = 'PlayList'
  self.primary_key = 'PlayListId'

  alias_attribute :id, 'PlayListId'
  alias_attribute :name, 'Name'

  has_and_belongs_to_many :tracks, join_table: 'PlayListTrack', foreign_key: 'PlayListId', association_foreign_key: 'TrackId'
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
chinook_database-0.1.3 lib/chinook_database/models/play_list.rb
chinook_database-0.1.2 lib/chinook_database/models/play_list.rb