Sha256: 528610fe49aa360f9fae98d52f4aca8560529469de7c4f910907eba11dd86aed
Contents?: true
Size: 728 Bytes
Versions: 1
Compression:
Stored size: 728 Bytes
Contents
class CheckoutStatHasUser < ApplicationRecord # attr_accessible :user_checkout_stat_id, :user_id, # as: :admin belongs_to :user_checkout_stat belongs_to :user validates :user_id, uniqueness: { scope: :user_checkout_stat_id } validates :user_checkout_stat_id, :user_id, presence: true paginates_per 10 end # == Schema Information # # Table name: checkout_stat_has_users # # id :bigint not null, primary key # user_checkout_stat_id :bigint not null # user_id :bigint not null # checkouts_count :integer default(0), not null # created_at :datetime not null # updated_at :datetime not null #
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
enju_circulation-0.4.0.rc.1 | app/models/checkout_stat_has_user.rb |