Sha256: fbc23d28f1a57e0b142ee32f54ff74a6a671ab2714773da87ff3e94bcf542b31

Contents?: true

Size: 478 Bytes

Versions: 10

Compression:

Stored size: 478 Bytes

Contents

class CreateUtxo < ActiveRecord::Migration<%= migration_version %>
  def change
    create_table :glueby_utxos<%= table_options %> do |t|
      t.string     :txid
      t.integer    :index
      t.bigint     :value
      t.string     :script_pubkey
      t.string     :label, index: true
      t.integer    :status
      t.datetime   :locked_at
      t.belongs_to :key, null: true
      t.timestamps
    end

    add_index :glueby_utxos, [:txid, :index], unique: true
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
glueby-1.2.3 lib/generators/glueby/contract/templates/utxo_table.rb.erb
glueby-1.2.2 lib/generators/glueby/contract/templates/utxo_table.rb.erb
glueby-1.2.1 lib/generators/glueby/contract/templates/utxo_table.rb.erb
glueby-1.2.0 lib/generators/glueby/contract/templates/utxo_table.rb.erb
glueby-1.2.0.beta.3 lib/generators/glueby/contract/templates/utxo_table.rb.erb
glueby-1.2.0.beta.2 lib/generators/glueby/contract/templates/utxo_table.rb.erb
glueby-1.2.0.beta.1 lib/generators/glueby/contract/templates/utxo_table.rb.erb
glueby-1.1.2 lib/generators/glueby/contract/templates/utxo_table.rb.erb
glueby-1.1.1 lib/generators/glueby/contract/templates/utxo_table.rb.erb
glueby-1.1.0 lib/generators/glueby/contract/templates/utxo_table.rb.erb