Fix profile db generator not seeding.

This commit is contained in:
Guo Xiang Tan 2017-09-05 11:23:03 +08:00
parent 672b7cb9a5
commit 935afe63f7
1 changed files with 2 additions and 2 deletions

View File

@ -62,8 +62,8 @@ unless Rails.env == "profile"
exit
end
# by default, Discourse has a "system" account
if User.count > 1
# by default, Discourse has a "system" and `discobot` account
if User.count > 2
puts "Only run this script against an empty DB"
exit
end