mirror of
https://github.com/fspc/BikeShed-1.git
synced 2026-09-13 07:01:38 -04:00
minor change to check for seeding admin
This commit is contained in:
+1
-1
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user