I want to create a user manually through the console as such:
User.find_or_create_by(email: "email@example.com", first_name: "Stan", last_name: "Smith", password: "password", password_confirmation: "password", confirmed_at: Time.now)
PG::UndefinedColumn: ERROR: column users.password does not exist
User.find_or_create_by you should be using
Devise accepts a password and password confirmation on creation but the actual table only has a column called
The "find" portion of
User.find_or_create_by is looking for a column called "password" which doesn't exist.