In my development and test environments, I want to seed the database with a bunch of users. I\'m using Ruby on Rails v3.2.8 and the latest Devise. So I added this line in
To seed the users table:
User.create( email: "example@gmail.com", password: "12345678" )
With devise installed, the :password will be automatically hashed and saved to :encrypted_password
:password
:encrypted_password