osem-fcy/db/migrate/20160606040848_create_payments.rb

17 lines
387 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2016-07-27 13:18:50 +05:30
class CreatePayments < ActiveRecord::Migration
def change
create_table :payments do |t|
t.string :last4
t.integer :amount
t.string :authorization_code
2016-07-27 13:18:50 +05:30
t.integer :status, default: 0, null: false
t.integer :user_id, null: false
t.integer :conference_id, null: false
t.timestamps null: false
end
end
end