module JamRuby class IcecastServerMount < ActiveRecord::Base self.table_name = 'icecast_server_mounts' attr_accessible :icecast_mount_id, :icecast_server_id, as: :admin belongs_to :mount, :class_name => "JamRuby::IcecastMount", :foreign_key => 'icecast_mount_id', :inverse_of => :server_mounts belongs_to :server, :class_name => "JamRuby::IcecastServer", :foreign_key => 'icecast_server_id', :inverse_of => :server_mounts validates :server, :presence => true validates :mount, :presence => true end end