Browse Source

minor change to check for seeding admin

eperez-timeinput
Jason Denney 12 years ago
parent
commit
238a3af7d5
  1. 2
      db/seeds.rb

2
db/seeds.rb

@ -37,7 +37,7 @@ if Rails.env.development?
end end
elsif Rails.env.production? elsif Rails.env.production?
if User.all.empty? unless User.find_by_username('admin')
#create an admin #create an admin
admin = User.create!( :username => 'admin', admin = User.create!( :username => 'admin',
:first_name => 'admin', :first_name => 'admin',

Loading…
Cancel
Save