mirror of
https://github.com/fspc/BikeShed-1.git
synced 2025-02-28 08:43:23 -05:00
minor change to check for seeding admin
This commit is contained in:
parent
fee421cabe
commit
238a3af7d5
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user