Sha256: 1b7371b3377bd68bd9dc2f81bbbd26f87c36dc22d95d8462775ca15ad00ea721

Contents?: true

Size: 616 Bytes

Versions: 22

Compression:

Stored size: 616 Bytes

Contents

class CreateCoinPayments < ActiveRecord::Migration[5.1]
  def change
    create_table :coin_payments do |t|
      t.string   :payable_type
      t.integer  :coin_type
      t.integer  :payable_id
      t.string   :currency
      t.string   :reason
      t.integer  :price, limit: 8
      t.decimal  :coin_amount_due, default: 0, precision: 24, scale: 0
      t.string   :address
      t.string   :state, default: 'pending'
      t.datetime :created_at
      t.datetime :updated_at
      t.decimal  :coin_conversion, precision: 24, scale: 0
    end
    add_index :coin_payments, %i[payable_type payable_id]
  end
end

Version data entries

22 entries across 11 versions & 1 rubygems

Version Path
cryptocoin_payable-1.4.5 spec/dummy/db/migrate/20171227225132_create_coin_payments.rb
cryptocoin_payable-1.4.5 lib/generators/cryptocoin_payable/templates/create_coin_payments.rb
cryptocoin_payable-1.4.4 lib/generators/cryptocoin_payable/templates/create_coin_payments.rb
cryptocoin_payable-1.4.4 spec/dummy/db/migrate/20171227225132_create_coin_payments.rb
cryptocoin_payable-1.4.3 spec/dummy/db/migrate/20171227225132_create_coin_payments.rb
cryptocoin_payable-1.4.3 lib/generators/cryptocoin_payable/templates/create_coin_payments.rb
cryptocoin_payable-1.4.2 spec/dummy/db/migrate/20171227225132_create_coin_payments.rb
cryptocoin_payable-1.4.2 lib/generators/cryptocoin_payable/templates/create_coin_payments.rb
cryptocoin_payable-1.4.1 spec/dummy/db/migrate/20171227225132_create_coin_payments.rb
cryptocoin_payable-1.4.1 lib/generators/cryptocoin_payable/templates/create_coin_payments.rb
cryptocoin_payable-1.4.0 spec/dummy/db/migrate/20171227225132_create_coin_payments.rb
cryptocoin_payable-1.4.0 lib/generators/cryptocoin_payable/templates/create_coin_payments.rb
cryptocoin_payable-1.3.0 spec/dummy/db/migrate/20171227225132_create_coin_payments.rb
cryptocoin_payable-1.3.0 lib/generators/cryptocoin_payable/templates/create_coin_payments.rb
cryptocoin_payable-1.2.0 spec/dummy/db/migrate/20171227225132_create_coin_payments.rb
cryptocoin_payable-1.2.0 lib/generators/cryptocoin_payable/templates/create_coin_payments.rb
cryptocoin_payable-1.1.0 lib/generators/cryptocoin_payable/templates/create_coin_payments.rb
cryptocoin_payable-1.1.0 spec/dummy/db/migrate/20171227225132_create_coin_payments.rb
cryptocoin_payable-1.0.1 spec/dummy/db/migrate/20171227225132_create_coin_payments.rb
cryptocoin_payable-1.0.1 lib/generators/cryptocoin_payable/templates/create_coin_payments.rb