created subcategories
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
class Category < ActiveRecord::Base
|
||||
has_many :sub_categories
|
||||
end
|
||||
|
||||
3
app/models/sub_category.rb
Normal file
3
app/models/sub_category.rb
Normal file
@@ -0,0 +1,3 @@
|
||||
class SubCategory < ActiveRecord::Base
|
||||
belongs_to :category
|
||||
end
|
||||
Reference in New Issue
Block a user