Class: CreateGeeePayNotices

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/geee_pay/templates/migration.rb

Class Method Summary collapse

Class Method Details

.downObject



21
22
23
# File 'lib/generators/geee_pay/templates/migration.rb', line 21

def self.down
  drop_table :geee_pay_notices
end

.upObject



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/generators/geee_pay/templates/migration.rb', line 2

def self.up
  create_table :geee_pay_notices do |t|
    t.string  :version_id
    t.string :trans_type
    t.string :asyn_notify_url
    t.string :syn_notify_url
    t.string :mer_id
    t.string :order_amount
    t.string :prd_ord_no
    t.string :order_status
    t.string :pay_id
    t.string :pay_time
    t.string :sign_type
    t.string :mer_param
    t.string :sign_data
    t.timestamps
  end
end