Sha256: 74bf58cdf1e3fac07fb22d3d84a193af16060ad92999fe1b9e6eb97ac2f8821f

Contents?: true

Size: 323 Bytes

Versions: 1

Compression:

Stored size: 323 Bytes

Contents

module BitcoinActiveRecord::Models::SentBitcoinTransaction
  extend ActiveSupport::Concern

  included do
    belongs_to(:bitcoin_transaction, inverse_of: :sent_bitcoin_transaction, dependent: :destroy)

    validates(:bitcoin_transaction, presence: true)
    validates(:bitcoin_transaction_id, uniqueness: true)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bitcoin_active_record-0.1.0 lib/bitcoin_active_record/models/sent_bitcoin_transaction.rb