Sha256: adf0a818b68c5743c9d088767675ffb3621c6df67ee5308579e6eb76556e67d8

Contents?: true

Size: 688 Bytes

Versions: 21

Compression:

Stored size: 688 Bytes

Contents

class CheckoutStatHasUser < ActiveRecord::Base
  #attr_accessible :user_checkout_stat_id, :user_id,
  #  as: :admin
  belongs_to :user_checkout_stat
  belongs_to :user

  validates_uniqueness_of :user_id, scope: :user_checkout_stat_id
  validates_presence_of :user_checkout_stat_id, :user_id

  paginates_per 10
end

# == Schema Information
#
# Table name: checkout_stat_has_users
#
#  id                    :integer          not null, primary key
#  user_checkout_stat_id :integer          not null
#  user_id               :integer          not null
#  checkouts_count       :integer          default(0), not null
#  created_at            :datetime
#  updated_at            :datetime
#

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
enju_circulation-0.2.5 app/models/checkout_stat_has_user.rb
enju_circulation-0.2.4 app/models/checkout_stat_has_user.rb
enju_circulation-0.2.3 app/models/checkout_stat_has_user.rb
enju_circulation-0.2.2 app/models/checkout_stat_has_user.rb
enju_circulation-0.2.1 app/models/checkout_stat_has_user.rb
enju_circulation-0.2.0 app/models/checkout_stat_has_user.rb
enju_circulation-0.2.0.beta.4 app/models/checkout_stat_has_user.rb
enju_circulation-0.2.0.beta.3 app/models/checkout_stat_has_user.rb
enju_circulation-0.2.0.beta.2 app/models/checkout_stat_has_user.rb
enju_circulation-0.2.0.beta.1 app/models/checkout_stat_has_user.rb
enju_circulation-0.1.2 app/models/checkout_stat_has_user.rb
enju_circulation-0.1.1 app/models/checkout_stat_has_user.rb
enju_circulation-0.1.0 app/models/checkout_stat_has_user.rb
enju_circulation-0.1.0.pre49 app/models/checkout_stat_has_user.rb
enju_circulation-0.1.0.pre48 app/models/checkout_stat_has_user.rb
enju_circulation-0.1.0.pre47 app/models/checkout_stat_has_user.rb
enju_circulation-0.1.0.pre46 app/models/checkout_stat_has_user.rb
enju_circulation-0.1.0.pre45 app/models/checkout_stat_has_user.rb
enju_circulation-0.1.0.pre44 app/models/checkout_stat_has_user.rb
enju_circulation-0.1.0.pre43 app/models/checkout_stat_has_user.rb