Sha256: 0c7dd4a1322e5a453b60c91e25ff067a895bc96ec8c6e00f809079010290fc2f

Contents?: true

Size: 580 Bytes

Versions: 6

Compression:

Stored size: 580 Bytes

Contents

class Participate < ActiveRecord::Base
  attr_accessible :agent_id, :event_id
  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

6 entries across 6 versions & 1 rubygems

Version Path
enju_event-0.1.17.pre18 app/models/participate.rb
enju_event-0.1.17.pre17 app/models/participate.rb
enju_event-0.1.17.pre16 app/models/participate.rb
enju_event-0.1.17.pre15 app/models/participate.rb
enju_event-0.1.17.pre14 app/models/participate.rb
enju_event-0.1.17.pre13 app/models/participate.rb