mirror of
https://github.com/internetee/registry.git
synced 2025-06-06 20:55:44 +02:00
Make legal_documents.path
database column NOT NULL
This commit is contained in:
parent
24ba00896e
commit
15a8a13a5d
3 changed files with 8 additions and 3 deletions
|
@ -0,0 +1,5 @@
|
||||||
|
class ChangeLegalDocumentsPathToNotNull < ActiveRecord::Migration[5.0]
|
||||||
|
def change
|
||||||
|
change_column_null :legal_documents, :path, false
|
||||||
|
end
|
||||||
|
end
|
|
@ -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');
|
||||||
|
|
||||||
|
|
||||||
|
|
1
test/fixtures/legal_documents.yml
vendored
1
test/fixtures/legal_documents.yml
vendored
|
@ -1,2 +1,3 @@
|
||||||
one:
|
one:
|
||||||
documentable: shop (Domain)
|
documentable: shop (Domain)
|
||||||
|
path: some
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue