Sha256: a41c71b3b7dbb5e2a3b637e37357ae7bd357be22776c71d4923c550345efd832

Contents?: true

Size: 402 Bytes

Versions: 1

Compression:

Stored size: 402 Bytes

Contents

Sequel.migration do

  up do

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

    # Naming seems to be different on different adapters and sequel's
    # "drop_index(:txin, :prev_out)" doesn't seem to be handling it correctly
    execute "DROP INDEX IF EXISTS txin_prev_out_idx;"
    execute "DROP INDEX IF EXISTS txin_prev_out_index;"

    add_index :txin, [:prev_out, :prev_out_index]

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bitcoin-ruby-0.0.6 lib/bitcoin/storage/sequel/migrations/007_add_prev_out_index_index.rb