В документации не сказано, что вы должны делать что-то необычное.
def create_user(email)
User.create!(
email: email,
password: "password1234"
)
end
#fake users
1...50.times do |i|
create_user("person_#{i}@test#{i}.io")
end
в консоли
User.last
=> <User id: 50, created_at: "2018-05-31 18:51:57", updated_at: "2018-05-31 18:51:57", email: "person_49@test49.io", encrypted_password: "$2a$10$JBWpdFocyd1TTBy5W30uYuWaD5nTo1TPErtQpt2nNZO...", confirmation_token: nil, remember_token: "cfaf107ea30d3303bb991f61973368b2a1fd44c7">