Sha256: a4611ef748abe50abcba8f236a0b18a56dc9d6a0eb3e48f62803e5e94cb759f6
Contents?: true
Size: 521 Bytes
Versions: 23
Compression:
Stored size: 521 Bytes
Contents
class Participate < ActiveRecord::Base belongs_to :patron belongs_to :event validates_presence_of :patron_id, :event_id validates_uniqueness_of :patron_id, :scope => :event_id acts_as_list :scope => :event_id def self.per_page 10 end end # == Schema Information # # Table name: participates # # id :integer not null, primary key # patron_id :integer not null # event_id :integer not null # position :integer # created_at :datetime # updated_at :datetime #
Version data entries
23 entries across 23 versions & 1 rubygems