From 00aee547dd32e3d8042dec23b80ada5b39d924d6 Mon Sep 17 00:00:00 2001 From: oleghasjanov Date: Mon, 25 Nov 2024 11:47:30 +0200 Subject: [PATCH] registred company returns not exists --- app/interactions/actions/contact_create.rb | 4 ++ db/structure.sql | 70 +++++++++++++++++++--- 2 files changed, 65 insertions(+), 9 deletions(-) diff --git a/app/interactions/actions/contact_create.rb b/app/interactions/actions/contact_create.rb index 0793abcd2d..7112bacc85 100644 --- a/app/interactions/actions/contact_create.rb +++ b/app/interactions/actions/contact_create.rb @@ -81,6 +81,10 @@ def validate_ident_birthday def maybe_company_is_relevant return true unless contact.org? + p '-=-------' + p contact.inspect + p '-=-------' + company_status = contact.return_company_status return if [Contact::REGISTERED, Contact::LIQUIDATED].include? company_status diff --git a/db/structure.sql b/db/structure.sql index 98bd17871d..9653f454e3 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -9,13 +9,6 @@ SET xmloption = content; SET client_min_messages = warning; SET row_security = off; --- --- Name: public; Type: SCHEMA; Schema: -; Owner: - --- - --- *not* creating schema, since initdb creates it - - -- -- Name: btree_gin; Type: EXTENSION; Schema: -; Owner: - -- @@ -2636,6 +2629,40 @@ CREATE SEQUENCE public.repp_logs_id_seq ALTER SEQUENCE public.repp_logs_id_seq OWNED BY public.repp_logs.id; +-- +-- Name: reserve_domain_invoices; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.reserve_domain_invoices ( + id bigint NOT NULL, + invoice_number character varying, + domain_names character varying[] DEFAULT '{}'::character varying[], + created_at timestamp(6) without time zone NOT NULL, + updated_at timestamp(6) without time zone NOT NULL, + status integer DEFAULT 0, + metainfo character varying +); + + +-- +-- Name: reserve_domain_invoices_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.reserve_domain_invoices_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +-- +-- Name: reserve_domain_invoices_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.reserve_domain_invoices_id_seq OWNED BY public.reserve_domain_invoices.id; + + -- -- Name: reserved_domains; Type: TABLE; Schema: public; Owner: - -- @@ -3417,6 +3444,13 @@ ALTER TABLE ONLY public.registrars ALTER COLUMN id SET DEFAULT nextval('public.r ALTER TABLE ONLY public.repp_logs ALTER COLUMN id SET DEFAULT nextval('public.repp_logs_id_seq'::regclass); +-- +-- Name: reserve_domain_invoices id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.reserve_domain_invoices ALTER COLUMN id SET DEFAULT nextval('public.reserve_domain_invoices_id_seq'::regclass); + + -- -- Name: reserved_domains id; Type: DEFAULT; Schema: public; Owner: - -- @@ -3976,6 +4010,14 @@ ALTER TABLE ONLY public.repp_logs ADD CONSTRAINT repp_logs_pkey PRIMARY KEY (id); +-- +-- Name: reserve_domain_invoices reserve_domain_invoices_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.reserve_domain_invoices + ADD CONSTRAINT reserve_domain_invoices_pkey PRIMARY KEY (id); + + -- -- Name: reserved_domains reserved_domains_pkey; Type: CONSTRAINT; Schema: public; Owner: - -- @@ -4784,6 +4826,13 @@ CREATE INDEX index_registrant_verifications_on_created_at ON public.registrant_v CREATE INDEX index_registrant_verifications_on_domain_id ON public.registrant_verifications USING btree (domain_id); +-- +-- Name: index_reserve_domain_invoices_on_invoice_number; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_reserve_domain_invoices_on_invoice_number ON public.reserve_domain_invoices USING btree (invoice_number); + + -- -- Name: index_setting_entries_on_code; Type: INDEX; Schema: public; Owner: - -- @@ -5613,8 +5662,11 @@ INSERT INTO "schema_migrations" (version) VALUES ('20230711083811'), ('20240816091049'), ('20240816092636'), -('20240903131540'), ('20240924103554'), -('20241015071505'); +('20241015071505'), +('20241030095636'), +('20241104104620'), +('20241112093540'), +('20241112124405');