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.
This commit is contained in:
Osama Sayegh 2022-05-06 10:11:16 +03:00 committed by GitHub
parent 337cacc7bf
commit 7e026e8ddf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -1835,6 +1835,7 @@ end
# manual_locked_trust_level :integer
# secure_identifier :string
# flair_group_id :integer
# last_seen_reviewable_id :integer
#
# Indexes
#

View File

@ -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