adds default settings to seeds file
This commit is contained in:
15
db/seeds.rb
15
db/seeds.rb
@@ -1,7 +1,8 @@
|
|||||||
# This file should contain all the record creation needed to seed the database with its default values.
|
# Names for the moderation console, as a hint for moderators
|
||||||
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
|
# to know better how to assign users with official positions
|
||||||
#
|
Setting.create(key: 'official_level_0_name', value: 'No cargo público')
|
||||||
# Examples:
|
Setting.create(key: 'official_level_1_name', value: 'Organización Municipal')
|
||||||
#
|
Setting.create(key: 'official_level_2_name', value: 'Funcionariado')
|
||||||
# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
|
Setting.create(key: 'official_level_3_name', value: 'Directores generales')
|
||||||
# Mayor.create(name: 'Emanuel', city: cities.first)
|
Setting.create(key: 'official_level_4_name', value: 'Concejales')
|
||||||
|
Setting.create(key: 'official_level_5_name', value: 'Alcaldes')
|
||||||
Reference in New Issue
Block a user