Add `last_reports_visit` field to users

This commit is contained in:
Andreas Nedbal 2024-03-01 22:09:37 +01:00 committed by Andreas Nedbal
parent f87d5c4a43
commit 175a044fbf
2 changed files with 9 additions and 1 deletions

View File

@ -0,0 +1,7 @@
# frozen_string_literal: true
class AddLastReportsVisitToUsers < ActiveRecord::Migration[7.0]
def change
add_column :users, :last_reports_visit, :datetime
end
end

View File

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.0].define(version: 2024_01_27_112216) do
ActiveRecord::Schema[7.0].define(version: 2024_03_01_203930) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -369,6 +369,7 @@ ActiveRecord::Schema[7.0].define(version: 2024_01_27_112216) do
t.string "sharing_custom_url"
t.datetime "notifications_updated_at", precision: nil
t.datetime "inbox_updated_at", precision: nil
t.datetime "last_reports_visit"
t.index "lower((screen_name)::text)", name: "index_users_on_LOWER_screen_name", unique: true
t.index ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true
t.index ["email"], name: "index_users_on_email", unique: true