Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
24632d21
Commit
24632d21
authored
May 06, 2016
by
DJ Mountney
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update hash syntax and add changelog for the gitlab:db:configure rake task
parent
c6e7d826
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
CHANGELOG
CHANGELOG
+1
-0
lib/tasks/gitlab/db.rake
lib/tasks/gitlab/db.rake
+1
-2
No files found.
CHANGELOG
View file @
24632d21
...
@@ -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
...
...
lib/tasks/gitlab/db.rake
View file @
24632d21
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment