Sha256: 9fc28ffd172c64a4042dd6876b75bcfe09e76aca83058ef14dcd1e2051d03170
Contents?: true
Size: 584 Bytes
Versions: 8
Compression:
Stored size: 584 Bytes
Contents
class Participate < ActiveRecord::Base attr_accessible :patron_id, :event_id 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 paginates_per 10 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 not null # updated_at :datetime not null #
Version data entries
8 entries across 8 versions & 1 rubygems