custom-data-type

Rails migrations with database-specific data types

好久不见. 提交于 2019-11-30 02:08:25
问题 I'm currently running a Rails migration where I am adding a datatype specific to Postgres, the tsvector. It holds search information in the form that Postgres expects for its built-in text searching capabilities. This is the line from my migration: t.column "search_vectors", :tsvector Everything seems to be working fine, and the search works with it. However, when I opened up schema.rb, this is what I got: Could not dump table "users" because of following StandardError Unknown type 'tsvector'