diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2022-01-16 13:23:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-16 13:23:50 +0100 |
commit | 8e84ebf0cb211c1d94145399b05c9f2ad0e4d4b0 (patch) | |
tree | ebd30c6287a50f6b8c21700b8a3000c4f45070a1 /db/post_migrate | |
parent | b52fdb4c6f28b6f09861f1bc856079bb60391055 (diff) |
Remove IP tracking columns from users table (#16409)
Diffstat (limited to 'db/post_migrate')
-rw-r--r-- | db/post_migrate/20210616214135_remove_current_sign_in_ip_from_users.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/db/post_migrate/20210616214135_remove_current_sign_in_ip_from_users.rb b/db/post_migrate/20210616214135_remove_current_sign_in_ip_from_users.rb new file mode 100644 index 000000000..b53b247f2 --- /dev/null +++ b/db/post_migrate/20210616214135_remove_current_sign_in_ip_from_users.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +class RemoveCurrentSignInIpFromUsers < ActiveRecord::Migration[5.2] + disable_ddl_transaction! + + def change + safety_assured do + remove_column :users, :current_sign_in_ip, :inet + remove_column :users, :last_sign_in_ip, :inet + end + end +end |