我将 Rails 版本更新为 4.2,然后在使用 Rgeo gem 时测试失败。表格上的属性类型似乎有问题。
can't cast RGeo::Geographic::SphericalPointImpl to point
在此链接http://nts.strzibny.name/fix-cant-cast-rgeogeographicsphericalpointimpl-to-point之后,我在数据库架构上将 t.point 更改为 t.geography,但没有发生任何新情况。
Postgres 版本: 9.5(也尝试使用 9.4.8) Postigs 版本: 2.2(也尝试使用 2.1.8)
有什么想法吗?