diff --git a/db/seeds.rb b/db/seeds.rb index 0ab8be61..b9ef96a1 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -16,3 +16,14 @@ licencias.each do |l| licencia.update l end +if CodeOfConduct.count.zero? + YAML.safe_load(File.read('db/seeds/codes_of_conduct.yml')).each do |coc| + CodeOfConduct.new(**coc).save! + end +end + +if PrivacyPolicy.count.zero? + YAML.safe_load(File.read('db/seeds/privacy_policies.yml')).each do |pp| + PrivacyPolicy.new(**pp).save! + end +end