2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-05 08:59:27 +08:00

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 exit
end 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" puts "Only run this script against an empty DB"
exit exit
end end