Make PaymentOrder default status 'issued'

This commit is contained in:
Karl Erik Õunapuu 2020-01-30 21:02:43 +02:00
parent 347249df39
commit 03b031abeb
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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,