From be7d1fc5a60785084632db1aed99b991a8ab8ad2 Mon Sep 17 00:00:00 2001 From: takahashim Date: Mon, 8 Nov 2021 19:49:06 +0900 Subject: [PATCH] Fix #304; ignore seeds of DecidimAwesome --- db/seeds.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/db/seeds.rb b/db/seeds.rb index 75c314af1f..9e787595bf 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -11,6 +11,19 @@ require_relative "../lib/monkey_patching_faker" +# Seeds of DecidimAwesome 0.7.0 and 0.7.2 support Faker 2.x, not 1.9.x. +# So Decidim 0.23.5 (using Faker 1.9.6) should ignore seeds of them. +# +map_component = Decidim.find_component_manifest("awesome_map") +map_component.seeds do |participatory_space| + # noop +end + +iframe_component = Decidim.find_component_manifest("awesome_iframe") +iframe_component.seeds do |participatory_space| + # noop +end + Decidim.seed! if !Rails.env.production? || ENV["SEED"]