summaryrefslogtreecommitdiff
path: root/lib/tasks/gitlab/db.rake
diff options
context:
space:
mode:
authorDJ Mountney <david@twkie.net>2016-05-06 10:08:05 -0700
committerDJ Mountney <david@twkie.net>2016-05-25 10:44:22 -0700
commit24632d215029f8a03cf6742363d42dbf63fa92f2 (patch)
tree3807e1e82a23959713190fe5b42e2a282acaa544 /lib/tasks/gitlab/db.rake
parentc6e7d826b271a0fc51ed7eb7772c1820c720f1ff (diff)
downloadgitlab-ce-24632d215029f8a03cf6742363d42dbf63fa92f2.tar.gz
Update hash syntax and add changelog for the gitlab:db:configure rake task
Diffstat (limited to 'lib/tasks/gitlab/db.rake')
-rw-r--r--lib/tasks/gitlab/db.rake3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/tasks/gitlab/db.rake b/lib/tasks/gitlab/db.rake
index a414e480575..5ae47c15d7d 100644
--- a/lib/tasks/gitlab/db.rake
+++ b/lib/tasks/gitlab/db.rake
@@ -38,8 +38,7 @@ namespace :gitlab do
end
desc 'Configures the database by running migrate, or by loading the schema and seeding if needed'
- task :configure => :environment do
- # Runs migrate if the schema has already been loaded, otherwise loads the schema and seeds
+ task configure: :environment do
if ActiveRecord::Base.connection.table_exists? 'schema_migrations'
Rake::Task['db:migrate'].invoke
else