Sha256: 2fb1aebbac19b9e47d9e4cf9b2720bd69dea9045e56e2357c8e5183d241c2485
Contents?: true
Size: 535 Bytes
Versions: 7
Compression:
Stored size: 535 Bytes
Contents
class Participate < ActiveRecord::Base belongs_to :agent belongs_to :event validates_presence_of :agent_id, :event_id validates_uniqueness_of :agent_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 # agent_id :integer not null # event_id :integer not null # position :integer # created_at :datetime not null # updated_at :datetime not null #
Version data entries
7 entries across 7 versions & 1 rubygems