summaryrefslogtreecommitdiff
path: root/lib/tasks
diff options
context:
space:
mode:
authorDJ Mountney <david@twkie.net>2016-05-15 07:59:49 -0700
committerDJ Mountney <david@twkie.net>2016-05-25 10:47:09 -0700
commit1a7326ba9ae4c7db0d03df0c114b84a22ab83ced (patch)
tree7f2802b194f5db25135d0916b164477fc3218203 /lib/tasks
parent40d4d8a4e7d3934731448a76c6d65db7943852c2 (diff)
downloadgitlab-ce-1a7326ba9ae4c7db0d03df0c114b84a22ab83ced.tar.gz
Switch the gitlab:db:configure task to use tables.any? instead of looking specifically for the schema_migrations table
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 5ae47c15d7d..86f5d65f128 100644
--- a/lib/tasks/gitlab/db.rake
+++ b/lib/tasks/gitlab/db.rake
@@ -39,7 +39,7 @@ namespace :gitlab do
desc 'Configures the database by running migrate, or by loading the schema and seeding if needed'
task configure: :environment do
- if ActiveRecord::Base.connection.table_exists? 'schema_migrations'
+ if ActiveRecord::Base.connection.tables.any?
Rake::Task['db:migrate'].invoke
else
Rake::Task['db:schema:load'].invoke