mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 13:03:45 +08:00
commit
00a0a9ac52
|
@ -1,6 +1,6 @@
|
||||||
## These tasks are destructive and are for clearing out all the
|
## These tasks are destructive and are for clearing out all the
|
||||||
# content and users from your site, but keeping your site settings,
|
# content and users from your site, but keeping your site settings,
|
||||||
# theme, and category structrue.
|
# theme, and category structure.
|
||||||
desc "Remove all topics in a category"
|
desc "Remove all topics in a category"
|
||||||
task "destroy:topics", [:category] => :environment do |t, args|
|
task "destroy:topics", [:category] => :environment do |t, args|
|
||||||
category = args[:category]
|
category = args[:category]
|
||||||
|
@ -32,7 +32,7 @@ task "destroy:users" => :environment do
|
||||||
puts log = DestroyTask.destroy_users
|
puts log = DestroyTask.destroy_users
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "Destory site stats"
|
desc "Destroy site stats"
|
||||||
task "destroy:stats" => :environment do
|
task "destroy:stats" => :environment do
|
||||||
puts "Going to delete all site stats..."
|
puts "Going to delete all site stats..."
|
||||||
DestroyTask.destroy_stats
|
DestroyTask.destroy_stats
|
||||||
|
|
Loading…
Reference in New Issue
Block a user