Sha256: 9cf04e52e74e9d7b3c26694d78a02ff4fee2e416f891eab6d6369733d8bf9124

Contents?: true

Size: 810 Bytes

Versions: 8

Compression:

Stored size: 810 Bytes

Contents

# This migration comes from tb_checkout_engine (originally 20140703185259)
class CreateTbCheckoutTransactions < ActiveRecord::Migration
  def change
    create_table :tb_checkout_transactions do |t|
      t.integer :cart_id
      t.string :status, :default => 'pending'
      t.string :invoice_num
      t.integer :gateway_transaction_id, :limit => 8
      t.decimal :amount_charged, :precision => 8, :scale => 2
      t.string :card_display
      t.string :card_type
      t.string :billing_first_name
      t.string :billing_last_name
      t.string :billing_address_1
      t.string :billing_address_2
      t.string :billing_city
      t.string :billing_state
      t.string :billing_postal
      t.text :response_text
      t.timestamps
    end
    add_index :tb_checkout_transactions, :cart_id
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
tb_checkout-1.1.1 spec/dummy/db/migrate/20140915202270_create_tb_checkout_transactions.tb_checkout_engine.rb
tb_checkout-1.1.0 spec/dummy/db/migrate/20140915202270_create_tb_checkout_transactions.tb_checkout_engine.rb
tb_checkout-1.0.7 spec/dummy/db/migrate/20140915202270_create_tb_checkout_transactions.tb_checkout_engine.rb
tb_checkout-1.0.6 spec/dummy/db/migrate/20140915202270_create_tb_checkout_transactions.tb_checkout_engine.rb
tb_checkout-1.0.5 spec/dummy/db/migrate/20140915202270_create_tb_checkout_transactions.tb_checkout_engine.rb
tb_commerce-0.0.1 spec/dummy/db/migrate/20150323152924_create_tb_checkout_transactions.tb_checkout_engine.rb
tb_checkout-1.0.4 spec/dummy/db/migrate/20140915202270_create_tb_checkout_transactions.tb_checkout_engine.rb
tb_checkout-1.0.3 spec/dummy/db/migrate/20140915202270_create_tb_checkout_transactions.tb_checkout_engine.rb