Closed petergoldstein closed 9 years ago
I just ran into this problem. The mistake I was making is my database.yml was specifying the postgis template.
template: template_postgis
The template was being loaded twice (once for the template line, and once by the postgis adapter). Removing the template line fixed the problem for me.
@swebb Interesting. I don't have a template line in my database.yml. The only postgis specific lines I have (other than the adapter) are:
schema_search_path: "public,postgis,tiger"
script_dir: /usr/local/share/postgis
su_username: XXXX
su_password: XXXX
This should be fixed in version 2.2
and later. Closing as stale.
I'm seeing a fatal error when I run rake db:test:prepare after upgrading to Rails 4. This is the error:
The error seems to occur because the postgis.sql script is being run twice, and the CREATE TYPE spheroid statement in the file cannot be safely run twice.