Sha256: 2dae9dc3415e05f9c6d12d272f365b2f4c61505a161120f6cefc93b0c3ebea7f

Contents?: true

Size: 267 Bytes

Versions: 4

Compression:

Stored size: 267 Bytes

Contents

# Stores the fact that a user is attending a conference.
# origin: M
class Attendance < ActiveRecord::Base

  validates_presence_of :user_id, :conference_id
  validates_uniqueness_of :user_id, :scope => :conference_id

  belongs_to :user
  belongs_to :conference

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
serum-rails-0.2.1 spec/test_apps/rails-2-3/app/models/attendance.rb
serum-rails-0.2.0 spec/test_apps/rails-2-3/app/models/attendance.rb
serum-rails-0.1.1 spec/test_app/app/models/attendance.rb
serum-rails-0.1.0 spec/test_app/app/models/attendance.rb