Add and apply Lint/BooleanSymbol rubocop rule

This commit is contained in:
Javi Martín
2021-08-09 18:54:44 +02:00
parent 57d8a59d10
commit 4e33664055
2 changed files with 4 additions and 1 deletions

View File

@@ -172,6 +172,9 @@ Layout/TrailingWhitespace:
Lint/AmbiguousRegexpLiteral: Lint/AmbiguousRegexpLiteral:
Enabled: true Enabled: true
Lint/BooleanSymbol:
Enabled: true
Lint/ConstantDefinitionInBlock: Lint/ConstantDefinitionInBlock:
Enabled: true Enabled: true

View File

@@ -1,5 +1,5 @@
class AddPublishedProposalToDashboardActions < ActiveRecord::Migration[4.2] class AddPublishedProposalToDashboardActions < ActiveRecord::Migration[4.2]
def change def change
add_column :dashboard_actions, :published_proposal, :boolean, default: :false add_column :dashboard_actions, :published_proposal, :boolean, default: false
end end
end end