aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Longair <mhl@pobox.com>2013-11-07 12:41:41 +0000
committerMark Longair <mhl@pobox.com>2013-11-07 15:46:56 +0000
commit0bd2e863f0f824aaa14cdabaeca865bea3c0b898 (patch)
treeb71a9bfdf38b754522065efe25a9f2fdb42a9a8d
parentec7de3b0fa332ce82baaff342644ca425b1aa7ff (diff)
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.
-rwxr-xr-xscript/install-as-user1
1 files changed, 1 insertions, 0 deletions
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