mirror of https://github.com/rails/rails
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 @@ class CreateActionTextTables < ActiveRecord::Migration[6.0]
|
|||
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 @@ class CreateActiveStorageTables < ActiveRecord::Migration[7.0]
|
|||
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