18 lines
398 B
Ruby
18 lines
398 B
Ruby
module JamRuby
|
|
class GenrePlayer < ActiveRecord::Base
|
|
|
|
PROFILE = 'profile'
|
|
VIRTUAL_BAND = 'virtual_band'
|
|
TRADITIONAL_BAND = 'traditional_band'
|
|
PAID_SESSION = 'paid_session'
|
|
FREE_SESSION = 'free_session'
|
|
COWRITING = 'cowriting'
|
|
|
|
self.table_name = "genre_players"
|
|
|
|
belongs_to :player, polymorphic: true
|
|
belongs_to :genre, class_name: "JamRuby::Genre"
|
|
|
|
end
|
|
end
|