Merge pull request #1347 from internetee/remove-unused-columns-from-users

Remove unused columns from users table.
This commit is contained in:
Timo Võhmar 2019-10-08 17:28:55 +03:00 committed by GitHub
commit 47d71c29f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 10 deletions

View file

@ -0,0 +1,6 @@
class RemoveCsrCrtFromUsers < ActiveRecord::Migration
def change
remove_column :users, :csr, :text
remove_column :users, :crt, :text
end
end

View file

@ -2215,8 +2215,6 @@ CREATE TABLE public.users (
country_code character varying,
registrar_id integer,
active boolean,
csr text,
crt text,
type character varying,
registrant_ident character varying,
encrypted_password character varying DEFAULT ''::character varying NOT NULL,
@ -4837,3 +4835,5 @@ INSERT INTO schema_migrations (version) VALUES ('20190811202711');
INSERT INTO schema_migrations (version) VALUES ('20190811205406');
INSERT INTO schema_migrations (version) VALUES ('20191008024334');

View file

@ -54,8 +54,6 @@
<text text-anchor="start" x="1236" y="-1978.8" font-family="Times,serif" font-size="14.00">country_code :string</text>
<text text-anchor="start" x="1236" y="-1963.8" font-family="Times,serif" font-size="14.00">registrar_id :integer</text>
<text text-anchor="start" x="1236" y="-1948.8" font-family="Times,serif" font-size="14.00">active :boolean</text>
<text text-anchor="start" x="1236" y="-1933.8" font-family="Times,serif" font-size="14.00">csr :text</text>
<text text-anchor="start" x="1236" y="-1918.8" font-family="Times,serif" font-size="14.00">crt :text</text>
<text text-anchor="start" x="1236" y="-1903.8" font-family="Times,serif" font-size="14.00">type :string</text>
<text text-anchor="start" x="1236" y="-1888.8" font-family="Times,serif" font-size="14.00">registrant_ident :string</text>
<text text-anchor="start" x="1236" y="-1873.8" font-family="Times,serif" font-size="14.00">encrypted_password :string</text>
@ -582,8 +580,6 @@
<text text-anchor="start" x="612" y="-1978.8" font-family="Times,serif" font-size="14.00">country_code :string</text>
<text text-anchor="start" x="612" y="-1963.8" font-family="Times,serif" font-size="14.00">registrar_id :integer</text>
<text text-anchor="start" x="612" y="-1948.8" font-family="Times,serif" font-size="14.00">active :boolean</text>
<text text-anchor="start" x="612" y="-1933.8" font-family="Times,serif" font-size="14.00">csr :text</text>
<text text-anchor="start" x="612" y="-1918.8" font-family="Times,serif" font-size="14.00">crt :text</text>
<text text-anchor="start" x="612" y="-1903.8" font-family="Times,serif" font-size="14.00">type :string</text>
<text text-anchor="start" x="612" y="-1888.8" font-family="Times,serif" font-size="14.00">registrant_ident :string</text>
<text text-anchor="start" x="612" y="-1873.8" font-family="Times,serif" font-size="14.00">encrypted_password :string</text>
@ -1733,8 +1729,6 @@
<text text-anchor="start" x="820" y="-1978.8" font-family="Times,serif" font-size="14.00">country_code :string</text>
<text text-anchor="start" x="820" y="-1963.8" font-family="Times,serif" font-size="14.00">registrar_id :integer</text>
<text text-anchor="start" x="820" y="-1948.8" font-family="Times,serif" font-size="14.00">active :boolean</text>
<text text-anchor="start" x="820" y="-1933.8" font-family="Times,serif" font-size="14.00">csr :text</text>
<text text-anchor="start" x="820" y="-1918.8" font-family="Times,serif" font-size="14.00">crt :text</text>
<text text-anchor="start" x="820" y="-1903.8" font-family="Times,serif" font-size="14.00">type :string</text>
<text text-anchor="start" x="820" y="-1888.8" font-family="Times,serif" font-size="14.00">registrant_ident :string</text>
<text text-anchor="start" x="820" y="-1873.8" font-family="Times,serif" font-size="14.00">encrypted_password :string</text>
@ -2057,8 +2051,6 @@
<text text-anchor="start" x="1028" y="-1978.8" font-family="Times,serif" font-size="14.00">country_code :string</text>
<text text-anchor="start" x="1028" y="-1963.8" font-family="Times,serif" font-size="14.00">registrar_id :integer</text>
<text text-anchor="start" x="1028" y="-1948.8" font-family="Times,serif" font-size="14.00">active :boolean</text>
<text text-anchor="start" x="1028" y="-1933.8" font-family="Times,serif" font-size="14.00">csr :text</text>
<text text-anchor="start" x="1028" y="-1918.8" font-family="Times,serif" font-size="14.00">crt :text</text>
<text text-anchor="start" x="1028" y="-1903.8" font-family="Times,serif" font-size="14.00">type :string</text>
<text text-anchor="start" x="1028" y="-1888.8" font-family="Times,serif" font-size="14.00">registrant_ident :string</text>
<text text-anchor="start" x="1028" y="-1873.8" font-family="Times,serif" font-size="14.00">encrypted_password :string</text>

Before

Width:  |  Height:  |  Size: 220 KiB

After

Width:  |  Height:  |  Size: 219 KiB

Before After
Before After