Skip to content

Commit c67e9df

Browse files
committed
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.
1 parent f6f6b05 commit c67e9df

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

actiontext/db/migrate/20180528164100_create_action_text_tables.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ def primary_and_foreign_key_types
2020
setting = config.options[config.orm][:primary_key_type]
2121
primary_key_type = setting || :primary_key
2222
foreign_key_type = setting || :bigint
23-
[primary_key_type, foreign_key_type]
23+
[ primary_key_type, foreign_key_type ]
2424
end
2525
end

activestorage/db/migrate/20170806125915_create_active_storage_tables.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ def primary_and_foreign_key_types
5151
setting = config.options[config.orm][:primary_key_type]
5252
primary_key_type = setting || :primary_key
5353
foreign_key_type = setting || :bigint
54-
[primary_key_type, foreign_key_type]
54+
[ primary_key_type, foreign_key_type ]
5555
end
5656
end

0 commit comments

Comments
 (0)