Sha256: f4701fb8fe212f636804b9dd02182abcb8354a705eeac25626a7d787bc4aea61

Contents?: true

Size: 665 Bytes

Versions: 9

Compression:

Stored size: 665 Bytes

Contents

class CreateTimestamp < ActiveRecord::Migration<%= migration_version %>
  def change
    create_table :glueby_timestamps<%= table_options %> do |t|
      t.string   :txid
      t.integer  :status, null: false, default: 0
      t.string   :content_hash
      t.string   :prefix
      t.string   :wallet_id
      t.integer  :timestamp_type, null: false, default: 0
      t.integer :block_height, index: true
      t.integer :block_time, index: true
      t.string   :p2c_address
      t.string   :payment_base
      t.bigint   :prev_id
      t.boolean  :latest, null: false, default: true
    end

    add_index :glueby_timestamps, [:prev_id], unique: true
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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