Class: CreateOrderTransactions

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/forge/db/migrate/20130405172029_create_order_transactions.rb

Instance Method Summary collapse

Instance Method Details

#downObject



19
20
21
# File 'lib/forge/db/migrate/20130405172029_create_order_transactions.rb', line 19

def down
  drop_table :order_transactions
end

#upObject



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/forge/db/migrate/20130405172029_create_order_transactions.rb', line 2

def up
  create_table "order_transactions" do |t|
    t.integer  "order_id"
    t.integer  "amount"
    t.boolean  "success"
    t.string   "reference"
    t.string   "message"
    t.string   "action"
    t.text     "params"
    t.boolean  "test"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  add_index "order_transactions", ["order_id"], :name => "index_order_transactions_on_order_id"
end