Commit 503f8822 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Fix rubocop offenses

parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment