diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-07 21:09:46 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-07 21:09:46 +0000 |
commit | 6867eff1f997a881cd3ea64109f7ba2d4b42fde4 (patch) | |
tree | a0d4b0ced920ff41311e578b406ed9a7136e8f42 /rubocop | |
parent | 3290d46655f07d7ae3dca788d6df9f326972ffd8 (diff) | |
download | gitlab-ce-6867eff1f997a881cd3ea64109f7ba2d4b42fde4.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'rubocop')
-rw-r--r-- | rubocop/cop/migration/datetime.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rubocop/cop/migration/datetime.rb b/rubocop/cop/migration/datetime.rb index 03ad3f3f601..5a6cdc74ca4 100644 --- a/rubocop/cop/migration/datetime.rb +++ b/rubocop/cop/migration/datetime.rb @@ -14,7 +14,7 @@ module RuboCop return unless in_migration?(node) node.each_descendant(:send) do |send_node| - method_name = node.children[1] + method_name = send_node.children[1] if method_name == :datetime || method_name == :timestamp add_offense(send_node, location: :selector, message: format(MSG, method_name)) |