1
0
mirror of https://github.com/fspc/BikeShed-1.git synced 2025-02-28 16:53:23 -05:00

minor change to check for seeding admin

This commit is contained in:
Jason Denney 2013-06-25 22:31:29 -04:00
parent fee421cabe
commit 238a3af7d5

View File

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