From 03b031abeb3e5b60d304bcfcd6a97ee86c98002c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Erik=20=C3=95unapuu?= Date: Thu, 30 Jan 2020 21:02:43 +0200 Subject: [PATCH] Make PaymentOrder default status 'issued' --- db/migrate/20200130092113_create_payment_orders.rb | 2 +- db/structure.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/db/migrate/20200130092113_create_payment_orders.rb b/db/migrate/20200130092113_create_payment_orders.rb index 0b0594e56..d3320ee9b 100644 --- a/db/migrate/20200130092113_create_payment_orders.rb +++ b/db/migrate/20200130092113_create_payment_orders.rb @@ -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 diff --git a/db/structure.sql b/db/structure.sql index c664522bb..edf53fe6f 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -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,