From 253283441871650e2cfdf741758ceae613c41dc8 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Sat, 20 Jul 2019 04:48:34 +0500 Subject: [PATCH] Recreate database schema --- db/structure.sql | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/db/structure.sql b/db/structure.sql index 8e989e9..412725a 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -991,14 +991,6 @@ ALTER TABLE ONLY public.relationships ADD CONSTRAINT fk_rails_100235139c FOREIGN KEY (regional_office_id) REFERENCES public.regional_offices(id); --- --- Name: account_roles fk_rails_3369e0d5fc; Type: FK CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.account_roles - ADD CONSTRAINT fk_rails_3369e0d5fc FOREIGN KEY (role_id) REFERENCES public.roles(id); - - -- -- Name: passports fk_rails_5cdfa39dea; Type: FK CONSTRAINT; Schema: public; Owner: - -- @@ -1087,6 +1079,14 @@ ALTER TABLE ONLY public.relationships ADD CONSTRAINT fk_rails_d60748ff4c FOREIGN KEY (person_id) REFERENCES public.people(id); +-- +-- Name: account_roles fk_rails_f48937287f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.account_roles + ADD CONSTRAINT fk_rails_f48937287f FOREIGN KEY (role_id) REFERENCES public.roles(id); + + -- -- PostgreSQL database dump complete -- @@ -1095,12 +1095,8 @@ SET search_path TO "$user", public; INSERT INTO "schema_migrations" (version) VALUES ('20181129203927'), -('20181129231814'), ('20181130024918'), ('20181130161628'), -('20181130163121'), -('20181202020031'), -('20181202021854'), ('20181202022901'), ('20181204024403'), ('20181204030126'),