Skip to content

Commit 28a27d5

Browse files
authored
Merge pull request rails#50576 from zachasme/fix-migrations-for-rubocup
Ensure migrations installed by ActiveStorage/ActionText comply with `rubocop-rails-omakase`
2 parents 61e2b9a + c67e9df commit 28a27d5

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)