fix profile db generator to run even with the system account

This commit is contained in:
Régis Hanol 2013-09-30 15:10:30 +02:00
parent 5caa7a0e4d
commit abe4a19824

View File

@ -72,7 +72,8 @@ unless Rails.env == "profile"
exit
end
unless User.count == 0
# by default, Discourse has a "system" account
if User.count > 0
puts "Only run this script against an empty DB"
exit
end