Sha256: 8212378ad64f44c75cd1a744d5841253ecc9d59e7afb122ef281f509ff8b0c94

Contents?: true

Size: 227 Bytes

Versions: 10

Compression:

Stored size: 227 Bytes

Contents

module Billing
  class ReceiptConfig < ActiveRecord::Base
    has_many :origins, inverse_of: :receipt_config, dependent: :restrict_with_exception
    validates :name, presence: true, uniqueness: { scope: :master_id }
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
billing-0.2.2 app/models/billing/receipt_config.rb
billing-0.2.1 app/models/billing/receipt_config.rb
billing-0.2.0 app/models/billing/receipt_config.rb
billing-0.1.9 app/models/billing/receipt_config.rb
billing-0.1.8 app/models/billing/receipt_config.rb
billing-0.1.7 app/models/billing/receipt_config.rb
billing-0.1.6 app/models/billing/receipt_config.rb
billing-0.1.5 app/models/billing/receipt_config.rb
billing-0.1.4 app/models/billing/receipt_config.rb
billing-0.1.3 app/models/billing/receipt_config.rb