mirror of
https://github.com/fspc/BikeShed-1.git
synced 2026-10-28 00:56:09 -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
|
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',
|
||||||
|
|||||||
Reference in New Issue
Block a user