Commit 24632d21 authored by DJ Mountney's avatar DJ Mountney

Update hash syntax and add changelog for the gitlab:db:configure rake task

parent c6e7d826
...@@ -46,6 +46,7 @@ v 8.8.0 ...@@ -46,6 +46,7 @@ v 8.8.0
- Sanitize repo paths in new project error message - Sanitize repo paths in new project error message
- Bump mail_room to 0.7.0 to fix stuck IDLE connections - Bump mail_room to 0.7.0 to fix stuck IDLE connections
- Remove future dates from contribution calendar graph. - Remove future dates from contribution calendar graph.
- Add rake task 'gitlab:db:configure' for conditionally seeding or migrating the database
- Support e-mail notifications for comments on project snippets - Support e-mail notifications for comments on project snippets
- Fix API leak of notes of unauthorized issues, snippets and merge requests - Fix API leak of notes of unauthorized issues, snippets and merge requests
- Use ActionDispatch Remote IP for Akismet checking - Use ActionDispatch Remote IP for Akismet checking
......
...@@ -38,8 +38,7 @@ namespace :gitlab do ...@@ -38,8 +38,7 @@ namespace :gitlab do
end end
desc 'Configures the database by running migrate, or by loading the schema and seeding if needed' desc 'Configures the database by running migrate, or by loading the schema and seeding if needed'
task :configure => :environment do task configure: :environment do
# Runs migrate if the schema has already been loaded, otherwise loads the schema and seeds
if ActiveRecord::Base.connection.table_exists? 'schema_migrations' if ActiveRecord::Base.connection.table_exists? 'schema_migrations'
Rake::Task['db:migrate'].invoke Rake::Task['db:migrate'].invoke
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment