mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
Fix profile db generator not seeding.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user