Sitios por defecto

This commit is contained in:
f 2019-09-06 21:58:52 -03:00
parent 500af21c5e
commit 617de1701a
No known key found for this signature in database
GPG key ID: 2AE5A13E321F953D
2 changed files with 16 additions and 0 deletions

View file

@ -15,3 +15,11 @@ licencias.each do |l|
licencia.update_attributes l licencia.update_attributes l
end end
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: [DeployLocal.new]
end

8
db/seeds/sites.yml Normal file
View file

@ -0,0 +1,8 @@
---
- name: api
- name: edit
- name: editor
- name: editar
- name: admin
- name: registry
- name: panel