Merge pull request #1451 from internetee/improve-legal-documents

Improve legal documents
This commit is contained in:
Timo Võhmar 2020-09-03 13:41:22 +03:00 committed by GitHub
commit 3836dcdf46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 42 additions and 17 deletions

View file

@ -0,0 +1,5 @@
class ChangeLegalDocumentsPathToNotNull < ActiveRecord::Migration[5.0]
def change
change_column_null :legal_documents, :path, false
end
end

View file

@ -0,0 +1,5 @@
class ChangeLegalDocumentsDocumentTypeToNotNull < ActiveRecord::Migration[5.0]
def change
change_column_null :legal_documents, :document_type, false
end
end

View file

@ -1069,12 +1069,12 @@ ALTER SEQUENCE public.invoices_id_seq OWNED BY public.invoices.id;
CREATE TABLE public.legal_documents (
id integer NOT NULL,
document_type character varying,
document_type character varying NOT NULL,
documentable_id integer,
documentable_type character varying,
created_at timestamp without time zone,
creator_str character varying,
path character varying,
path character varying NOT NULL,
checksum character varying
);
@ -4828,6 +4828,8 @@ INSERT INTO "schema_migrations" (version) VALUES
('20191203083643'),
('20191206183853'),
('20191212133136'),
('20191219112434'),
('20191219124429'),
('20191227110904'),
('20200113091254'),
('20200115102202'),
@ -4849,5 +4851,3 @@ INSERT INTO "schema_migrations" (version) VALUES
('20200811074839'),
('20200812090409'),
('20200812125810');