[OSM-dev] RAILS - rake db:migrate
SteveC
steve at asklater.com
Thu May 17 16:39:02 BST 2007
hey
just updated the real live schema in svn (sites/rails_port/db/
creat...) so feel free to fix the migrations to reflect that.
bonus points if you make a quick howto for getting from the current
schema to adding any necessary migrations that arn't in there
including adding the rails db version table thing and not losing any
data
On 17 May 2007, at 16:16, Dan Moore wrote:
> hi,
>
> my rails setup on dev seemed to drop a load of way segments, i
> think this is caused by 'rake db:migrate' making 'id' of
> current_way_segments the primary key. i think this primary key is
> necessary for rails/activerecord, but for the osm db 'id' in this
> means the way id, and hence should be non-unique - this leads to
> only one segment per way being available. how should this be
> correctly setup in 0.4?
>
> cheers, dan.
>
>
>
>
>
> ______________________________________________________________________
> ______________Be a better Globetrotter. Get better travel answers
> from someone who knows. Yahoo! Answers - Check it out.
> http://answers.yahoo.com/dir/?link=list&sid=396545469
>
> _______________________________________________
> dev mailing list
> dev at openstreetmap.org
> http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
>
have fun,
SteveC | steve at asklater.com | http://www.asklater.com/steve/
More information about the dev
mailing list