Sha256: 0d05665de709bd5315435de6a06d6c88525411b0c1cec18173119604b33e3bfe

Contents?: true

Size: 455 Bytes

Versions: 1

Compression:

Stored size: 455 Bytes

Contents

Sequel.migration do

  up do

    @log.info { "Running migration #{__FILE__}" }

    create_table :utxo do
      primary_key :id
      column :tx_hash, String, null: false, index: true
      column :tx_idx, :int, null: false, index: true
      column :blk_id, :int, null: false, index: true
      column :pk_script, (@db.adapter_scheme == :postgres ? :bytea : :blob), null: false
      column :value, :bigint, null: false, index: true
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bitcoin-ruby-0.0.6 lib/bitcoin/storage/utxo/migrations/002_utxo.rb