Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merged commit from 'https://github.com/ccabot/gradesheet';

  • Loading branch information...
commit 9ed07f5da2b186e34a22f163ebe78d20d0b20f23 1 parent e8bc0c2
@rnhurt authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 db/seeds.rb
View
9 db/seeds.rb
@@ -1,2 +1,7 @@
-s = Site.find_or_create_by_name 'seed site'
-User.find_or_create_by_login :login => 'admin', :site => s, :password => 'password', :password_confirmation => 'password', :first_name => 'seed', :last_name => 'user', :is_admin => true
+# Create a new default site
+site = Site.find_or_create_by_name 'Main'
+
+# Add the admin user
+User.find_or_create_by_login :login => 'admin', :site => site,
+ :password => 'password', :password_confirmation => 'password',
+ :first_name => 'admin', :last_name => 'user', :is_admin => true
Please sign in to comment.
Something went wrong with that request. Please try again.