internetee-registry/db/migrate/20200130092113_create_payment_orders.rb
2020-02-03 16:47:04 +02:00

15 lines
410 B
Ruby

class CreatePaymentOrders < ActiveRecord::Migration[5.0]
def change
create_table :payment_orders do |t|
t.string :type, null: false
t.string :status, default: 'issued', null: false
t.belongs_to :invoice, foreign_key: true
t.jsonb :response, null: true
t.string :notes, null: true
t.string :creator_str
t.string :updator_str
t.timestamps
end
end
end