mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
fix profile db generator to run even with the system account
This commit is contained in:
parent
5caa7a0e4d
commit
abe4a19824
1 changed files with 2 additions and 1 deletions
|
@ -72,7 +72,8 @@ unless Rails.env == "profile"
|
||||||
exit
|
exit
|
||||||
end
|
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"
|
puts "Only run this script against an empty DB"
|
||||||
exit
|
exit
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue