Sha256: 9f60d5bb9a7c5aa1d9ee9854f691781d5c85af8a7ad4a13054d0516026242dcd

Contents?: true

Size: 705 Bytes

Versions: 3

Compression:

Stored size: 705 Bytes

Contents

class CreateTbCommerceTransactions < ActiveRecord::Migration
  def change
    create_table :tb_commerce_transactions do |t|
      t.references :tb_commerce_cart, index: true, foreign_key: true
      t.string :status, :default => 'pending'
      t.string :invoice_number
      t.string :gateway_transaction_id
      t.decimal :amount_charged, :precision => 8, :scale => 2
      t.string :billing_first_name
      t.string :billing_last_name
      t.string :billing_address
      t.string :billing_address_2
      t.string :billing_city
      t.string :billing_state
      t.string :billing_postal
      t.string :billing_country
      t.text :response_text
      t.timestamps null: false
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tb_commerce-0.0.4 db/migrate/20150512185611_create_tb_commerce_transactions.rb
tb_commerce-0.0.3 db/migrate/20150512185611_create_tb_commerce_transactions.rb
tb_commerce-0.0.2 db/migrate/20150512185611_create_tb_commerce_transactions.rb