Skip to content
This repository
Browse code

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

  • Loading branch information...
commit 9ed07f5da2b186e34a22f163ebe78d20d0b20f23 1 parent e8bc0c2
Richard Hurt authored November 06, 2010

Showing 1 changed file with 7 additions and 2 deletions. Show diff stats Hide diff stats

  1. 9  db/seeds.rb
9  db/seeds.rb
... ...
@@ -1,2 +1,7 @@
1  
-s = Site.find_or_create_by_name 'seed site'
2  
-User.find_or_create_by_login :login => 'admin', :site => s, :password => 'password', :password_confirmation => 'password', :first_name => 'seed', :last_name => 'user', :is_admin => true
  1
+# Create a new default site
  2
+site = Site.find_or_create_by_name 'Main'
  3
+
  4
+# Add the admin user
  5
+User.find_or_create_by_login :login => 'admin', :site => site,
  6
+  :password => 'password', :password_confirmation => 'password',
  7
+  :first_name => 'admin', :last_name => 'user', :is_admin => true

0 notes on commit 9ed07f5

Please sign in to comment.
Something went wrong with that request. Please try again.