* VRFS-34 and VRFS-61; forgot to add new connection_track model

This commit is contained in:
Seth Call 2012-11-03 22:20:05 -05:00
parent 54ac90d386
commit aca5e758b4
1 changed files with 15 additions and 0 deletions

View File

@ -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