]> git.openstreetmap.org Git - rails.git/commitdiff
Drop creation_ip column
authorTom Hughes <tom@compton.nu>
Fri, 13 Sep 2024 17:23:50 +0000 (18:23 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 16 Sep 2024 16:41:22 +0000 (17:41 +0100)
db/migrate/20240913171951_drop_user_creation_ip.rb [new file with mode: 0644]
db/structure.sql

diff --git a/db/migrate/20240913171951_drop_user_creation_ip.rb b/db/migrate/20240913171951_drop_user_creation_ip.rb
new file mode 100644 (file)
index 0000000..7915f6e
--- /dev/null
@@ -0,0 +1,5 @@
+class DropUserCreationIp < ActiveRecord::Migration[7.1]
+  def change
+    safety_assured { remove_column :users, :creation_ip, :string }
+  end
+end
index 60164558c9c3f47b6cab418a3a76af8cdcb4097f..25b2f173fc6f2a42d00856e3b94c7bec45818b4c 100644 (file)
@@ -1482,7 +1482,6 @@ CREATE TABLE public.users (
     pass_salt character varying,
     email_valid boolean DEFAULT false NOT NULL,
     new_email character varying,
-    creation_ip character varying,
     languages character varying,
     status public.user_status_enum DEFAULT 'pending'::public.user_status_enum NOT NULL,
     terms_agreed timestamp without time zone,
@@ -3357,6 +3356,7 @@ INSERT INTO "schema_migrations" (version) VALUES
 ('23'),
 ('22'),
 ('21'),
+('20240913171951'),
 ('20240912181413'),
 ('20240910175616'),
 ('20240822121603'),