dazuma/activerecord-postgis-adapter — pull request #22 by corneverbruggen (2012-07-04 14:37:06+00:00)
Title: Setting the ownership of the postgis related tables to the regular user

For certain operations on the database, it is not enough to give all privileges on all tables to the regular user without make him owner of that table. This is e.g. the case when calling `disable_referential_integrity` on the database connection as is done by e.g. the database_cleaner gem in its truncation strategy. Postgres in that case complains that the user is not owner of the `spatial_ref_sys` table and truncation fails.

This probablly is only an issue during testing, but so far I see no drawbacks in making the regular user owner of the postgis related tables.

What do you think?