Closed atomkirk closed 8 years ago
I don't think Users has ever had username.
Here is the username=
method:
https://github.com/jdtornow/challah/blob/master/lib/challah/concerns/user/passwordable.rb#L43-L46
Then it writes that value to the Authorization record here: https://github.com/jdtornow/challah/blob/15dfefe2031ea0dd9f38afaeffe8b875f5e5479a/lib/challah/providers/password_provider.rb#L4
What's the error you're getting?
Populating seed data...
==========================================================================
Creating a user
==========================================================================
Please answer the following questions to create your first admin user.
First name: Adam
Last name: Kirk
Email: adam.kirk@ovenbits.com
Username: |adam.kirk@ovenbits.com| atomkirk
Password:
Password again:
rake aborted!
NoMethodError: undefined method `username=' for #<User:0x007ffb2bc896b8>
Oh, you know what? I created the User model before I started installing Challah, and it had a username. My bad.
Thanks @philtr :)
rake challah:setup
asks for info about a new user, one of them is username, which breaks because there is no username field in the user migration.