Skip to content

Commit e21c38e

Browse files
authored
Merge pull request rails#43229 from choznerol/patch-1
Add mandatory 'stored' option to generated column example
2 parents e1a09e6 + 447f55c commit e21c38e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/source/active_record_postgresql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ create_table :documents do |t|
562562
t.string :body
563563

564564
t.virtual :textsearchable_index_col,
565-
type: :tsvector, as: "to_tsvector('english', title || ' ' || body)"
565+
type: :tsvector, as: "to_tsvector('english', title || ' ' || body)", stored: true
566566
end
567567

568568
add_index :documents, :textsearchable_index_col, using: :gin, name: 'documents_idx'

0 commit comments

Comments
 (0)