Sha256: 7b429ac4a758fd4acfd97bb5dd7eaa3674097b61973e2ab0b497ab7289248624

Contents?: true

Size: 842 Bytes

Versions: 1

Compression:

Stored size: 842 Bytes

Contents

class CheckoutStatHasManifestation < ApplicationRecord
  # attr_accessible :manifestation_checkout_stat_id, :manifestation_id,
  #  as: :admin
  belongs_to :manifestation_checkout_stat
  belongs_to :manifestation

  validates :manifestation_id, uniqueness: { scope: :manifestation_checkout_stat_id }
  validates :manifestation_checkout_stat_id, :manifestation_id, presence: true

  paginates_per 10
end

# == Schema Information
#
# Table name: checkout_stat_has_manifestations
#
#  id                             :bigint           not null, primary key
#  manifestation_checkout_stat_id :bigint           not null
#  manifestation_id               :bigint           not null
#  checkouts_count                :integer
#  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_manifestation.rb