mirror of
https://github.com/internetee/registry.git
synced 2025-06-05 20:27:30 +02:00
Refactor deprecated in rails 6.1 issues
This commit is contained in:
parent
83f3e14330
commit
39bbe6e06d
10 changed files with 122 additions and 50 deletions
|
@ -536,6 +536,43 @@ CREATE SEQUENCE public.certificates_id_seq
|
|||
ALTER SEQUENCE public.certificates_id_seq OWNED BY public.certificates.id;
|
||||
|
||||
|
||||
--
|
||||
-- Name: contact_requests; Type: TABLE; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
CREATE TABLE public.contact_requests (
|
||||
id integer NOT NULL,
|
||||
whois_record_id integer NOT NULL,
|
||||
secret character varying NOT NULL,
|
||||
email character varying NOT NULL,
|
||||
name character varying NOT NULL,
|
||||
valid_to timestamp without time zone NOT NULL,
|
||||
status character varying DEFAULT 'new'::character varying NOT NULL,
|
||||
ip_address inet,
|
||||
created_at timestamp without time zone NOT NULL,
|
||||
updated_at timestamp without time zone NOT NULL,
|
||||
message_id character varying
|
||||
);
|
||||
|
||||
|
||||
--
|
||||
-- Name: contact_requests_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
CREATE SEQUENCE public.contact_requests_id_seq
|
||||
START WITH 1
|
||||
INCREMENT BY 1
|
||||
NO MINVALUE
|
||||
NO MAXVALUE
|
||||
CACHE 1;
|
||||
|
||||
|
||||
--
|
||||
-- Name: contact_requests_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
ALTER SEQUENCE public.contact_requests_id_seq OWNED BY public.contact_requests.id;
|
||||
|
||||
--
|
||||
-- Name: contacts; Type: TABLE; Schema: public; Owner: -
|
||||
--
|
||||
|
@ -2735,6 +2772,13 @@ ALTER TABLE ONLY public.bounced_mail_addresses ALTER COLUMN id SET DEFAULT nextv
|
|||
ALTER TABLE ONLY public.certificates ALTER COLUMN id SET DEFAULT nextval('public.certificates_id_seq'::regclass);
|
||||
|
||||
|
||||
--
|
||||
-- Name: contact_requests id; Type: DEFAULT; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.contact_requests ALTER COLUMN id SET DEFAULT nextval('public.contact_requests_id_seq'::regclass);
|
||||
|
||||
|
||||
--
|
||||
-- Name: contacts id; Type: DEFAULT; Schema: public; Owner: -
|
||||
--
|
||||
|
@ -3193,6 +3237,14 @@ ALTER TABLE ONLY public.certificates
|
|||
ADD CONSTRAINT certificates_pkey PRIMARY KEY (id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: contact_requests contact_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.contact_requests
|
||||
ADD CONSTRAINT contact_requests_pkey PRIMARY KEY (id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: contacts contacts_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
||||
--
|
||||
|
@ -3780,6 +3832,34 @@ CREATE INDEX index_accounts_on_registrar_id ON public.accounts USING btree (regi
|
|||
CREATE INDEX index_certificates_on_api_user_id ON public.certificates USING btree (api_user_id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: index_contact_requests_on_email; Type: INDEX; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
CREATE INDEX index_contact_requests_on_email ON public.contact_requests USING btree (email);
|
||||
|
||||
|
||||
--
|
||||
-- Name: index_contact_requests_on_ip_address; Type: INDEX; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
CREATE INDEX index_contact_requests_on_ip_address ON public.contact_requests USING btree (ip_address);
|
||||
|
||||
|
||||
--
|
||||
-- Name: index_contact_requests_on_secret; Type: INDEX; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
CREATE UNIQUE INDEX index_contact_requests_on_secret ON public.contact_requests USING btree (secret);
|
||||
|
||||
|
||||
--
|
||||
-- Name: index_contact_requests_on_whois_record_id; Type: INDEX; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
CREATE INDEX index_contact_requests_on_whois_record_id ON public.contact_requests USING btree (whois_record_id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: index_contacts_on_code; Type: INDEX; Schema: public; Owner: -
|
||||
--
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue