mirror of
https://github.com/discourse/discourse.git
synced 2025-03-25 18:36:39 +08:00
Fix profile db generator not seeding.
This commit is contained in:
parent
672b7cb9a5
commit
935afe63f7
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user