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',