Skip to content

Commit abbb998

Browse files
committed
fix: Migration primary_key_type nil-safety
1 parent c996242 commit abbb998

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

db/migrate/20200702202022_create_active_storage_db_files.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ def change
2020

2121
def primary_key_type
2222
config = Rails.configuration.generators
23-
primary_key_type = config.options[config.orm][:primary_key_type]
24-
primary_key_type || :primary_key
23+
config.options.dig(config.orm, :primary_key_type) || :primary_key
2524
end
2625
end

0 commit comments

Comments
 (0)