Sha256: cca850ae76915c25a7b61ca557da41af6efbd8e2c80437c3062c7cd53758dfde

Contents?: true

Size: 520 Bytes

Versions: 2

Compression:

Stored size: 520 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     :color_id, index: true
      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

2 entries across 2 versions & 1 rubygems

Version Path
glueby-1.4.0 lib/generators/glueby/contract/templates/utxo_table.rb.erb
glueby-1.3.0 lib/generators/glueby/contract/templates/utxo_table.rb.erb