mirror of
https://github.com/internetee/registry.git
synced 2025-06-07 13:15:40 +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
|
def change
|
||||||
create_table :payment_orders do |t|
|
create_table :payment_orders do |t|
|
||||||
t.string :type, null: false
|
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.belongs_to :invoice, foreign_key: true
|
||||||
t.jsonb :response, null: true
|
t.jsonb :response, null: true
|
||||||
t.string :notes, 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 (
|
CREATE TABLE public.payment_orders (
|
||||||
id integer NOT NULL,
|
id integer NOT NULL,
|
||||||
type character varying 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,
|
invoice_id integer,
|
||||||
response jsonb,
|
response jsonb,
|
||||||
notes character varying,
|
notes character varying,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue