added has_many categories to patterns
added missed files