Sha256: d5e91788c6d1f747153dff837d2634a8f4f3682bc742d613f4797ecff4ef7446

Contents?: true

Size: 264 Bytes

Versions: 2

Compression:

Stored size: 264 Bytes

Contents

module BitcoinActiveRecord::Models::SentPayment
  extend ActiveSupport::Concern

  included do
    belongs_to(:payment, inverse_of: :sent_payment, dependent: :destroy)

    validates(:payment, presence: true)
    validates(:payment_id, uniqueness: true)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bitcoin_active_record-0.0.2 lib/bitcoin_active_record/models/sent_payment.rb
bitcoin_active_record-0.0.1 lib/bitcoin_active_record/models/sent_payment.rb