mirror of
https://github.com/rickbarrette/simple-aircraft-manager-rails.git
synced 2026-11-17 23:50:36 -05:00
Search inside documents: PDF text, Tesseract OCR for scans (in the image), optional Claude; nightly catch-up
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2953b9a18d
commit
08ba017c7e
14 files changed
+271
-6
No files matched your search
@@ -0,0 +1,9 @@
|
||||
class AddPagesTextToDocuments < ActiveRecord::Migration[8.1]
|
||||
def change
|
||||
# Text read from the document's pages, for search (derived, not a record).
|
||||
add_column :documents, :pages_text, :text
|
||||
add_column :documents, :pages_text_method, :string # text | ocr | claude | none
|
||||
add_column :documents, :pages_text_source, :string # the page files it was read from
|
||||
add_column :documents, :pages_text_at, :datetime
|
||||
end
|
||||
end
|
||||
Generated
+5
-1
@@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[8.1].define(version: 2026_11_11_030000) do
|
||||
ActiveRecord::Schema[8.1].define(version: 2026_11_11_040000) do
|
||||
create_table "active_storage_attachments", force: :cascade do |t|
|
||||
t.string "name", null: false
|
||||
t.string "record_type", null: false
|
||||
@@ -404,6 +404,10 @@ ActiveRecord::Schema[8.1].define(version: 2026_11_11_030000) do
|
||||
t.datetime "updated_at", null: false
|
||||
t.date "expires_on"
|
||||
t.boolean "legacy_record", default: false, null: false
|
||||
t.text "pages_text"
|
||||
t.string "pages_text_method"
|
||||
t.string "pages_text_source"
|
||||
t.datetime "pages_text_at"
|
||||
t.index ["aircraft_id"], name: "index_documents_on_aircraft_id"
|
||||
t.index ["document_collection_id"], name: "index_documents_on_document_collection_id"
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user