Rails 6.1 undefined method `[]' for nil:NilClass (NoMethodError)
ahmgeek opened this issue · comments
Ahmad commented
When I try to run rails g migration clearance:install
I get:
1: from /Users/ahmgeek/.rvm/gems/ruby-2.7.2/gems/clearance-2.3.0/lib/generators/clearance/install/install_generator.rb:126:in `migration_primary_key_type_string'
/Users/ahmgeek/.rvm/gems/ruby-2.7.2/gems/clearance-2.3.0/lib/generators/clearance/install/install_generator.rb:132:in `configured_key_type': undefined method `[]' for nil:NilClass (NoMethodError)```
Anderson Rocha (MAX) commented
I had the same issue and placed this PR #924 with the fix
Eebs Kobeissi commented
Thanks for reporting this issue, closed in eeb5d40.