self review changes for pdf support for captain

This commit is contained in:
Tanmay Deep Sharma
2025-08-06 12:44:39 +05:30
parent 7317b95441
commit a56c4a5f8c
6 changed files with 23 additions and 53 deletions
@@ -1,8 +0,0 @@
class AddPdfSupportToCaptainDocuments < ActiveRecord::Migration[7.1]
def change
add_column :captain_documents, :content_type, :string
add_column :captain_documents, :file_size, :bigint
add_index :captain_documents, :content_type
end
end
-3
View File
@@ -292,13 +292,10 @@ ActiveRecord::Schema[7.1].define(version: 2025_08_05_082345) do
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.integer "status", default: 0, null: false
t.string "content_type"
t.bigint "file_size"
t.jsonb "metadata", default: {}
t.index ["account_id"], name: "index_captain_documents_on_account_id"
t.index ["assistant_id", "external_link"], name: "index_captain_documents_on_assistant_id_and_external_link", unique: true
t.index ["assistant_id"], name: "index_captain_documents_on_assistant_id"
t.index ["content_type"], name: "index_captain_documents_on_content_type"
t.index ["status"], name: "index_captain_documents_on_status"
end