mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 23:07:28 +08:00
Fix profile db generator not seeding.
This commit is contained in:
@ -62,8 +62,8 @@ unless Rails.env == "profile"
|
|||||||
exit
|
exit
|
||||||
end
|
end
|
||||||
|
|
||||||
# by default, Discourse has a "system" account
|
# by default, Discourse has a "system" and `discobot` account
|
||||||
if User.count > 1
|
if User.count > 2
|
||||||
puts "Only run this script against an empty DB"
|
puts "Only run this script against an empty DB"
|
||||||
exit
|
exit
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user