Does  your model actually have :length => 50 on the :resume_document property?  
It seems that PgSQL doesn't like the explicit length.


On 07/10/2011, at 3:09 AM, rgent wrote:

> Hi all,
> 
> I'm using DataMapper with PostgreSQL 9.0, ruby 1.9.2,  and I get an
> error for the following model when running a migration:
> 
> class Resume
>  include DataMapper::Resource
> 
>  property :id, Serial
>  property :resume_document, Binary
> 
> end
> 
> The error is "type modifier is not allowed from type
> "bytea" (DataObjects::SyntaxError) LINE 1: ...resumes" ("id" SERIAL
> NOT NULL, "resume_document" BYTEA(50),...
> 
> Any ideas?
> 
> Thanks,
> Dave
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "DataMapper" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/datamapper?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en.

Reply via email to