From 0bd2e863f0f824aaa14cdabaeca865bea3c0b898 Mon Sep 17 00:00:00 2001 From: Mark Longair Date: Thu, 7 Nov 2013 12:41:41 +0000 Subject: Set 'constraint_disabling: false' for tests in database.yml Without this setting, the PostgreSQL user still has to be a superuser for the tests to work without constraint disabling errors. --- script/install-as-user | 1 + 1 file changed, 1 insertion(+) (limited to 'script/install-as-user') diff --git a/script/install-as-user b/script/install-as-user index bee448b9d..4fc341fc6 100755 --- a/script/install-as-user +++ b/script/install-as-user @@ -123,6 +123,7 @@ sed -r \ -e "s,^( *username: *).*,\\1${UNIX_USER}," \ -e "s,^( *password: *).*,\\1null," \ -e "s,^( *host: *).*,\\1/var/run/postgresql/," \ + -e "s,# constraint_disabling: false, constraint_disabling: false," \ config/database.yml-example > config/database.yml for SUFFIX in production test development -- cgit v1.2.3