mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 02:21:42 +00:00
Sitios por defecto
This commit is contained in:
parent
500af21c5e
commit
617de1701a
2 changed files with 16 additions and 0 deletions
|
@ -15,3 +15,11 @@ licencias.each do |l|
|
|||
|
||||
licencia.update_attributes l
|
||||
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
8
db/seeds/sites.yml
Normal file
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
- name: api
|
||||
- name: edit
|
||||
- name: editor
|
||||
- name: editar
|
||||
- name: admin
|
||||
- name: registry
|
||||
- name: panel
|
Loading…
Reference in a new issue