diff options
author | DJ Mountney <david@twkie.net> | 2016-05-15 07:59:49 -0700 |
---|---|---|
committer | DJ Mountney <david@twkie.net> | 2016-05-15 07:59:49 -0700 |
commit | 8d26837d781f4fd1c7210c4fc2998460a4b5fd94 (patch) | |
tree | b427adcb9fbab95f92abc19ac0316d83bad801bf /lib | |
parent | 6acb123f64b389a9a54b3753ae397a4d2b10e721 (diff) | |
download | gitlab-ce-db-configure-rake-task.tar.gz |
Switch the gitlab:db:configure task to use tables.any? instead of looking specifically for the schema_migrations tabledb-configure-rake-task
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 |