Sha256: 053c2d5fc30d57c6cac8d8efe8b5353e9f4fb8cedcf168106a59026971095c9a
Contents?: true
Size: 727 Bytes
Versions: 4
Compression:
Stored size: 727 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 not null # updated_at :datetime not null #
Version data entries
4 entries across 4 versions & 1 rubygems