FEATURE: Decouple category/tag presence in sidebar from notifi level (#17273)

This commit is contained in:
Alan Guo Xiang Tan
2022-06-30 14:54:20 +08:00
committed by GitHub
parent db53c6650b
commit 3266350e80
36 changed files with 965 additions and 180 deletions

View File

@@ -0,0 +1,15 @@
# frozen_string_literal: true
class CreateSidebarSectionLinks < ActiveRecord::Migration[7.0]
def change
create_table :sidebar_section_links do |t|
t.integer :user_id, null: false
t.integer :linkable_id, null: false
t.string :linkable_type, null: false
t.timestamps
end
add_index :sidebar_section_links, [:user_id, :linkable_type, :linkable_id], unique: true, name: 'idx_unique_sidebar_section_links'
end
end