Rails 5
PostgreSQL 9.4.10
PostGIS 2.1.8
Rails + PostGIS: Lỗi không thể thả bảng spatial_ref_sys
khi tôi cố gắng rake db: thiết lập lại, giao diện điều khiển hiển thị một lỗi
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
Tôi mới sử dụng psql và postgis, mọi trợ giúp sẽ được đánh giá cao.
Bạn có thể tham khảo bảng ở đâu đó –
Bạn có bất kỳ mối quan hệ 'has_many' nào được cài đặt với mô hình SpatialRefSys không? – Viro