add new api

This commit is contained in:
Sunandar
2017-02-08 17:35:47 +06:30
parent 26d42631c7
commit 43ada02033
18 changed files with 112 additions and 0 deletions

View 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

View 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