refactor payment#purchase method, improve environment variable names
This commit is contained in:
parent
c4d934d711
commit
f00e051eff
8 changed files with 64 additions and 39 deletions
|
|
@ -7,8 +7,8 @@ class CreatePayments < ActiveRecord::Migration
|
|||
t.decimal :amount, precision: 12, scale: 3
|
||||
t.string :authorization_code
|
||||
t.integer :status, default: 0
|
||||
t.integer :user_id
|
||||
t.integer :conference_id
|
||||
t.integer :user_id, null: false
|
||||
t.integer :conference_id, null: false
|
||||
t.datetime :created_at
|
||||
t.datetime :updated_at
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue