Sha256: 93e9652d05df790653779d54ea33bd9eb47fe090b30c5c7e8a37b6c69ffa98a4
Contents?: true
Size: 694 Bytes
Versions: 9
Compression:
Stored size: 694 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 :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
9 entries across 9 versions & 1 rubygems