Sha256: 49b0a5b5944c633a2524886753b36874191cea72fd00c53f40784c3a5a4510ef

Contents?: true

Size: 1.35 KB

Versions: 2

Compression:

Stored size: 1.35 KB

Contents

class CreateGarnetClientNotices < ActiveRecord::Migration
  def self.up
    create_table :garnet_client_notice_deposits do |t|
      t.string :coin_type
      t.string :contract_address
      t.string :from
      t.string :tx_hash
      t.string :to
      t.integer :value, :limit=>8
      t.integer :tx_timestamp
      t.integer :status
      t.string :notify_id
      t.string :error_msg
      t.datetime :read_at
      t.string :read_msg
      t.timestamps
    end

    create_table :garnet_client_notice_withdraws do |t|
      t.string :coin_type
      t.string :contract_address
      t.string :from
      t.string :tx_hash
      t.string :to
      t.integer :value, :limit=>8
      t.integer :tx_timestamp
      t.integer :status
      t.string :notify_id
      t.string :error_msg
      t.datetime :read_at
      t.string :read_msg
      t.timestamps
    end

    create_table :garnet_client_notice_transactions do |t|
      t.string :tx_id
      t.string :tx_hash
      t.integer :tx_timestamp
      t.string :from
      t.string :to
      t.integer :value, :limit=>8
      t.string :contract_address
      t.integer :status
      t.datetime :read_at
      t.string :read_msg
      t.timestamps
    end
  end

  def self.down
    drop_table :garnet_client_notice_deposits
    drop_table :garnet_client_notice_withdraws
    drop_table :garnet_client_notice_transactions
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
garnet_client-0.1.13 lib/generators/garnet_client/templates/migration.rb
garnet_client-0.1.12 lib/generators/garnet_client/templates/migration.rb