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…
Reference in New Issue