I'm attempting to seed my database using the data that I grabbed with the seed_dump
gem, found here. Anyway, the seed file generated looks legit, but it seems to be falling afoul of the user model validation:
ActiveRecord::RecordInvalid: Validation failed: Password can't be blank
To give an idea the seed looks like this:
User.create!([
{email: "1234@localhost", encrypted_password: "$2a$10$5eoHh6M2q4GjGkHClO.NqebWWhS94D8rNj5Ot6CB2qrbn7IrTfkSa", reset_password_token: nil, reset_password_sent_at: nil, remember_created_at: nil, sign_in_count: 1, current_sign_in_at: "2014-12-31 22:27:09", last_sign_in_at: "2014-12-31 22:27:09", current_sign_in_ip: "127.0.0.1", last_sign_in_ip: "127.0.0.1", admin: false}
])
Also, I'm using the devise
gem for users management.
Is there an elegant way to seed the user data given this filter?