From 935afe63f75be03f7fc379d7c68377a17b7a3fdd Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Tue, 5 Sep 2017 11:23:03 +0800 Subject: [PATCH] Fix profile db generator not seeding. --- script/profile_db_generator.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/profile_db_generator.rb b/script/profile_db_generator.rb index fc9c30b4482..c5ac79e05de 100644 --- a/script/profile_db_generator.rb +++ b/script/profile_db_generator.rb @@ -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