mirror of
https://github.com/internetee/registry.git
synced 2025-06-07 05:05:45 +02:00
Make PaymentOrder default status 'issued'
This commit is contained in:
parent
347249df39
commit
03b031abeb
2 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@ class CreatePaymentOrders < ActiveRecord::Migration[5.0]
|
|||
def change
|
||||
create_table :payment_orders do |t|
|
||||
t.string :type, null: false
|
||||
t.string :status, default: 0, 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
|
||||
|
|
|
@ -1824,7 +1824,7 @@ ALTER SEQUENCE public.notifications_id_seq OWNED BY public.notifications.id;
|
|||
CREATE TABLE public.payment_orders (
|
||||
id integer NOT NULL,
|
||||
type character varying NOT NULL,
|
||||
status character varying DEFAULT '0'::character varying NOT NULL,
|
||||
status character varying DEFAULT 'issued'::character varying NOT NULL,
|
||||
invoice_id integer,
|
||||
response jsonb,
|
||||
notes character varying,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue