From 238a3af7d5c2c63782246d871a61c515d0bcf81d Mon Sep 17 00:00:00 2001 From: Jason Denney Date: Tue, 25 Jun 2013 22:31:29 -0400 Subject: [PATCH] minor change to check for seeding admin --- db/seeds.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/seeds.rb b/db/seeds.rb index 65234f1..42902a9 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -37,7 +37,7 @@ if Rails.env.development? end elsif Rails.env.production? - if User.all.empty? + unless User.find_by_username('admin') #create an admin admin = User.create!( :username => 'admin', :first_name => 'admin',