Sha256: 6864f6d3eb6959096de70d6865e3c1c2dc7fc7734d6350cde504fda525b7f788
Contents?: true
Size: 695 Bytes
Versions: 6
Compression:
Stored size: 695 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 :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
6 entries across 6 versions & 1 rubygems