5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 04:31:41 +00:00

fix: agrego polizas & codigo de conducta #1278
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
jazzari 2023-06-09 12:44:40 -03:00
parent f546cb902a
commit 3d7394655c

View file

@ -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