# `lib/tasks/faker.rake` ```rb namespace :faker do task basic: :environment do 50.times do user = User.create( email: Faker::Internet.email, password: Faker::Internet.password, first_name: Faker::Name.female_first_name, last_name: Faker::Name.last_name ) url = Faker::Image.unsplash(height: 400, width: 400, keyword: ["cat", "dog", "bear", "lion"]) add_photo(url, user, "avatar") end end end ``` # `lib/tasks/faker_imagen.rake` ```rb namespace :faker do task imagen: :environment do 50.times do user = User.create(...) sex = ["male", "female"] animal = ["cat", "dog", "bear", "lion"] action = ["chilling", "eating breakfast", "sleeping", "dancing", "making love"] place = ["on the couch", "inside cave", "underneath waterfall"] avatar = sex.sample + animal.sample # => "A male lion" photo1 = avatar + action.sample + place.sample # => "A male lion eating breakfast underneath waterfall" photo2 = avatar + action.sample + place.sample # => "A male lion sleeping inside cave" photo3 = avatar + action.sample + place.sample # => "A male lion making love on the couch" add_photo(user, "avatar") add_photo(user, "photo1") add_photo(user, "photo2") add_photo(user, "photo3") end end end ```