creates admin user in db/seeds
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
# Default admin user (change password after first deploy to a server!)
|
||||||
|
admin = User.create!(username: 'admin', email: 'admin@madrid.es', password: '12345678', password_confirmation: '12345678', confirmed_at: Time.now)
|
||||||
|
admin.create_administrator
|
||||||
|
|
||||||
# Names for the moderation console, as a hint for moderators
|
# Names for the moderation console, as a hint for moderators
|
||||||
# to know better how to assign users with official positions
|
# to know better how to assign users with official positions
|
||||||
Setting.create(key: 'official_level_1_name', value: 'Empleados públicos')
|
Setting.create(key: 'official_level_1_name', value: 'Empleados públicos')
|
||||||
@@ -7,4 +11,4 @@ Setting.create(key: 'official_level_4_name', value: 'Concejales')
|
|||||||
Setting.create(key: 'official_level_5_name', value: 'Alcaldesa')
|
Setting.create(key: 'official_level_5_name', value: 'Alcaldesa')
|
||||||
|
|
||||||
# Max percentage of allowed anonymous votes on a debate
|
# Max percentage of allowed anonymous votes on a debate
|
||||||
Setting.create(key: 'max_ratio_anon_votes_on_debates', value: '50')
|
Setting.create(key: 'max_ratio_anon_votes_on_debates', value: '50')
|
||||||
|
|||||||
Reference in New Issue
Block a user