Update profile image for orgs in seeds (#16666)

This commit is contained in:
Michael Kohl 2022-02-23 10:13:43 +07:00 committed by GitHub
parent e1bce8c398
commit d4ec02bf6d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,7 +38,7 @@ seeder.create_if_none(Organization) do
Organization.create!(
name: Faker::TvShows::SiliconValley.company,
summary: Faker::Company.bs,
remote_profile_image_url: logo = Faker::Company.logo,
profile_image: logo = File.open(Rails.root.join("app/assets/images/#{rand(1..40)}.png")),
nav_image: logo,
url: Faker::Internet.url,
slug: "org#{rand(10_000)}",