Preparing
Generate Category / Product / CategoriesProducts model
Configure relationship of models Category / Product
Add column "parent_id" into categories
Configure model Category's attributes
Unsuccess rake fetch_database