mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: ability to restrict tags to categories using groups
This commit is contained in:
11
db/migrate/20160606204319_create_category_tag_groups.rb
Normal file
11
db/migrate/20160606204319_create_category_tag_groups.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
class CreateCategoryTagGroups < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :category_tag_groups do |t|
|
||||
t.references :category, null: false
|
||||
t.references :tag_group, null: false
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :category_tag_groups, [:category_id, :tag_group_id], name: "idx_category_tag_groups_ix1", unique: true
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user