I have a class that should have a TEXT of up to 300k characters and be stored in db PostgreSQL.
Postgres itself has no problems with megabyte blobs (I will end up storing them in S3), but Datamapper has a default limit for the characters β65,000β for TEXT:
By default, DataMapper supports the following primitive types:
- TrueClass, Boolean
- Line
- Text (65K character limit by default)
I want to do something like
property :id, Serial property :name, String, :index => true property :posted, DateTime property :info, DataMapper::Types::Text, :lazy => false property :data, DataMapper::Types::Text, :limit => 500000
I know that the lazy part is fine, because I got it from http://datamapper.rubyforge.org/dm-core/DataMapper/Property.html - but what keyword is used to override the limit in the TEXT field:
:length ?:maximum ?:limit ?
Or something else?
source share