Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'rubocop/cop/migration/safer_boolean_column.rb')
-rw-r--r--rubocop/cop/migration/safer_boolean_column.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/rubocop/cop/migration/safer_boolean_column.rb b/rubocop/cop/migration/safer_boolean_column.rb
index 1d780d96afa..d3d77b16357 100644
--- a/rubocop/cop/migration/safer_boolean_column.rb
+++ b/rubocop/cop/migration/safer_boolean_column.rb
@@ -18,7 +18,7 @@ module RuboCop
#
# See https://gitlab.com/gitlab-org/gitlab/issues/2750 for more
# information.
- class SaferBooleanColumn < RuboCop::Cop::Cop
+ class SaferBooleanColumn < RuboCop::Cop::Base
include MigrationHelpers
DEFAULT_OFFENSE = 'Boolean columns on the `%s` table should have a default. You may wish to use `add_column_with_default`.'
@@ -52,7 +52,7 @@ module RuboCop
NULL_OFFENSE
end
- add_offense(node, location: :expression, message: format(offense, table)) if offense
+ add_offense(node, message: format(offense, table)) if offense
end
def no_default?(opts)