fixed rake task

You can run now.
rake subcategory:populate

added a category_id method to the post model.