diff --git a/db/migrate/20241101181052_drop_taggable_tables.rb b/db/migrate/20241101181052_drop_taggable_tables.rb index 95b7cd1..cce88c7 100644 --- a/db/migrate/20241101181052_drop_taggable_tables.rb +++ b/db/migrate/20241101181052_drop_taggable_tables.rb @@ -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 ['tenant'], name: 'index_taggings_on_tenant' 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 diff --git a/db/schema.rb b/db/schema.rb index b2706f2..172be0b 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -67,14 +67,6 @@ ActiveRecord::Schema[7.2].define(version: 2024_11_01_181052) do t.datetime "updated_at", null: false 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 "guests", "groups" add_foreign_key "seats", "guests"