mirror of
https://github.com/rickbarrette/simple-aircraft-manager-rails.git
synced 2026-11-17 23:50:36 -05:00
10 lines
435 B
Ruby
10 lines
435 B
Ruby
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
|