diff options
author | Mark Longair <mhl@pobox.com> | 2013-11-07 12:41:41 +0000 |
---|---|---|
committer | Mark Longair <mhl@pobox.com> | 2013-11-07 15:46:56 +0000 |
commit | 0bd2e863f0f824aaa14cdabaeca865bea3c0b898 (patch) | |
tree | b71a9bfdf38b754522065efe25a9f2fdb42a9a8d /script/install-as-user | |
parent | ec7de3b0fa332ce82baaff342644ca425b1aa7ff (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.
Diffstat (limited to 'script/install-as-user')
-rwxr-xr-x | script/install-as-user | 1 |
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 |