FEATURE: ability to restrict tags to categories using groups

This commit is contained in:
Neil Lalonde
2016-06-07 13:08:59 -04:00
parent f8051209ba
commit a49ace0ffb
16 changed files with 222 additions and 12 deletions

View 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