Fix undefined format_options method in SchemaDumper for MySQL db

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2018-09-25 17:26:01 +03:00
parent e18d8d590b
commit 5944e0711a
No known key found for this signature in database
GPG key ID: 627C5F589F467F17

View file

@ -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