【发布时间】:2017-04-14 10:12:30
【问题描述】:
导轨 5
Postgresql 9.4.10
Postgis 2.1.8
当我尝试 rake db:reset 时,控制台显示错误
rake aborted! ActiveRecord::StatementInvalid: PG::DependentObjectsStillExist: ERROR: cannot drop table spatial_ref_sys because extension postgis requires it HINT: You can drop extension postgis instead. : DROP TABLE "spatial_ref_sys" CASCADE
我是 psql 和 postgis 的新手,我们将不胜感激。
【问题讨论】:
-
您可能在某处引用该表
-
您是否与 SpatialRefSys 模型建立了任何
has_many关系?
标签: ruby-on-rails postgresql postgis