Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 5be0c6a4e3
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (12 sloc) 0.383 kb
class Transaction
include Mongoid::Document
field :hash, type: Binary
field :version, type: BigInteger
field :lock_time, type: BigInteger
field :coinbase, type: Boolean
field :size, type: Integer
validates :hash, unique: true
has_and_belongs_to_many :blocks, class_name: 'Block'
has_many :transaction_outs
has_many :transaction_ins
end
Jump to Line
Something went wrong with that request. Please try again.