Merge branch 'master' into registry-623

# Conflicts:
#	db/structure.sql
This commit is contained in:
Artur Beljajev 2018-03-08 13:04:11 +02:00
commit ffc32b66de
72 changed files with 1004 additions and 932 deletions

View file

@ -554,17 +554,6 @@ CREATE SEQUENCE business_registry_caches_id_seq
ALTER SEQUENCE business_registry_caches_id_seq OWNED BY business_registry_caches.id;
--
-- Name: cached_nameservers; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE cached_nameservers (
hostname character varying(255),
ipv4 character varying(255),
ipv6 character varying(255)
);
--
-- Name: certificates; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
@ -603,41 +592,6 @@ CREATE SEQUENCE certificates_id_seq
ALTER SEQUENCE certificates_id_seq OWNED BY certificates.id;
--
-- Name: contact_statuses; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE contact_statuses (
id integer NOT NULL,
value character varying,
description character varying,
contact_id integer,
created_at timestamp without time zone,
updated_at timestamp without time zone,
creator_str character varying,
updator_str character varying
);
--
-- Name: contact_statuses_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE contact_statuses_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: contact_statuses_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE contact_statuses_id_seq OWNED BY contact_statuses.id;
--
-- Name: contacts; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
@ -694,49 +648,6 @@ CREATE SEQUENCE contacts_id_seq
ALTER SEQUENCE contacts_id_seq OWNED BY contacts.id;
--
-- Name: countries; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE countries (
id integer NOT NULL,
iso character varying,
name character varying,
created_at timestamp without time zone,
updated_at timestamp without time zone,
creator_str character varying,
updator_str character varying
);
--
-- Name: countries_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE countries_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: countries_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE countries_id_seq OWNED BY countries.id;
--
-- Name: data_migrations; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE data_migrations (
version character varying NOT NULL
);
--
-- Name: delegation_signers; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
@ -914,40 +825,6 @@ CREATE SEQUENCE domain_contacts_id_seq
ALTER SEQUENCE domain_contacts_id_seq OWNED BY domain_contacts.id;
--
-- Name: domain_statuses; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE domain_statuses (
id integer NOT NULL,
domain_id integer,
description character varying,
value character varying,
creator_str character varying,
updator_str character varying,
legacy_domain_id integer
);
--
-- Name: domain_statuses_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE domain_statuses_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: domain_statuses_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE domain_statuses_id_seq OWNED BY domain_statuses.id;
--
-- Name: domain_transfers; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
@ -1490,44 +1367,6 @@ CREATE SEQUENCE log_certificates_id_seq
ALTER SEQUENCE log_certificates_id_seq OWNED BY log_certificates.id;
--
-- Name: log_contact_statuses; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE log_contact_statuses (
id integer NOT NULL,
item_type character varying NOT NULL,
item_id integer NOT NULL,
event character varying NOT NULL,
whodunnit character varying,
object json,
object_changes json,
created_at timestamp without time zone,
session character varying,
children json,
uuid character varying
);
--
-- Name: log_contact_statuses_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE log_contact_statuses_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: log_contact_statuses_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE log_contact_statuses_id_seq OWNED BY log_contact_statuses.id;
--
-- Name: log_contacts; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
@ -1567,44 +1406,6 @@ CREATE SEQUENCE log_contacts_id_seq
ALTER SEQUENCE log_contacts_id_seq OWNED BY log_contacts.id;
--
-- Name: log_countries; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE log_countries (
id integer NOT NULL,
item_type character varying NOT NULL,
item_id integer NOT NULL,
event character varying NOT NULL,
whodunnit character varying,
object json,
object_changes json,
created_at timestamp without time zone,
session character varying,
children json,
uuid character varying
);
--
-- Name: log_countries_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE log_countries_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: log_countries_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE log_countries_id_seq OWNED BY log_countries.id;
--
-- Name: log_dnskeys; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
@ -1681,44 +1482,6 @@ CREATE SEQUENCE log_domain_contacts_id_seq
ALTER SEQUENCE log_domain_contacts_id_seq OWNED BY log_domain_contacts.id;
--
-- Name: log_domain_statuses; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE log_domain_statuses (
id integer NOT NULL,
item_type character varying NOT NULL,
item_id integer NOT NULL,
event character varying NOT NULL,
whodunnit character varying,
object json,
object_changes json,
created_at timestamp without time zone,
session character varying,
children json,
uuid character varying
);
--
-- Name: log_domain_statuses_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE log_domain_statuses_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: log_domain_statuses_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE log_domain_statuses_id_seq OWNED BY log_domain_statuses.id;
--
-- Name: log_domains; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
@ -2220,12 +1983,12 @@ ALTER SEQUENCE messages_id_seq OWNED BY messages.id;
CREATE TABLE nameservers (
id integer NOT NULL,
hostname character varying,
hostname character varying NOT NULL,
ipv4 character varying[] DEFAULT '{}'::character varying[],
created_at timestamp without time zone,
updated_at timestamp without time zone,
ipv6 character varying[] DEFAULT '{}'::character varying[],
domain_id integer,
domain_id integer NOT NULL,
creator_str character varying,
updator_str character varying,
legacy_domain_id integer,
@ -2252,46 +2015,6 @@ CREATE SEQUENCE nameservers_id_seq
ALTER SEQUENCE nameservers_id_seq OWNED BY nameservers.id;
--
-- Name: people; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE people (
id integer NOT NULL,
email character varying DEFAULT ''::character varying NOT NULL,
encrypted_password character varying DEFAULT ''::character varying NOT NULL,
reset_password_token character varying,
reset_password_sent_at timestamp without time zone,
remember_created_at timestamp without time zone,
sign_in_count integer DEFAULT 0 NOT NULL,
current_sign_in_at timestamp without time zone,
last_sign_in_at timestamp without time zone,
current_sign_in_ip inet,
last_sign_in_ip inet,
created_at timestamp without time zone,
updated_at timestamp without time zone
);
--
-- Name: people_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE people_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: people_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE people_id_seq OWNED BY people.id;
--
-- Name: prices; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
@ -2792,13 +2515,6 @@ ALTER TABLE ONLY business_registry_caches ALTER COLUMN id SET DEFAULT nextval('b
ALTER TABLE ONLY certificates ALTER COLUMN id SET DEFAULT nextval('certificates_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY contact_statuses ALTER COLUMN id SET DEFAULT nextval('contact_statuses_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
--
@ -2806,13 +2522,6 @@ ALTER TABLE ONLY contact_statuses ALTER COLUMN id SET DEFAULT nextval('contact_s
ALTER TABLE ONLY contacts ALTER COLUMN id SET DEFAULT nextval('contacts_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY countries ALTER COLUMN id SET DEFAULT nextval('countries_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
--
@ -2848,13 +2557,6 @@ ALTER TABLE ONLY dnskeys ALTER COLUMN id SET DEFAULT nextval('dnskeys_id_seq'::r
ALTER TABLE ONLY domain_contacts ALTER COLUMN id SET DEFAULT nextval('domain_contacts_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY domain_statuses ALTER COLUMN id SET DEFAULT nextval('domain_statuses_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
--
@ -2946,13 +2648,6 @@ ALTER TABLE ONLY log_blocked_domains ALTER COLUMN id SET DEFAULT nextval('log_bl
ALTER TABLE ONLY log_certificates ALTER COLUMN id SET DEFAULT nextval('log_certificates_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY log_contact_statuses ALTER COLUMN id SET DEFAULT nextval('log_contact_statuses_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
--
@ -2960,13 +2655,6 @@ ALTER TABLE ONLY log_contact_statuses ALTER COLUMN id SET DEFAULT nextval('log_c
ALTER TABLE ONLY log_contacts ALTER COLUMN id SET DEFAULT nextval('log_contacts_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY log_countries ALTER COLUMN id SET DEFAULT nextval('log_countries_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
--
@ -2981,13 +2669,6 @@ ALTER TABLE ONLY log_dnskeys ALTER COLUMN id SET DEFAULT nextval('log_dnskeys_id
ALTER TABLE ONLY log_domain_contacts ALTER COLUMN id SET DEFAULT nextval('log_domain_contacts_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY log_domain_statuses ALTER COLUMN id SET DEFAULT nextval('log_domain_statuses_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
--
@ -3086,13 +2767,6 @@ ALTER TABLE ONLY messages ALTER COLUMN id SET DEFAULT nextval('messages_id_seq':
ALTER TABLE ONLY nameservers ALTER COLUMN id SET DEFAULT nextval('nameservers_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY people ALTER COLUMN id SET DEFAULT nextval('people_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
--
@ -3234,14 +2908,6 @@ ALTER TABLE ONLY certificates
ADD CONSTRAINT certificates_pkey PRIMARY KEY (id);
--
-- Name: contact_statuses_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY contact_statuses
ADD CONSTRAINT contact_statuses_pkey PRIMARY KEY (id);
--
-- Name: contacts_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
@ -3250,14 +2916,6 @@ ALTER TABLE ONLY contacts
ADD CONSTRAINT contacts_pkey PRIMARY KEY (id);
--
-- Name: countries_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY countries
ADD CONSTRAINT countries_pkey PRIMARY KEY (id);
--
-- Name: delegation_signers_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
@ -3298,14 +2956,6 @@ ALTER TABLE ONLY domain_contacts
ADD CONSTRAINT domain_contacts_pkey PRIMARY KEY (id);
--
-- Name: domain_statuses_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY domain_statuses
ADD CONSTRAINT domain_statuses_pkey PRIMARY KEY (id);
--
-- Name: domain_transfers_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
@ -3410,14 +3060,6 @@ ALTER TABLE ONLY log_certificates
ADD CONSTRAINT log_certificates_pkey PRIMARY KEY (id);
--
-- Name: log_contact_statuses_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY log_contact_statuses
ADD CONSTRAINT log_contact_statuses_pkey PRIMARY KEY (id);
--
-- Name: log_contacts_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
@ -3426,14 +3068,6 @@ ALTER TABLE ONLY log_contacts
ADD CONSTRAINT log_contacts_pkey PRIMARY KEY (id);
--
-- Name: log_countries_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY log_countries
ADD CONSTRAINT log_countries_pkey PRIMARY KEY (id);
--
-- Name: log_dnskeys_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
@ -3450,14 +3084,6 @@ ALTER TABLE ONLY log_domain_contacts
ADD CONSTRAINT log_domain_contacts_pkey PRIMARY KEY (id);
--
-- Name: log_domain_statuses_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY log_domain_statuses
ADD CONSTRAINT log_domain_statuses_pkey PRIMARY KEY (id);
--
-- Name: log_domains_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
@ -3570,14 +3196,6 @@ ALTER TABLE ONLY nameservers
ADD CONSTRAINT nameservers_pkey PRIMARY KEY (id);
--
-- Name: people_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY people
ADD CONSTRAINT people_pkey PRIMARY KEY (id);
--
-- Name: prices_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
@ -3732,13 +3350,6 @@ CREATE INDEX index_blocked_domains_on_name ON blocked_domains USING btree (name)
CREATE INDEX index_business_registry_caches_on_ident ON business_registry_caches USING btree (ident);
--
-- Name: index_cached_nameservers_on_hostname_and_ipv4_and_ipv6; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE UNIQUE INDEX index_cached_nameservers_on_hostname_and_ipv4_and_ipv6 ON cached_nameservers USING btree (hostname, ipv4, ipv6);
--
-- Name: index_certificates_on_api_user_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
@ -3746,13 +3357,6 @@ CREATE UNIQUE INDEX index_cached_nameservers_on_hostname_and_ipv4_and_ipv6 ON ca
CREATE INDEX index_certificates_on_api_user_id ON certificates USING btree (api_user_id);
--
-- Name: index_contact_statuses_on_contact_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_contact_statuses_on_contact_id ON contact_statuses USING btree (contact_id);
--
-- Name: index_contacts_on_code; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
@ -3823,13 +3427,6 @@ CREATE INDEX index_domain_contacts_on_contact_id ON domain_contacts USING btree
CREATE INDEX index_domain_contacts_on_domain_id ON domain_contacts USING btree (domain_id);
--
-- Name: index_domain_statuses_on_domain_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_domain_statuses_on_domain_id ON domain_statuses USING btree (domain_id);
--
-- Name: index_domain_transfers_on_domain_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
@ -4040,20 +3637,6 @@ CREATE INDEX index_log_certificates_on_item_type_and_item_id ON log_certificates
CREATE INDEX index_log_certificates_on_whodunnit ON log_certificates USING btree (whodunnit);
--
-- Name: index_log_contact_statuses_on_item_type_and_item_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_log_contact_statuses_on_item_type_and_item_id ON log_contact_statuses USING btree (item_type, item_id);
--
-- Name: index_log_contact_statuses_on_whodunnit; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_log_contact_statuses_on_whodunnit ON log_contact_statuses USING btree (whodunnit);
--
-- Name: index_log_contacts_on_item_type_and_item_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
@ -4068,20 +3651,6 @@ CREATE INDEX index_log_contacts_on_item_type_and_item_id ON log_contacts USING b
CREATE INDEX index_log_contacts_on_whodunnit ON log_contacts USING btree (whodunnit);
--
-- Name: index_log_countries_on_item_type_and_item_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_log_countries_on_item_type_and_item_id ON log_countries USING btree (item_type, item_id);
--
-- Name: index_log_countries_on_whodunnit; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_log_countries_on_whodunnit ON log_countries USING btree (whodunnit);
--
-- Name: index_log_dnskeys_on_item_type_and_item_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
@ -4110,20 +3679,6 @@ CREATE INDEX index_log_domain_contacts_on_item_type_and_item_id ON log_domain_co
CREATE INDEX index_log_domain_contacts_on_whodunnit ON log_domain_contacts USING btree (whodunnit);
--
-- Name: index_log_domain_statuses_on_item_type_and_item_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_log_domain_statuses_on_item_type_and_item_id ON log_domain_statuses USING btree (item_type, item_id);
--
-- Name: index_log_domain_statuses_on_whodunnit; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_log_domain_statuses_on_whodunnit ON log_domain_statuses USING btree (whodunnit);
--
-- Name: index_log_domains_on_item_type_and_item_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
@ -4278,20 +3833,6 @@ CREATE INDEX index_messages_on_registrar_id ON messages USING btree (registrar_i
CREATE INDEX index_nameservers_on_domain_id ON nameservers USING btree (domain_id);
--
-- Name: index_people_on_email; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE UNIQUE INDEX index_people_on_email ON people USING btree (email);
--
-- Name: index_people_on_reset_password_token; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE UNIQUE INDEX index_people_on_reset_password_token ON people USING btree (reset_password_token);
--
-- Name: index_prices_on_zone_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
@ -4390,13 +3931,6 @@ CREATE INDEX log_domains_object_legacy_id ON log_contacts USING btree ((((object
CREATE INDEX log_nameservers_object_legacy_id ON log_contacts USING btree ((((object ->> 'legacy_domain_id'::text))::integer));
--
-- Name: unique_data_migrations; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE UNIQUE INDEX unique_data_migrations ON data_migrations USING btree (version);
--
-- Name: unique_schema_migrations; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
@ -4532,6 +4066,14 @@ ALTER TABLE ONLY messages
ADD CONSTRAINT messages_registrar_id_fk FOREIGN KEY (registrar_id) REFERENCES registrars(id);
--
-- Name: nameservers_domain_id_fk; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY nameservers
ADD CONSTRAINT nameservers_domain_id_fk FOREIGN KEY (domain_id) REFERENCES domains(id);
--
-- Name: user_registrar_id_fk; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@ -5086,6 +4628,12 @@ INSERT INTO schema_migrations (version) VALUES ('20180126104536');
INSERT INTO schema_migrations (version) VALUES ('20180126104903');
INSERT INTO schema_migrations (version) VALUES ('20180129143538');
INSERT INTO schema_migrations (version) VALUES ('20180129232054');
INSERT INTO schema_migrations (version) VALUES ('20180129233223');
INSERT INTO schema_migrations (version) VALUES ('20180206213435');
INSERT INTO schema_migrations (version) VALUES ('20180206234620');
@ -5124,3 +4672,21 @@ INSERT INTO schema_migrations (version) VALUES ('20180228074442');
INSERT INTO schema_migrations (version) VALUES ('20180228084818');
INSERT INTO schema_migrations (version) VALUES ('20180306180401');
INSERT INTO schema_migrations (version) VALUES ('20180306181538');
INSERT INTO schema_migrations (version) VALUES ('20180306181554');
INSERT INTO schema_migrations (version) VALUES ('20180306181911');
INSERT INTO schema_migrations (version) VALUES ('20180306182456');
INSERT INTO schema_migrations (version) VALUES ('20180306182758');
INSERT INTO schema_migrations (version) VALUES ('20180306182941');
INSERT INTO schema_migrations (version) VALUES ('20180306183540');
INSERT INTO schema_migrations (version) VALUES ('20180306183549');