feat: for gestionnaire highlight card and commentaires if any unread

This commit is contained in:
seb-by-ouidou 2023-11-02 11:23:21 +00:00 committed by seb-by-ouidou
parent a5d95b2d9d
commit 6cd8b6d2df
22 changed files with 235 additions and 15 deletions

View file

@ -0,0 +1,16 @@
class CreateFollowCommentaireGroupeGestionnaires < ActiveRecord::Migration[6.1]
disable_ddl_transaction!
def change
create_table "follow_commentaire_groupe_gestionnaires" do |t|
t.references :groupe_gestionnaire, index: { name: :index_follow_commentaire_on_groupe_gestionnaire }
t.references :gestionnaire, null: false, index: { name: :index_follow_commentaire_on_gestionnaire }
t.string "sender_type", null: true
t.bigint "sender_id", null: true
t.datetime "commentaire_seen_at"
t.datetime "unfollowed_at"
t.timestamps
t.index [:gestionnaire_id, :groupe_gestionnaire_id, :sender_id, :sender_type, :unfollowed_at], name: :index_follow_commentaire_on_groupe_gestionnaire_unfollow, unique: true
end
end
end