Skip to content

Commit

Permalink
Remove unused remember_created_at user column
Browse files Browse the repository at this point in the history
changelog: Internal, Database, Remove unused column from users table
  • Loading branch information
aduth committed Apr 15, 2024
1 parent 1a0ba9c commit 7258afa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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
3 changes: 1 addition & 2 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7258afa

Please sign in to comment.