diff --git a/app/models/contact.rb b/app/models/contact.rb index 10b71b55b..df5a0dd93 100644 --- a/app/models/contact.rb +++ b/app/models/contact.rb @@ -11,9 +11,6 @@ class Contact < ActiveRecord::Base has_many :legal_documents, as: :documentable has_many :registrant_domains, class_name: 'Domain', foreign_key: 'registrant_id' - # TODO: remove later - has_many :depricated_statuses, class_name: 'DepricatedContactStatus', dependent: :destroy - has_paper_trail class_name: "ContactVersion", meta: { children: :children_log } attr_accessor :legal_document_id diff --git a/app/models/depricated_contact_status.rb b/app/models/depricated_contact_status.rb deleted file mode 100644 index b67722ac4..000000000 --- a/app/models/depricated_contact_status.rb +++ /dev/null @@ -1,5 +0,0 @@ -class DepricatedContactStatus < ActiveRecord::Base - self.table_name = :contact_statuses - self.sequence_name = :contact_statuses_id_seq - belongs_to :contact -end diff --git a/app/models/domain.rb b/app/models/domain.rb index 5cc81723f..9eef0f30f 100644 --- a/app/models/domain.rb +++ b/app/models/domain.rb @@ -45,10 +45,6 @@ class Domain < ActiveRecord::Base accepts_nested_attributes_for :nameservers, allow_destroy: true, reject_if: proc { |attrs| attrs[:hostname].blank? } - has_many :domain_statuses, dependent: :destroy - accepts_nested_attributes_for :domain_statuses, allow_destroy: true, - reject_if: proc { |attrs| attrs[:value].blank? } - has_many :transfers, class_name: 'DomainTransfer', dependent: :destroy has_many :dnskeys, dependent: :destroy @@ -172,10 +168,6 @@ class Domain < ActiveRecord::Base attribute: 'contact_code_cache' } - validates :domain_statuses, uniqueness_multi: { - attribute: 'value' - } - validates :dnskeys, uniqueness_multi: { attribute: 'public_key' } @@ -610,7 +602,6 @@ class Domain < ActiveRecord::Base log[:tech_contacts] = tech_contact_ids log[:nameservers] = nameserver_ids log[:dnskeys] = dnskey_ids - log[:domain_statuses]= domain_status_ids log[:legal_documents]= [legal_document_id] log[:registrant] = [registrant_id] log diff --git a/app/models/epp/domain.rb b/app/models/epp/domain.rb index 8c9e8bcc8..fb01fe38a 100644 --- a/app/models/epp/domain.rb +++ b/app/models/epp/domain.rb @@ -179,7 +179,6 @@ class Epp::Domain < Domain at[:nameservers_attributes] = nameservers_attrs(frame, action) at[:admin_domain_contacts_attributes] = admin_domain_contacts_attrs(frame, action) at[:tech_domain_contacts_attributes] = tech_domain_contacts_attrs(frame, action) - # at[:domain_statuses_attributes] = domain_statuses_attrs(frame, action) pw = frame.css('authInfo > pw').text at[:transfer_code] = pw if pw.present? diff --git a/app/models/version/contact_status_version.rb b/app/models/version/contact_status_version.rb deleted file mode 100644 index 0c01af564..000000000 --- a/app/models/version/contact_status_version.rb +++ /dev/null @@ -1,5 +0,0 @@ -class ContactStatusVersion < PaperTrail::Version - include VersionSession - self.table_name = :log_contact_statuses - self.sequence_name = :log_contact_statuses_id_seq -end diff --git a/app/models/version/country_version.rb b/app/models/version/country_version.rb deleted file mode 100644 index e88c95181..000000000 --- a/app/models/version/country_version.rb +++ /dev/null @@ -1,5 +0,0 @@ -class CountryVersion < PaperTrail::Version - include VersionSession - self.table_name = :log_countries - self.sequence_name = :log_countries_id_seq -end diff --git a/app/models/version/domain_status_version.rb b/app/models/version/domain_status_version.rb deleted file mode 100644 index c85adbf93..000000000 --- a/app/models/version/domain_status_version.rb +++ /dev/null @@ -1,5 +0,0 @@ -class DomainStatusVersion < PaperTrail::Version - include VersionSession - self.table_name = :log_domain_statuses - self.sequence_name = :log_domain_statuses_id_seq -end diff --git a/db/migrate/20180306180401_remove_people.rb b/db/migrate/20180306180401_remove_people.rb new file mode 100644 index 000000000..f3ef26e8e --- /dev/null +++ b/db/migrate/20180306180401_remove_people.rb @@ -0,0 +1,5 @@ +class RemovePeople < ActiveRecord::Migration + def change + drop_table :people + end +end diff --git a/db/migrate/20180306181538_remove_countries.rb b/db/migrate/20180306181538_remove_countries.rb new file mode 100644 index 000000000..cd9189ce0 --- /dev/null +++ b/db/migrate/20180306181538_remove_countries.rb @@ -0,0 +1,5 @@ +class RemoveCountries < ActiveRecord::Migration + def change + drop_table :countries + end +end diff --git a/db/migrate/20180306181554_remove_log_countries.rb b/db/migrate/20180306181554_remove_log_countries.rb new file mode 100644 index 000000000..9da76f721 --- /dev/null +++ b/db/migrate/20180306181554_remove_log_countries.rb @@ -0,0 +1,5 @@ +class RemoveLogCountries < ActiveRecord::Migration + def change + drop_table :log_countries + end +end diff --git a/db/migrate/20180306181911_remove_data_migrations.rb b/db/migrate/20180306181911_remove_data_migrations.rb new file mode 100644 index 000000000..8221be555 --- /dev/null +++ b/db/migrate/20180306181911_remove_data_migrations.rb @@ -0,0 +1,5 @@ +class RemoveDataMigrations < ActiveRecord::Migration + def change + drop_table :data_migrations + end +end diff --git a/db/migrate/20180306182456_remove_cached_nameservers.rb b/db/migrate/20180306182456_remove_cached_nameservers.rb new file mode 100644 index 000000000..02d29bdca --- /dev/null +++ b/db/migrate/20180306182456_remove_cached_nameservers.rb @@ -0,0 +1,5 @@ +class RemoveCachedNameservers < ActiveRecord::Migration + def change + drop_table :cached_nameservers + end +end diff --git a/db/migrate/20180306182758_remove_contact_statuses.rb b/db/migrate/20180306182758_remove_contact_statuses.rb new file mode 100644 index 000000000..ed58e2d88 --- /dev/null +++ b/db/migrate/20180306182758_remove_contact_statuses.rb @@ -0,0 +1,5 @@ +class RemoveContactStatuses < ActiveRecord::Migration + def change + drop_table :contact_statuses + end +end diff --git a/db/migrate/20180306182941_remove_log_contact_statuses.rb b/db/migrate/20180306182941_remove_log_contact_statuses.rb new file mode 100644 index 000000000..845e02275 --- /dev/null +++ b/db/migrate/20180306182941_remove_log_contact_statuses.rb @@ -0,0 +1,5 @@ +class RemoveLogContactStatuses < ActiveRecord::Migration + def change + drop_table :log_contact_statuses + end +end diff --git a/db/migrate/20180306183540_remove_domain_statuses.rb b/db/migrate/20180306183540_remove_domain_statuses.rb new file mode 100644 index 000000000..9307ff913 --- /dev/null +++ b/db/migrate/20180306183540_remove_domain_statuses.rb @@ -0,0 +1,5 @@ +class RemoveDomainStatuses < ActiveRecord::Migration + def change + drop_table :domain_statuses + end +end diff --git a/db/migrate/20180306183549_remove_log_domain_statuses.rb b/db/migrate/20180306183549_remove_log_domain_statuses.rb new file mode 100644 index 000000000..6f5d23b1e --- /dev/null +++ b/db/migrate/20180306183549_remove_log_domain_statuses.rb @@ -0,0 +1,5 @@ +class RemoveLogDomainStatuses < ActiveRecord::Migration + def change + drop_table :log_domain_statuses + end +end diff --git a/db/structure.sql b/db/structure.sql index 0c486f794..b303afbe7 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -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: -- @@ -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: -- @@ -5126,3 +4660,21 @@ INSERT INTO schema_migrations (version) VALUES ('20180214213743'); INSERT INTO schema_migrations (version) VALUES ('20180218004148'); +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'); + diff --git a/doc/models_brief.svg b/doc/models_brief.svg index fa3f478c7..70a4579de 100644 --- a/doc/models_brief.svg +++ b/doc/models_brief.svg @@ -83,28 +83,6 @@ - -DomainStatusVersion - -DomainStatusVersion - - -DomainStatusVersion->VersionAssociation - - - - - -ContactStatusVersion - -ContactStatusVersion - - -ContactStatusVersion->VersionAssociation - - - - UserVersion->VersionAssociation @@ -238,17 +216,6 @@ - -CountryVersion - -CountryVersion - - -CountryVersion->VersionAssociation - - - - BankTransactionVersion @@ -1131,13 +1098,6 @@ versions - -ContactStatus->ContactStatusVersion - - - -versions - RegistrantVerification @@ -1274,13 +1234,6 @@ versions - -DomainStatus->DomainStatusVersion - - - -versions - Registrant diff --git a/doc/models_complete.svg b/doc/models_complete.svg index 148b12942..9e5d6f4e5 100644 --- a/doc/models_complete.svg +++ b/doc/models_complete.svg @@ -170,50 +170,6 @@ - -DomainStatusVersion - -DomainStatusVersion - -id :integer -item_type :string -item_id :integer -event :string -whodunnit :string -object :json -object_changes :json -created_at :datetime -session :string -children :json - - -DomainStatusVersion->VersionAssociation - - - - - -ContactStatusVersion - -ContactStatusVersion - -id :integer -item_type :string -item_id :integer -event :string -whodunnit :string -object :json -object_changes :json -created_at :datetime -session :string -children :json - - -ContactStatusVersion->VersionAssociation - - - - UserVersion->VersionAssociation @@ -468,28 +424,6 @@ - -CountryVersion - -CountryVersion - -id :integer -item_type :string -item_id :integer -event :string -whodunnit :string -object :json -object_changes :json -created_at :datetime -session :string -children :json - - -CountryVersion->VersionAssociation - - - - BankTransactionVersion @@ -1826,13 +1760,6 @@ versions - -ContactStatus->ContactStatusVersion - - - -versions - RegistrantVerification @@ -2010,13 +1937,6 @@ versions - -DomainStatus->DomainStatusVersion - - - -versions - Registrant