From 2cba5177ba08db67c606571b66edd33293c8355a Mon Sep 17 00:00:00 2001 From: Zach Gollwitzer Date: Wed, 4 Dec 2024 18:40:43 -0500 Subject: [PATCH] Revert out-of-sync schema changes --- db/schema.rb | 41 ----------------------------------------- 1 file changed, 41 deletions(-) diff --git a/db/schema.rb b/db/schema.rb index 5b055acec0d..945f18b1c7a 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -174,15 +174,6 @@ t.index ["family_id"], name: "index_categories_on_family_id" end - create_table "chats", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| - t.uuid "user_id", null: false - t.string "title" - t.text "summary" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - t.index ["user_id"], name: "index_chats_on_user_id" - end - create_table "credit_cards", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| t.datetime "created_at", null: false t.datetime "updated_at", null: false @@ -461,33 +452,6 @@ t.index ["family_id"], name: "index_merchants_on_family_id" end - create_table "messages", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| - t.uuid "chat_id", null: false - t.uuid "user_id" - t.text "content" - t.text "log" - t.string "role" - t.string "status", default: "pending" - t.boolean "hidden", default: false - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - t.index ["chat_id"], name: "index_messages_on_chat_id" - t.index ["user_id"], name: "index_messages_on_user_id" - end - - create_table "metrics", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| - t.uuid "family_id", null: false - t.uuid "account_id" - t.string "kind", null: false - t.string "subkind" - t.date "date", null: false - t.decimal "value", precision: 10, scale: 2, null: false - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - t.index ["account_id"], name: "index_metrics_on_account_id" - t.index ["family_id"], name: "index_metrics_on_family_id" - end - create_table "other_assets", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| t.datetime "created_at", null: false t.datetime "updated_at", null: false @@ -675,7 +639,6 @@ add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id" add_foreign_key "active_storage_variant_records", "active_storage_blobs", column: "blob_id" add_foreign_key "categories", "families" - add_foreign_key "chats", "users" add_foreign_key "impersonation_session_logs", "impersonation_sessions" add_foreign_key "impersonation_sessions", "users", column: "impersonated_id" add_foreign_key "impersonation_sessions", "users", column: "impersonator_id" @@ -684,10 +647,6 @@ add_foreign_key "invitations", "families" add_foreign_key "invitations", "users", column: "inviter_id" add_foreign_key "merchants", "families" - add_foreign_key "messages", "chats" - add_foreign_key "messages", "users" - add_foreign_key "metrics", "accounts" - add_foreign_key "metrics", "families" add_foreign_key "plaid_accounts", "plaid_items" add_foreign_key "plaid_items", "families" add_foreign_key "security_prices", "securities"