mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 12:08:27 +02:00
parent
9a4380fd96
commit
fb35ec5cbb
2 changed files with 8 additions and 1 deletions
|
@ -0,0 +1,5 @@
|
||||||
|
class ChangeInvoicesTotalToNotNull < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
change_column_null :invoices, :total, false
|
||||||
|
end
|
||||||
|
end
|
|
@ -1036,7 +1036,7 @@ CREATE TABLE invoices (
|
||||||
updator_str character varying,
|
updator_str character varying,
|
||||||
number integer,
|
number integer,
|
||||||
cancelled_at timestamp without time zone,
|
cancelled_at timestamp without time zone,
|
||||||
total numeric(10,2),
|
total numeric(10,2) NOT NULL,
|
||||||
in_directo boolean DEFAULT false
|
in_directo boolean DEFAULT false
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -4716,3 +4716,5 @@ INSERT INTO schema_migrations (version) VALUES ('20180310142630');
|
||||||
|
|
||||||
INSERT INTO schema_migrations (version) VALUES ('20180313090437');
|
INSERT INTO schema_migrations (version) VALUES ('20180313090437');
|
||||||
|
|
||||||
|
INSERT INTO schema_migrations (version) VALUES ('20180313124751');
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue