Skip to content

armgit / maybe

Public Imported from GitHub
0

The personal finance app for everyone

Revert out-of-sync schema changes

Zach Gollwitzer2cba5177ba08
diff --git a/db/schema.rb b/db/schema.rb
index 5b055ace..945f18b1 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -174,15 +174,6 @@ ActiveRecord::Schema[7.2].define(version: 2024_11_26_211249) do
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 @@ ActiveRecord::Schema[7.2].define(version: 2024_11_26_211249) do
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 @@ ActiveRecord::Schema[7.2].define(version: 2024_11_26_211249) do
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 @@ ActiveRecord::Schema[7.2].define(version: 2024_11_26_211249) do
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"