Change invoices.vat_rate DB column to NULL

#623
This commit is contained in:
Artur Beljajev 2018-02-28 09:05:41 +02:00
parent fccc6eb9f0
commit 6f9ea85a95
2 changed files with 8 additions and 1 deletions

View file

@ -0,0 +1,5 @@
class ChangeInvoiceVatRateToNull < ActiveRecord::Migration
def change
change_column_null :invoices, :vat_rate, true
end
end

View file

@ -1127,7 +1127,7 @@ CREATE TABLE invoices (
currency character varying NOT NULL,
description character varying,
reference_no character varying,
vat_rate numeric(4,3) NOT NULL,
vat_rate numeric(4,3),
paid_at timestamp without time zone,
seller_id integer,
seller_name character varying NOT NULL,
@ -5119,3 +5119,5 @@ INSERT INTO schema_migrations (version) VALUES ('20180228064342');
INSERT INTO schema_migrations (version) VALUES ('20180228070102');
INSERT INTO schema_migrations (version) VALUES ('20180228070431');