次のような Rails 3 の Datamapper で Binary フィールドを持つモデルを作成しようとしています。
class Image
  include DataMapper::Resource
  # attributes
  property :id, Serial
  property :url, String
  property :file_name, String
  property :content_type, String
  property :data, Binary
  property :created_at, DateTime
  property :updated_at, DateTime
end
ただし、移行しようとすると、次のようになります。
ERROR:  type modifier is not allowed for type "bytea"
LINE 1: ..." VARCHAR(50), "content_type" VARCHAR(50), "data" BYTEA(50),...
datamapper がフィールドに設定している 50 の制限を削除する方法が見つからないようです。これを行う方法や問題を解決する方法を知っている人はいますか?