use full_name instead of first and last name, test changes, schema improvements
This commit is contained in:
parent
f00e051eff
commit
6d8605073f
10 changed files with 25 additions and 81 deletions
|
|
@ -1,16 +1,13 @@
|
|||
class CreatePayments < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :payments do |t|
|
||||
t.string :first_name
|
||||
t.string :last_name
|
||||
t.string :full_name, null: false
|
||||
t.string :last4
|
||||
t.decimal :amount, precision: 12, scale: 3
|
||||
t.integer :amount, null: false
|
||||
t.string :authorization_code
|
||||
t.integer :status, default: 0
|
||||
t.integer :status, default: 0, null: false
|
||||
t.integer :user_id, null: false
|
||||
t.integer :conference_id, null: false
|
||||
t.datetime :created_at
|
||||
t.datetime :updated_at
|
||||
|
||||
t.timestamps null: false
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue