created subcategories

This commit is contained in:
Senad Uka
2015-01-16 07:50:36 +01:00
parent 8384bcbd30
commit e5809207a9
12 changed files with 109 additions and 29 deletions

View File

@@ -1,2 +1,3 @@
class Category < ActiveRecord::Base
has_many :sub_categories
end

View File

@@ -0,0 +1,3 @@
class SubCategory < ActiveRecord::Base
belongs_to :category
end