Remove DomainTransferVersion

#660
This commit is contained in:
Artur Beljajev 2018-01-20 20:36:57 +02:00
parent 43cf1d483c
commit a337604dc0
8 changed files with 16 additions and 137 deletions

View file

@ -0,0 +1,5 @@
class DropLogDomainTransfers < ActiveRecord::Migration
def change
drop_table :log_domain_transfers
end
end

View file

@ -0,0 +1,6 @@
class RemoveDomainTransfersPaperTrail < ActiveRecord::Migration
def change
remove_column :domain_transfers, :creator_str, :string
remove_column :domain_transfers, :updator_str, :string
end
end

View file

@ -962,9 +962,7 @@ CREATE TABLE domain_transfers (
transfer_to_id integer,
created_at timestamp without time zone,
updated_at timestamp without time zone,
wait_until timestamp without time zone,
creator_str character varying,
updator_str character varying
wait_until timestamp without time zone
);
@ -1722,44 +1720,6 @@ CREATE SEQUENCE log_domain_statuses_id_seq
ALTER SEQUENCE log_domain_statuses_id_seq OWNED BY log_domain_statuses.id;
--
-- Name: log_domain_transfers; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE log_domain_transfers (
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_transfers_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE log_domain_transfers_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: log_domain_transfers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE log_domain_transfers_id_seq OWNED BY log_domain_transfers.id;
--
-- Name: log_domains; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
@ -3029,13 +2989,6 @@ ALTER TABLE ONLY log_domain_contacts ALTER COLUMN id SET DEFAULT nextval('log_do
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: -
--
ALTER TABLE ONLY log_domain_transfers ALTER COLUMN id SET DEFAULT nextval('log_domain_transfers_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
--
@ -3506,14 +3459,6 @@ ALTER TABLE ONLY log_domain_statuses
ADD CONSTRAINT log_domain_statuses_pkey PRIMARY KEY (id);
--
-- Name: log_domain_transfers_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY log_domain_transfers
ADD CONSTRAINT log_domain_transfers_pkey PRIMARY KEY (id);
--
-- Name: log_domains_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
@ -4171,20 +4116,6 @@ CREATE INDEX index_log_domain_statuses_on_item_type_and_item_id ON log_domain_st
CREATE INDEX index_log_domain_statuses_on_whodunnit ON log_domain_statuses USING btree (whodunnit);
--
-- Name: index_log_domain_transfers_on_item_type_and_item_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_log_domain_transfers_on_item_type_and_item_id ON log_domain_transfers USING btree (item_type, item_id);
--
-- Name: index_log_domain_transfers_on_whodunnit; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE INDEX index_log_domain_transfers_on_whodunnit ON log_domain_transfers USING btree (whodunnit);
--
-- Name: index_log_domains_on_item_type_and_item_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
@ -5111,3 +5042,7 @@ INSERT INTO schema_migrations (version) VALUES ('20180120172649');
INSERT INTO schema_migrations (version) VALUES ('20180120172657');
INSERT INTO schema_migrations (version) VALUES ('20180120182712');
INSERT INTO schema_migrations (version) VALUES ('20180120183441');