thoughtbot / clearance

Rails authentication with email & password.

Home Page:https://thoughtbot.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rails 6.1 undefined method `[]' for nil:NilClass (NoMethodError)

ahmgeek opened this issue · comments

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)```

I had the same issue and placed this PR #924 with the fix

Thanks for reporting this issue, closed in eeb5d40.