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:
parent
f6f6b0542f
commit
c67e9dfe19
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user