add new api
This commit is contained in:
7
db/migrate/20170208065307_create_product_types.rb
Normal file
7
db/migrate/20170208065307_create_product_types.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
class CreateProductTypes < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
create_table :product_types do |t|
|
||||
t.string :name
|
||||
end
|
||||
end
|
||||
end
|
||||
8
db/migrate/20170208065316_create_product_categories.rb
Normal file
8
db/migrate/20170208065316_create_product_categories.rb
Normal file
@@ -0,0 +1,8 @@
|
||||
class CreateProductCategories < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
create_table :product_categories do |t|
|
||||
t.string :name
|
||||
t.references :product_type
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user