Add tags to seeded listings (#6756)

This commit is contained in:
rhymes 2020-03-23 09:56:26 +01:00 committed by GitHub
parent ea6d988128
commit a50ffc7e9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -376,6 +376,7 @@ listings_categories.each_with_index do |category, index|
contact_via_connect: true,
published: true,
bumped_at: Time.current,
tag_list: Tag.order(Arel.sql("RANDOM()")).first(2).pluck(:name),
)
end
end