Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make default admin account an admin. The :admin parameter is attr_pro…

…tected, so it was being ignored.
  • Loading branch information...
commit 19aab17cd61d2f489f71a411caa40f60c6937eac 1 parent 2ad16b4
@matthew matthew authored
Showing with 5 additions and 4 deletions.
  1. +5 −4 db/seeds.rb
View
9 db/seeds.rb
@@ -10,10 +10,11 @@
puts "-- password: #{admin_pass}"
puts ""
puts "Be sure to change these credentials ASAP!"
-User.create!({
+user = User.create!({
:name => 'Errbit Admin',
:email => admin_email,
:password => admin_pass,
- :password_confirmation => admin_pass,
- :admin => true
-})
+ :password_confirmation => admin_pass
+})
+user.admin = true
+user.save!
Please sign in to comment.
Something went wrong with that request. Please try again.