Skip to content

Commit

Permalink
creates admin user in db/seeds
Browse files Browse the repository at this point in the history
  • Loading branch information
kikito committed Sep 2, 2015
1 parent c7b4448 commit 47b66f3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion db/seeds.rb
@@ -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
# to know better how to assign users with official positions
Setting.create(key: 'official_level_1_name', value: 'Empleados públicos')
Expand All @@ -7,4 +11,4 @@
Setting.create(key: 'official_level_5_name', value: 'Alcaldesa')

# 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')

0 comments on commit 47b66f3

Please sign in to comment.