Skip to content

Commit

Permalink
Record the relevant favorite for notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
teceler committed Nov 9, 2024
1 parent a6cd6a0 commit 5f0e761
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions db/migrate/20240930223829_add_favorite_id_to_notifications.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddFavoriteIdToNotifications < ActiveRecord::Migration[7.1]
def change
add_column :notifications, :favorite_id, :integer
end
end
3 changes: 2 additions & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema[7.1].define(version: 2023_09_30_053037) do
ActiveRecord::Schema[7.1].define(version: 2024_09_30_223829) do
# These are extensions that must be enabled in order to support this database
enable_extension "citext"
enable_extension "plpgsql"
Expand Down Expand Up @@ -274,6 +274,7 @@
t.datetime "read_at", precision: nil
t.datetime "created_at", precision: nil, null: false
t.datetime "updated_at", precision: nil, null: false
t.integer "favorite_id"
t.index ["user_id"], name: "index_notifications_on_user_id"
end

Expand Down

0 comments on commit 5f0e761

Please sign in to comment.