Sha256: 154295c7d58801f60192d9d3b510cf3e06435b48b57ca214275d01cc82d432b9

Contents?: true

Size: 703 Bytes

Versions: 29

Compression:

Stored size: 703 Bytes

Contents

class ReserveStatHasUser < ActiveRecord::Base
  attr_accessible
  attr_accessible :user_reserve_stat_id, :user_id,
    :as => :admin
  belongs_to :user_reserve_stat
  belongs_to :user

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

  paginates_per 10
end

# == Schema Information
#
# Table name: reserve_stat_has_users
#
#  id                   :integer          not null, primary key
#  user_reserve_stat_id :integer          not null
#  user_id              :integer          not null
#  reserves_count       :integer
#  created_at           :datetime         not null
#  updated_at           :datetime         not null
#

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
enju_circulation-0.1.0.pre36 app/models/reserve_stat_has_user.rb
enju_circulation-0.1.0.pre35 app/models/reserve_stat_has_user.rb
enju_circulation-0.1.0.pre34 app/models/reserve_stat_has_user.rb
enju_circulation-0.1.0.pre33 app/models/reserve_stat_has_user.rb
enju_circulation-0.1.0.pre32 app/models/reserve_stat_has_user.rb
enju_circulation-0.1.0.pre31 app/models/reserve_stat_has_user.rb
enju_circulation-0.1.0.pre30 app/models/reserve_stat_has_user.rb
enju_circulation-0.1.0.pre29 app/models/reserve_stat_has_user.rb
enju_circulation-0.1.0.pre28 app/models/reserve_stat_has_user.rb
enju_circulation-0.1.0.pre27 app/models/reserve_stat_has_user.rb
enju_circulation-0.1.0.pre26 app/models/reserve_stat_has_user.rb
enju_circulation-0.1.0.pre25 app/models/reserve_stat_has_user.rb
enju_circulation-0.1.0.pre24 app/models/reserve_stat_has_user.rb
enju_circulation-0.1.0.pre23 app/models/reserve_stat_has_user.rb
enju_circulation-0.1.0.pre22 app/models/reserve_stat_has_user.rb
enju_circulation-0.1.0.pre21 app/models/reserve_stat_has_user.rb
enju_circulation-0.1.0.pre20 app/models/reserve_stat_has_user.rb
enju_circulation-0.1.0.pre19 app/models/reserve_stat_has_user.rb
enju_circulation-0.1.0.pre18 app/models/reserve_stat_has_user.rb
enju_circulation-0.1.0.pre17 app/models/reserve_stat_has_user.rb