Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-12-07 21:06:28 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-12-07 21:06:28 +0300
commit5cc2315ee8beeed3af251e67108d86ae65d35109 (patch)
tree11623a526c11a11ba36693e8f4ff1d97b40bb966 /db/migrate/20140903115954_migrate_to_new_shell.rb
parent24c7eafb295a292ed5eb166688d638f7d3278261 (diff)
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.rb2
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'