[openstreetmap-website] Rake migrate fails on AddMoreChangesetIndexes (#877)
math1985
notifications at github.com
Thu Jan 22 13:02:16 UTC 2015
When installing according to INSTALLATION.md, I get the following error. Does anyone have any idea what causes this?
```
user at pc:~/openstreetmap-website > rake db:migrate RAILS_ENV=test
== 28 AddMoreChangesetIndexes: migrating ======================================
-- add_index("changesets", ["created_at"], {:name=>"changesets_created_at_idx"})
-> 0.0595s
-- add_index("changesets", ["closed_at"], {:name=>"changesets_closed_at_idx"})
-> 0.0557s
-- add_index("changesets", ["min_lat", "max_lat", "min_lon", "max_lon"], {:name=>"changesets_bbox_idx", :using=>"GIST"})
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:
PG::UndefinedObject: ERROR: data type integer has no default operator class for access method "gist"
HINT: You must specify an operator class for the index or define a default operator class for the data type.
: CREATE INDEX "changesets_bbox_idx" ON "changesets" USING GIST ("min_lat", "max_lat", "min_lon", "max_lon")/var/lib/gems/1.9.1/gems/activerecord-4.2.0/lib/active_record/connection_adapters/postgresql/database_statements.rb:155:in `async_exec'
```
---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/877
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20150122/9b7d1fad/attachment.html>
More information about the rails-dev
mailing list