From 175a044fbf594f1abb93f6e57b37498fe8e6724f Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Fri, 1 Mar 2024 22:09:37 +0100 Subject: [PATCH] Add `last_reports_visit` field to users --- .../20240301203930_add_last_reports_visit_to_users.rb | 7 +++++++ db/schema.rb | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20240301203930_add_last_reports_visit_to_users.rb diff --git a/db/migrate/20240301203930_add_last_reports_visit_to_users.rb b/db/migrate/20240301203930_add_last_reports_visit_to_users.rb new file mode 100644 index 00000000..90b01615 --- /dev/null +++ b/db/migrate/20240301203930_add_last_reports_visit_to_users.rb @@ -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 diff --git a/db/schema.rb b/db/schema.rb index ec0a8910..2063e999 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.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