Sha256: a01015041e82c844204fc5ab3168479484fe183208eed60a918a1064f4d8dabd
Contents?: true
Size: 539 Bytes
Versions: 1
Compression:
Stored size: 539 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 :bigint not null, primary key # agent_id :bigint not null # event_id :bigint not null # position :integer # created_at :datetime not null # updated_at :datetime not null #
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
enju_event-0.4.0.rc.1 | app/models/participate.rb |