* VRFS-34 and VRFS-61; forgot to add new connection_track model
This commit is contained in:
parent
54ac90d386
commit
aca5e758b4
|
|
@ -0,0 +1,15 @@
|
|||
module JamRuby
|
||||
class ConnectionTrack < ActiveRecord::Base
|
||||
|
||||
self.table_name = "connections_tracks"
|
||||
|
||||
self.primary_key = 'id'
|
||||
|
||||
SOUND = %w(mono stereo)
|
||||
|
||||
belongs_to :connection, :class_name => "JamRuby::Connection", :inverse_of => :connection_tracks
|
||||
belongs_to :instrument, :class_name => "JamRuby::Instrument", :inverse_of => :connection_tracks
|
||||
|
||||
validates :sound, :inclusion => {:in => SOUND}
|
||||
end
|
||||
end
|
||||
Loading…
Reference in New Issue