diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tasks/gitlab/db.rake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tasks/gitlab/db.rake b/lib/tasks/gitlab/db.rake index 4d7184c5340..67fe136ed3c 100644 --- a/lib/tasks/gitlab/db.rake +++ b/lib/tasks/gitlab/db.rake @@ -34,7 +34,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 |