From a50ffc7e9ac1140a9c6dd32a3983178bc03a8b05 Mon Sep 17 00:00:00 2001 From: rhymes Date: Mon, 23 Mar 2020 09:56:26 +0100 Subject: [PATCH] Add tags to seeded listings (#6756) --- db/seeds.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/db/seeds.rb b/db/seeds.rb index 9b16840da..b6df83e5a 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -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