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
path: root/lib/tasks
diff options
context:
space:
mode:
authorHeinrich Lee Yu <heinrich@gitlab.com>2019-07-17 06:51:22 +0300
committerHeinrich Lee Yu <heinrich@gitlab.com>2019-07-25 07:21:38 +0300
commit2b3d00a77822eaf2e622dd0b1baf85ebea2b1ee4 (patch)
tree4444788d3f059ea8fa970dadcc777a72a00bcb04 /lib/tasks
parent046c85ed603f8fb581b1be71a5de5525e24a5fbb (diff)
Remove unneeded monkey-patch
Changes all calls to data_source_exists? to table_exists? since that is the intent of these calls
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/gitlab/db.rake2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tasks/gitlab/db.rake b/lib/tasks/gitlab/db.rake
index 5f2ed5274e4..d054959e05e 100644
--- a/lib/tasks/gitlab/db.rake
+++ b/lib/tasks/gitlab/db.rake
@@ -33,7 +33,7 @@ namespace :gitlab do
# Removes the entry from the array
tables.delete 'schema_migrations'
# Truncate schema_migrations to ensure migrations re-run
- connection.execute('TRUNCATE schema_migrations') if connection.data_source_exists? 'schema_migrations'
+ connection.execute('TRUNCATE schema_migrations') if connection.table_exists? 'schema_migrations'
# Drop tables with cascade to avoid dependent table errors
# PG: http://www.postgresql.org/docs/current/static/ddl-depend.html