Fix migrations on MySQL

This commit is contained in:
Kamil Trzcinski 2016-04-13 16:14:27 +02:00
parent f3a4f85449
commit 8fb976a3ff
1 changed files with 5 additions and 1 deletions

View File

@ -10,6 +10,10 @@ class AddCiCommitIndexes < ActiveRecord::Migration
private
def index_options
{ algorithm: :concurrently } if Gitlab::Database.postgresql?
if Gitlab::Database.postgresql?
{ algorithm: :concurrently }
else
{ }
end
end
end