Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #1 from SustainableWebsites/master

reset_blog task now truncates the blog_categories_blog_posts table
  • Loading branch information...
commit 5c85ee2ec3d654925e26dcf5fed57f0816e7b592 2 parents 2dbf9d3 + 49a49bb
@mremolt mremolt authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/tasks/wordpress.rake
View
2  lib/tasks/wordpress.rake
@@ -5,7 +5,7 @@ namespace :wordpress do
task :reset_blog do
Rake::Task["environment"].invoke
- %w(taggings tags blog_comments blog_categories blog_posts).each do |table_name|
+ %w(taggings tags blog_comments blog_categories blog_categories_blog_posts blog_posts).each do |table_name|
p "Truncating #{table_name} ..."
ActiveRecord::Base.connection.execute "DELETE FROM #{table_name}"
end
Please sign in to comment.
Something went wrong with that request. Please try again.