I noticed that during db:migrate it doesn't pick up the /lib/migrate.rb type
definitions... so I just changed it to :integer, :limit => 8, which is how
four_byte_unsigned is defined in migrate.rb.
I'm also setting up the rails port and am having trouble so if you want to
compare notes I'd love to.

Best,
Jeff

On Tue, May 26, 2009 at 1:31 PM, Dan Karran <[email protected]> wrote:

> I'm trying to set up a copy of the rails site on my machine, using
> Postgres, but I'm running into a problem on the initial db:migrate ...
> can anyone point me to how to fix this?
>
>
> =====
>
> rake db:migrate --trace
> (in /Users/dankarran/Sites/openstreetmap)
> ** Invoke db:migrate (first_time)
> ** Invoke environment (first_time)
> ** Execute environment
> ** Execute db:migrate
> ==  TileTracepoints: migrating
> ================================================
> -- add_column("gps_points", "tile", :four_byte_unsigned)
> rake aborted!
> An error has occurred, this and all later migrations canceled:
>
> PGError: ERROR:  type "four_byte_unsigned" does not exist
> LINE 1: ALTER TABLE "gps_points" ADD COLUMN "tile" four_byte_unsigne...
>                                                   ^
> : ALTER TABLE "gps_points" ADD COLUMN "tile" four_byte_unsigned
>
> =====
>
>
> Thanks,
> Dan
>
> --
> Dan Karran
> [email protected]
> www.dankarran.com
>
> _______________________________________________
> dev mailing list
> [email protected]
> http://lists.openstreetmap.org/listinfo/dev
>
_______________________________________________
dev mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/dev

Reply via email to