提交 503f8822 编写于 作者: L Lin Jen-Shin

Fix rubocop offenses

上级 1ac44911
......@@ -70,7 +70,7 @@ module Ci
pipeline.update_duration
end
before_transition :canceled => any - [:canceled] do |pipeline|
before_transition canceled: any - [:canceled] do |pipeline|
pipeline.auto_canceled_by = nil
end
......
......@@ -14,7 +14,7 @@ class RemoveIndexForUsersCurrentSignInAt < ActiveRecord::Migration
if Gitlab::Database.postgresql?
execute 'DROP INDEX CONCURRENTLY index_users_on_current_sign_in_at;'
else
remove_index :users, :current_sign_in_at
remove_concurrent_index :users, :current_sign_in_at
end
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册