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
290a51d2
Commit
290a51d2
authored
Aug 06, 2018
by
Jasper Maes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rails5: fix Arel::UpdateManager in MigrateOldElasticsearchSettings migration
parent
5d5a96c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
ee/changelogs/unreleased/rails5-fix-migration-update-manager.yml
...gelogs/unreleased/rails5-fix-migration-update-manager.yml
+5
-0
ee/db/migrate/20170215151540_migrate_old_elasticsearch_settings.rb
...rate/20170215151540_migrate_old_elasticsearch_settings.rb
+2
-1
No files found.
ee/changelogs/unreleased/rails5-fix-migration-update-manager.yml
0 → 100644
View file @
290a51d2
---
title
:
'
Rails5:
fix
Arel::UpdateManager
in
MigrateOldElasticsearchSettings
migration'
merge_request
:
6815
author
:
Jasper Maes
type
:
fixed
ee/db/migrate/20170215151540_migrate_old_elasticsearch_settings.rb
View file @
290a51d2
class
MigrateOldElasticsearchSettings
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
ArelMethods
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
...
...
@@ -23,7 +24,7 @@ class MigrateOldElasticsearchSettings < ActiveRecord::Migration
end
updater
=
Arel
::
UpdateManager
.
new
(
ActiveRecord
::
Base
)
arel_update_manager
.
table
(
settings
)
.
set
(
settings
[
:elasticsearch_url
]
=>
urls
.
join
(
','
))
.
where
(
settings
[
:id
].
eq
(
id
))
...
...
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