From 898800198a7e4ce70d28a62b612b88411896ba0f Mon Sep 17 00:00:00 2001 From: Claire Date: Mon, 11 Sep 2023 11:50:45 +0200 Subject: [PATCH] Add `seen_notices` to users --- db/migrate/20230911094812_add_seen_notices_to_users.rb | 7 +++++++ db/schema.rb | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20230911094812_add_seen_notices_to_users.rb diff --git a/db/migrate/20230911094812_add_seen_notices_to_users.rb b/db/migrate/20230911094812_add_seen_notices_to_users.rb new file mode 100644 index 0000000000..516a2d2117 --- /dev/null +++ b/db/migrate/20230911094812_add_seen_notices_to_users.rb @@ -0,0 +1,7 @@ +# frozen_string_literal: true + +class AddSeenNoticesToUsers < ActiveRecord::Migration[7.0] + def change + add_column :users, :seen_notices, :bigint + end +end diff --git a/db/schema.rb b/db/schema.rb index 37020c2d72..b04250e4a8 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: 2023_09_07_150100) do +ActiveRecord::Schema[7.0].define(version: 2023_09_11_094812) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -1103,6 +1103,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_09_07_150100) do t.bigint "role_id" t.text "settings" t.string "time_zone" + t.bigint "seen_notices" t.index ["account_id"], name: "index_users_on_account_id" t.index ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true t.index ["created_by_application_id"], name: "index_users_on_created_by_application_id", where: "(created_by_application_id IS NOT NULL)"