summaryrefslogtreecommitdiff
path: root/rubocop/migration_helpers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'rubocop/migration_helpers.rb')
-rw-r--r--rubocop/migration_helpers.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/rubocop/migration_helpers.rb b/rubocop/migration_helpers.rb
index c066d424437..fc4aec8c2ca 100644
--- a/rubocop/migration_helpers.rb
+++ b/rubocop/migration_helpers.rb
@@ -5,13 +5,13 @@ module RuboCop
def in_migration?(node)
dirname = File.dirname(node.location.expression.source_buffer.name)
- dirname.end_with?('db/migrate', 'db/post_migrate')
+ dirname.end_with?("db/migrate", "db/post_migrate")
end
def in_post_deployment_migration?(node)
dirname = File.dirname(node.location.expression.source_buffer.name)
- dirname.end_with?('db/post_migrate')
+ dirname.end_with?("db/post_migrate")
end
end
end