summaryrefslogtreecommitdiff
path: root/db/seeds.rb
diff options
context:
space:
mode:
authorLuke Shumaker <shumakl@purdue.edu>2014-04-19 19:12:04 -0400
committerLuke Shumaker <shumakl@purdue.edu>2014-04-19 19:12:04 -0400
commite681498867d6007caa45ab9312057acb5303f609 (patch)
tree20575c73ed5a69280f349d6f3dbf15cf8d3bf9cd /db/seeds.rb
parent458085f34f4ed79e7dbc6a01c5e52706814fb69e (diff)
fix seeds.rb
Diffstat (limited to 'db/seeds.rb')
-rw-r--r--db/seeds.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/db/seeds.rb b/db/seeds.rb
index a9e9872..85ccd92 100644
--- a/db/seeds.rb
+++ b/db/seeds.rb
@@ -20,8 +20,8 @@ Game.find_by_name("Chess").settings.create(name: "Time Control", description: "E
Game.find_by_name("Hearthstone").settings.create(name: "Deck Name", description: "Enter a name for your deck, be descriptive.", stype: 1, display_order: 1)
-if ENV["RAILS_ENV"] and ENV["RAILS_ENV"] != "development"
- User.create(name: "Administrator", user_name: "admin", email: "root@localhost", password: "password", password_confirmation: "password", permissions: 0xFFFFFFFF)
+unless ENV["RAILS_ENV"] and ENV["RAILS_ENV"] != "development"
+ User.create(name: "Administrator", user_name: "admin", email: "root@localhost.lan", password: "password", password_confirmation: "password", permissions: 0xFFFFFFFF)
User.create(name: "John 0", password: "password", email: "john0@gmail.com", user_name: "johndoe0", password_confirmation: "password")
User.create(name: "John 1", password: "password", email: "john1@gmail.com", user_name: "johndoe1", password_confirmation: "password")