Sha256: efe1e779d398d0dbae8895f32b52abf999945e92903a0b36aa7afea101a1e1a6
Contents?: true
Size: 505 Bytes
Versions: 5
Compression:
Stored size: 505 Bytes
Contents
class Participate < ApplicationRecord belongs_to :agent belongs_to :event validates :agent_id, :event_id, presence: true validates :agent_id, uniqueness: { 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 # updated_at :datetime #
Version data entries
5 entries across 5 versions & 1 rubygems