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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
c3b9b439
Commit
c3b9b439
authored
Mar 09, 2017
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix two migrations to satisfy the Migration/AddConcurrentIndex cop
parent
fc89169b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
db/migrate/20170207150212_add_indexes_to_mirrors.rb
db/migrate/20170207150212_add_indexes_to_mirrors.rb
+2
-2
db/migrate/20170208144550_add_index_to_mirrors_last_update_at_fields.rb
...70208144550_add_index_to_mirrors_last_update_at_fields.rb
+2
-2
No files found.
db/migrate/20170207150212_add_indexes_to_mirrors.rb
View file @
c3b9b439
...
...
@@ -11,7 +11,7 @@ class AddIndexesToMirrors < ActiveRecord::Migration
end
def
down
remove_index
:projects
,
[
:sync_time
]
remove_index
:remote_mirrors
,
[
:sync_time
]
remove_index
:projects
,
[
:sync_time
]
if
index_exists?
:projects
,
[
:sync_time
]
remove_index
:remote_mirrors
,
[
:sync_time
]
if
index_exists?
:remote_mirrors
,
[
:sync_time
]
end
end
db/migrate/20170208144550_add_index_to_mirrors_last_update_at_fields.rb
View file @
c3b9b439
...
...
@@ -11,7 +11,7 @@ class AddIndexToMirrorsLastUpdateAtFields < ActiveRecord::Migration
end
def
down
remove_index
:projects
,
:mirror_last_successful_update_at
remove_index
:remote_mirrors
,
:last_successful_update_at
remove_index
:projects
,
:mirror_last_successful_update_at
if
index_exists?
:projects
,
:mirror_last_successful_update_at
remove_index
:remote_mirrors
,
:last_successful_update_at
if
index_exists?
:remote_mirrors
,
:last_successful_update_at
end
end
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