From 7e026e8ddf6948629de8d716aa1b98fd8249df45 Mon Sep 17 00:00:00 2001 From: Osama Sayegh Date: Fri, 6 May 2022 10:11:16 +0300 Subject: [PATCH] DEV: Add last_seen_reviewable_id to the users table (#16666) We're adding this column now in preparation for a future commit(s) that will redesign the avatar/notifications menu. The reason the column is added in a separate commit is because the redesign changes are going to be complex with a high risk of getting (temporarily) reverted and if they included a database migration, they wouldn't revert cleanly/easily. Internal ticket: t65045. --- app/models/user.rb | 1 + .../20220505191131_add_last_seen_reviewable_id_to_user.rb | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 db/migrate/20220505191131_add_last_seen_reviewable_id_to_user.rb diff --git a/app/models/user.rb b/app/models/user.rb index f9099ee2bc0..2ff2618e3e7 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -1835,6 +1835,7 @@ end # manual_locked_trust_level :integer # secure_identifier :string # flair_group_id :integer +# last_seen_reviewable_id :integer # # Indexes # diff --git a/db/migrate/20220505191131_add_last_seen_reviewable_id_to_user.rb b/db/migrate/20220505191131_add_last_seen_reviewable_id_to_user.rb new file mode 100644 index 00000000000..7bc50e025ef --- /dev/null +++ b/db/migrate/20220505191131_add_last_seen_reviewable_id_to_user.rb @@ -0,0 +1,7 @@ +# frozen_string_literal: true + +class AddLastSeenReviewableIdToUser < ActiveRecord::Migration[7.0] + def change + add_column :users, :last_seen_reviewable_id, :integer + end +end