Remove tags table as well
Some checks failed
Add copyright notice / copyright_notice (pull_request) Successful in 1m26s
Run unit tests / unit_tests (pull_request) Has been cancelled
Build Nginx-based docker image / build-static-assets (pull_request) Has been cancelled

This commit is contained in:
Manuel Bustillo 2024-11-01 19:15:08 +01:00
parent de0fc4f6f2
commit 2c283ff745
2 changed files with 8 additions and 8 deletions

View File

@ -25,5 +25,13 @@ class DropTaggableTables < ActiveRecord::Migration[7.2]
t.index %w[tagger_type tagger_id], name: 'index_taggings_on_tagger_type_and_tagger_id' t.index %w[tagger_type tagger_id], name: 'index_taggings_on_tagger_type_and_tagger_id'
t.index ['tenant'], name: 'index_taggings_on_tenant' t.index ['tenant'], name: 'index_taggings_on_tenant'
end end
drop_table "tags", force: :cascade do |t|
t.string "name"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.integer "taggings_count", default: 0
t.index ["name"], name: "index_tags_on_name", unique: true
end
end end
end end

8
db/schema.rb generated
View File

@ -67,14 +67,6 @@ ActiveRecord::Schema[7.2].define(version: 2024_11_01_181052) do
t.datetime "updated_at", null: false t.datetime "updated_at", null: false
end end
create_table "tags", force: :cascade do |t|
t.string "name"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.integer "taggings_count", default: 0
t.index ["name"], name: "index_tags_on_name", unique: true
end
add_foreign_key "groups", "groups", column: "parent_id" add_foreign_key "groups", "groups", column: "parent_id"
add_foreign_key "guests", "groups" add_foreign_key "guests", "groups"
add_foreign_key "seats", "guests" add_foreign_key "seats", "guests"