diff options
author | Luke Shumaker <shumakl@purdue.edu> | 2014-04-19 19:12:04 -0400 |
---|---|---|
committer | Luke Shumaker <shumakl@purdue.edu> | 2014-04-19 19:12:04 -0400 |
commit | e681498867d6007caa45ab9312057acb5303f609 (patch) | |
tree | 20575c73ed5a69280f349d6f3dbf15cf8d3bf9cd /db | |
parent | 458085f34f4ed79e7dbc6a01c5e52706814fb69e (diff) |
fix seeds.rb
Diffstat (limited to 'db')
-rw-r--r-- | db/seeds.rb | 4 |
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") |