I want to create a user manually through the console as such:
User.find_or_create_by(email: "user@mail.com", first_name: "Stan", last_name: "Smith", password: "password", password_confirmation: "password", confirmed_at: Time.now)
I have done this many times in past projects, but this time it does not work. It does not match the attribute of the Devise password model, so this is the error I get:
PG::UndefinedColumn: ERROR: column users.password does not exist
I have Rails 4.1.4 and Devise 3.3.0. Has something changed in recent versions?
Thank.
source
share