From 7258afac827b72f13d15da1230df776c98fea138 Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Mon, 15 Apr 2024 08:53:58 -0400 Subject: [PATCH] Remove unused remember_created_at user column changelog: Internal, Database, Remove unused column from users table --- .../20240415125124_drop_remember_created_at_from_users.rb | 7 +++++++ db/schema.rb | 3 +-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 db/primary_migrate/20240415125124_drop_remember_created_at_from_users.rb diff --git a/db/primary_migrate/20240415125124_drop_remember_created_at_from_users.rb b/db/primary_migrate/20240415125124_drop_remember_created_at_from_users.rb new file mode 100644 index 00000000000..18ba3e912ef --- /dev/null +++ b/db/primary_migrate/20240415125124_drop_remember_created_at_from_users.rb @@ -0,0 +1,7 @@ +class DropRememberCreatedAtFromUsers < ActiveRecord::Migration[7.1] + def change + safety_assured do + remove_column :users, :remember_created_at, :datetime + end + end +end diff --git a/db/schema.rb b/db/schema.rb index ca81df3b182..c585d13d538 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.1].define(version: 2024_04_11_163520) do +ActiveRecord::Schema[7.1].define(version: 2024_04_15_125124) do # These are extensions that must be enabled in order to support this database enable_extension "citext" enable_extension "pg_stat_statements" @@ -588,7 +588,6 @@ create_table "users", id: :serial, force: :cascade do |t| t.string "reset_password_token", limit: 255 t.datetime "reset_password_sent_at", precision: nil - t.datetime "remember_created_at", precision: nil t.datetime "created_at", precision: nil t.datetime "updated_at", precision: nil t.datetime "confirmed_at", precision: nil