Ensure installed migrations comply with rubocop-rails-omakase

Adds space inside array literal brackets in ActiveStorage/ActionText migrations.

The new `rubocop-rails-omakase` enables `Layout/SpaceInsideArrayLiteralBrackets`,
which failed on the migrations created when installing ActiveStorage and ActionText.
This commit is contained in:
Zacharias Knudsen 2024-01-04 08:53:23 +01:00
parent f6f6b0542f
commit c67e9dfe19
No known key found for this signature in database
GPG Key ID: B7AD1AA955195D24
2 changed files with 2 additions and 2 deletions

@ -20,6 +20,6 @@ def primary_and_foreign_key_types
setting = config.options[config.orm][:primary_key_type]
primary_key_type = setting || :primary_key
foreign_key_type = setting || :bigint
[primary_key_type, foreign_key_type]
[ primary_key_type, foreign_key_type ]
end
end

@ -51,6 +51,6 @@ def primary_and_foreign_key_types
setting = config.options[config.orm][:primary_key_type]
primary_key_type = setting || :primary_key
foreign_key_type = setting || :bigint
[primary_key_type, foreign_key_type]
[ primary_key_type, foreign_key_type ]
end
end