mirror of
https://github.com/hanzoai/forum.git
synced 2026-09-30 21:51:19 +00:00
* Revert "Revert "FEATURE: Publish read state on group messages. (#7989) [Undo revert] (#8024)""
This reverts commit 63e2c68277.
* Fix: Show who read only if the attribute is enabled
* PERF: Precalculate the last post readed by a group member
* Use book-reader icon instear of far-eye
* FIX: update topic groups correctly
* DEV: Tidy up read indicator update on write
15 lines
398 B
Ruby
15 lines
398 B
Ruby
# frozen_string_literal: true
|
|
|
|
class CreateTopicGroupTable < ActiveRecord::Migration[5.2]
|
|
def change
|
|
create_table :topic_groups do |t|
|
|
t.integer :group_id, null: false
|
|
t.integer :topic_id, null: false
|
|
t.integer :last_read_post_number, null: false, default: 0
|
|
t.timestamps null: false
|
|
end
|
|
|
|
add_index :topic_groups, %i[group_id topic_id], unique: true
|
|
end
|
|
end
|