diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-12-07 19:06:28 +0100 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-12-07 19:06:28 +0100 |
commit | 5cc2315ee8beeed3af251e67108d86ae65d35109 (patch) | |
tree | 11623a526c11a11ba36693e8f4ff1d97b40bb966 /db/migrate/20140903115954_migrate_to_new_shell.rb | |
parent | 24c7eafb295a292ed5eb166688d638f7d3278261 (diff) | |
download | gitlab-ce-5cc2315ee8beeed3af251e67108d86ae65d35109.tar.gz |
Fix migrations for postgres on test environment
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'db/migrate/20140903115954_migrate_to_new_shell.rb')
-rw-r--r-- | db/migrate/20140903115954_migrate_to_new_shell.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/db/migrate/20140903115954_migrate_to_new_shell.rb b/db/migrate/20140903115954_migrate_to_new_shell.rb index 2d832109513..54cbe48960a 100644 --- a/db/migrate/20140903115954_migrate_to_new_shell.rb +++ b/db/migrate/20140903115954_migrate_to_new_shell.rb @@ -1,5 +1,7 @@ class MigrateToNewShell < ActiveRecord::Migration def change + return if Rails.env.test? + gitlab_shell_path = Gitlab.config.gitlab_shell.path if system("#{gitlab_shell_path}/bin/create-hooks") puts 'Repositories updated with new hooks' |