Sha256: f11857846a0524001f105054c08fffa99fd4b2fbceda7bbcd9f5e347ebbd7054

Contents?: true

Size: 735 Bytes

Versions: 7

Compression:

Stored size: 735 Bytes

Contents

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

7 entries across 7 versions & 1 rubygems

Version Path
tb_checkout-1.1.1 db/migrate/20140703185259_create_tb_checkout_transactions.rb
tb_checkout-1.1.0 db/migrate/20140703185259_create_tb_checkout_transactions.rb
tb_checkout-1.0.7 db/migrate/20140703185259_create_tb_checkout_transactions.rb
tb_checkout-1.0.6 db/migrate/20140703185259_create_tb_checkout_transactions.rb
tb_checkout-1.0.5 db/migrate/20140703185259_create_tb_checkout_transactions.rb
tb_checkout-1.0.4 db/migrate/20140703185259_create_tb_checkout_transactions.rb
tb_checkout-1.0.3 db/migrate/20140703185259_create_tb_checkout_transactions.rb