Sha256: 8d77369a924af388c5afc5e2cb9e85adf05e28d646c0e0d046d36c1de512f968

Contents?: true

Size: 666 Bytes

Versions: 7

Compression:

Stored size: 666 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
#  updated_at           :datetime
#

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
enju_circulation-0.1.0.pre7 app/models/reserve_stat_has_user.rb
enju_circulation-0.1.0.pre6 app/models/reserve_stat_has_user.rb
enju_circulation-0.1.0.pre5 app/models/reserve_stat_has_user.rb
enju_circulation-0.1.0.pre4 app/models/reserve_stat_has_user.rb
enju_circulation-0.1.0.pre3 app/models/reserve_stat_has_user.rb
enju_circulation-0.1.0.pre2 app/models/reserve_stat_has_user.rb
enju_circulation-0.1.0.pre app/models/reserve_stat_has_user.rb