Skip to content

Commit

Permalink
registred company returns not exists
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegPhenomenon committed Nov 25, 2024
1 parent e73df3a commit 00aee54
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 9 deletions.
4 changes: 4 additions & 0 deletions app/interactions/actions/contact_create.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
70 changes: 61 additions & 9 deletions db/structure.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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: -
--
Expand Down Expand Up @@ -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: -
--
Expand Down Expand Up @@ -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: -
--
Expand Down Expand Up @@ -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: -
--
Expand Down Expand Up @@ -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: -
--
Expand Down Expand Up @@ -5613,8 +5662,11 @@ INSERT INTO "schema_migrations" (version) VALUES
('20230711083811'),
('20240816091049'),
('20240816092636'),
('20240903131540'),
('20240924103554'),
('20241015071505');
('20241015071505'),
('20241030095636'),
('20241104104620'),
('20241112093540'),
('20241112124405');


0 comments on commit 00aee54

Please sign in to comment.