Make legal_documents.path database column NOT NULL

This commit is contained in:
Artur Beljajev 2019-12-19 13:26:17 +02:00 committed by Alex Sherman
parent 24ba00896e
commit 15a8a13a5d
3 changed files with 8 additions and 3 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

@ -1074,7 +1074,7 @@ CREATE TABLE public.legal_documents (
documentable_type character varying, documentable_type character varying,
created_at timestamp without time zone, created_at timestamp without time zone,
creator_str character varying, creator_str character varying,
path character varying, path character varying NOT NULL,
checksum character varying checksum character varying
); );
@ -4828,6 +4828,7 @@ INSERT INTO "schema_migrations" (version) VALUES
('20191203083643'), ('20191203083643'),
('20191206183853'), ('20191206183853'),
('20191212133136'), ('20191212133136'),
('20191219112434'),
('20191227110904'), ('20191227110904'),
('20200113091254'), ('20200113091254'),
('20200115102202'), ('20200115102202'),
@ -4849,5 +4850,3 @@ INSERT INTO "schema_migrations" (version) VALUES
('20200811074839'), ('20200811074839'),
('20200812090409'), ('20200812090409'),
('20200812125810'); ('20200812125810');

View file

@ -1,2 +1,3 @@
one: one:
documentable: shop (Domain) documentable: shop (Domain)
path: some