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

fix: no crea los sitios #1278

This commit is contained in:
jazzari 2023-06-09 12:13:43 -03:00
parent 41acc89e37
commit f546cb902a

View file

@ -16,12 +16,3 @@ licencias.each do |l|
licencia.update l licencia.update l
end end
unless Rails.env.test?
YAML.safe_load(File.read('db/seeds/sites.yml')).each do |site|
site = Site.find_or_create_by name: site['name']
site.update licencia: Licencia.first, design: Design.first,
title: site.name, description: 'x' * 50,
deploys: site.deploys.empty? ? [DeployLocal.new] : site.deploys
end
end