Skip to content

Commit

Permalink
need larger fields!
Browse files Browse the repository at this point in the history
  • Loading branch information
epugh committed Jan 24, 2024
1 parent ea3ad34 commit 9bbcc3e
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/models/query_doc_pair.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Table name: query_doc_pairs
#
# id :bigint not null, primary key
# document_fields :text(65535)
# document_fields :text(16777215)
# information_need :string(255)
# notes :text(65535)
# options :text(65535)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
class ResizeQueryDOcDocFieldsToMatchSnapshotFields < ActiveRecord::Migration[7.1]
# discovered that we limit this to TEXT, not MEDIUMTEXT, however
# in SnapshotDocs.fields it IS a MEDIUMTEXT field.
def change
change_column :query_doc_pairs, :document_fields, :mediumtext
end
end
4 changes: 2 additions & 2 deletions db/schema.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/fixtures/query_doc_pairs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Table name: query_doc_pairs
#
# id :bigint not null, primary key
# document_fields :text(65535)
# document_fields :text(16777215)
# information_need :string(255)
# notes :text(65535)
# options :text(65535)
Expand Down
2 changes: 1 addition & 1 deletion test/models/query_doc_pair_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Table name: query_doc_pairs
#
# id :bigint not null, primary key
# document_fields :text(65535)
# document_fields :text(16777215)
# information_need :string(255)
# notes :text(65535)
# options :text(65535)
Expand Down

0 comments on commit 9bbcc3e

Please sign in to comment.