summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2018-09-25 17:26:01 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2018-09-26 12:03:42 +0300
commit5944e0711a9bcecd7613fc4cd486848f50ad595b (patch)
tree8ffddb1716137e8a04c0ce0a4874d415cf6a9252 /config
parente18d8d590b45daca41a1be39289fe29859504c09 (diff)
downloadgitlab-ce-5944e0711a9bcecd7613fc4cd486848f50ad595b.tar.gz
Fix undefined format_options method in SchemaDumper for MySQL dbdz-fix-mysql-schema
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'config')
-rw-r--r--config/initializers/postgresql_opclasses_support.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/initializers/postgresql_opclasses_support.rb b/config/initializers/postgresql_opclasses_support.rb
index 12a0770a455..07b06629dea 100644
--- a/config/initializers/postgresql_opclasses_support.rb
+++ b/config/initializers/postgresql_opclasses_support.rb
@@ -208,5 +208,9 @@ module ActiveRecord
index_parts << "comment: #{index.comment.inspect}" if Gitlab.rails5? && index.comment
index_parts
end
+
+ def format_options(options)
+ options.map { |key, value| "#{key}: #{value.inspect}" }.join(", ")
+ end
end
end