mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 04:08:41 +08:00
fix profile db generator to run even with the system account
This commit is contained in:
@ -72,7 +72,8 @@ unless Rails.env == "profile"
|
||||
exit
|
||||
end
|
||||
|
||||
unless User.count == 0
|
||||
# by default, Discourse has a "system" account
|
||||
if User.count > 0
|
||||
puts "Only run this script against an empty DB"
|
||||
exit
|
||||
end
|
||||
|
Reference in New Issue
Block a user