diff --git a/db/migrate/20190913010928_create_payments_table.rb b/db/migrate/20190913010928_create_payments_table.rb index 7b8154a..84fc61c 100644 --- a/db/migrate/20190913010928_create_payments_table.rb +++ b/db/migrate/20190913010928_create_payments_table.rb @@ -2,16 +2,10 @@ class CreatePaymentsTable < ActiveRecord::Migration[5.2] def change - def change - create_table :payments do |t| - t.integer :payment_intent_id, null: false - t.string :receipt_email, null: false - t.string :url, null: false - t.integer :amount, null: false - t.timestamps - end - - add_index :payments, [:payment_intent_id], unique: true + create_table :payments do |t| + t.timestamps end + + add_index :payments, [:payment_intent_id], unique: true end end