diff --git a/app/models/version/api_user_version.rb b/app/models/version/api_user_version.rb
deleted file mode 100644
index 77d5bcf70..000000000
--- a/app/models/version/api_user_version.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-class ApiUserVersion < PaperTrail::Version
- include VersionSession
- self.table_name = :log_api_users
- self.sequence_name = :log_api_users_id_seq
-end
diff --git a/db/migrate/20171009082321_drop_api_users.rb b/db/migrate/20171009082321_drop_api_users.rb
new file mode 100644
index 000000000..dd1a9737b
--- /dev/null
+++ b/db/migrate/20171009082321_drop_api_users.rb
@@ -0,0 +1,6 @@
+class DropApiUsers < ActiveRecord::Migration
+ def change
+ drop_table :api_users
+ drop_table :log_api_users
+ end
+end
diff --git a/db/structure.sql b/db/structure.sql
index 2b1c1f78a..ffce69261 100644
--- a/db/structure.sql
+++ b/db/structure.sql
@@ -357,44 +357,6 @@ CREATE SEQUENCE accounts_id_seq
ALTER SEQUENCE accounts_id_seq OWNED BY accounts.id;
---
--- Name: api_users; Type: TABLE; Schema: public; Owner: -; Tablespace:
---
-
-CREATE TABLE api_users (
- id integer NOT NULL,
- registrar_id integer,
- username character varying,
- password character varying,
- active boolean DEFAULT false,
- csr text,
- crt text,
- created_at timestamp without time zone,
- updated_at timestamp without time zone,
- creator_str character varying,
- updator_str character varying
-);
-
-
---
--- Name: api_users_id_seq; Type: SEQUENCE; Schema: public; Owner: -
---
-
-CREATE SEQUENCE api_users_id_seq
- START WITH 1
- INCREMENT BY 1
- NO MINVALUE
- NO MAXVALUE
- CACHE 1;
-
-
---
--- Name: api_users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
---
-
-ALTER SEQUENCE api_users_id_seq OWNED BY api_users.id;
-
-
--
-- Name: bank_statements; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
@@ -1380,44 +1342,6 @@ CREATE SEQUENCE log_accounts_id_seq
ALTER SEQUENCE log_accounts_id_seq OWNED BY log_accounts.id;
---
--- Name: log_api_users; Type: TABLE; Schema: public; Owner: -; Tablespace:
---
-
-CREATE TABLE log_api_users (
- 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_api_users_id_seq; Type: SEQUENCE; Schema: public; Owner: -
---
-
-CREATE SEQUENCE log_api_users_id_seq
- START WITH 1
- INCREMENT BY 1
- NO MINVALUE
- NO MAXVALUE
- CACHE 1;
-
-
---
--- Name: log_api_users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
---
-
-ALTER SEQUENCE log_api_users_id_seq OWNED BY log_api_users.id;
-
-
--
-- Name: log_bank_statements; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
@@ -2868,13 +2792,6 @@ ALTER TABLE ONLY account_activities ALTER COLUMN id SET DEFAULT nextval('account
ALTER TABLE ONLY accounts ALTER COLUMN id SET DEFAULT nextval('accounts_id_seq'::regclass);
---
--- Name: id; Type: DEFAULT; Schema: public; Owner: -
---
-
-ALTER TABLE ONLY api_users ALTER COLUMN id SET DEFAULT nextval('api_users_id_seq'::regclass);
-
-
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
--
@@ -3043,13 +2960,6 @@ ALTER TABLE ONLY log_account_activities ALTER COLUMN id SET DEFAULT nextval('log
ALTER TABLE ONLY log_accounts ALTER COLUMN id SET DEFAULT nextval('log_accounts_id_seq'::regclass);
---
--- Name: id; Type: DEFAULT; Schema: public; Owner: -
---
-
-ALTER TABLE ONLY log_api_users ALTER COLUMN id SET DEFAULT nextval('log_api_users_id_seq'::regclass);
-
-
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
--
@@ -3325,14 +3235,6 @@ ALTER TABLE ONLY accounts
ADD CONSTRAINT accounts_pkey PRIMARY KEY (id);
---
--- Name: api_users_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
---
-
-ALTER TABLE ONLY api_users
- ADD CONSTRAINT api_users_pkey PRIMARY KEY (id);
-
-
--
-- Name: bank_statements_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
@@ -3525,14 +3427,6 @@ ALTER TABLE ONLY log_accounts
ADD CONSTRAINT log_accounts_pkey PRIMARY KEY (id);
---
--- Name: log_api_users_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
---
-
-ALTER TABLE ONLY log_api_users
- ADD CONSTRAINT log_api_users_pkey PRIMARY KEY (id);
-
-
--
-- Name: log_bank_statements_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
@@ -3865,13 +3759,6 @@ CREATE INDEX index_account_activities_on_invoice_id ON account_activities USING
CREATE INDEX index_accounts_on_registrar_id ON accounts USING btree (registrar_id);
---
--- Name: index_api_users_on_registrar_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
---
-
-CREATE INDEX index_api_users_on_registrar_id ON api_users USING btree (registrar_id);
-
-
--
-- Name: index_blocked_domains_on_name; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
@@ -4145,20 +4032,6 @@ CREATE INDEX index_log_accounts_on_item_type_and_item_id ON log_accounts USING b
CREATE INDEX index_log_accounts_on_whodunnit ON log_accounts USING btree (whodunnit);
---
--- Name: index_log_api_users_on_item_type_and_item_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
---
-
-CREATE INDEX index_log_api_users_on_item_type_and_item_id ON log_api_users USING btree (item_type, item_id);
-
-
---
--- Name: index_log_api_users_on_whodunnit; Type: INDEX; Schema: public; Owner: -; Tablespace:
---
-
-CREATE INDEX index_log_api_users_on_whodunnit ON log_api_users USING btree (whodunnit);
-
-
--
-- Name: index_log_bank_statements_on_item_type_and_item_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
@@ -5177,3 +5050,5 @@ INSERT INTO schema_migrations (version) VALUES ('20170606202859');
INSERT INTO schema_migrations (version) VALUES ('20171009080822');
+INSERT INTO schema_migrations (version) VALUES ('20171009082321');
+
diff --git a/doc/models_brief.svg b/doc/models_brief.svg
index 6a2b3f428..76dd9a83f 100644
--- a/doc/models_brief.svg
+++ b/doc/models_brief.svg
@@ -304,17 +304,6 @@
-
-ApiUserVersion
-
-ApiUserVersion
-
-
-ApiUserVersion->VersionAssociation
-
-
-
-
DomainVersion
diff --git a/doc/models_complete.svg b/doc/models_complete.svg
index 2a67d0970..58b86b986 100644
--- a/doc/models_complete.svg
+++ b/doc/models_complete.svg
@@ -600,28 +600,6 @@
-
-ApiUserVersion
-
-ApiUserVersion
-
-id :integer
-item_type :string
-item_id :integer
-event :string
-whodunnit :string
-object :json
-object_changes :json
-created_at :datetime
-session :string
-children :json
-
-
-ApiUserVersion->VersionAssociation
-
-
-
-
DomainVersion