n2ctech / goodnoob-new

0 stars 0 forks source link

DB changes #241

Open n2ctech opened 6 years ago

n2ctech commented 6 years ago

fields : DDBB_Buying Process.xlsx

Add table surfboard_details attributes Belongs_to product (product has_one) The fields are in excel sheet “surfboard_fields"

Add Size_height table Field height :string Belongs to surfboard_details (surfboard_details has_one)

Add Size_width table Field width :string Belongs to surfboard_details (surfboard_details has_one)

Add thickness table Field thickness :string Belongs to surfboard_details (surfboard_details has_one)

Add Volume_table Field volume :string

Add tail_shape table A surfboard_details has many tail_shape Fields Name - price

Add construction table A surfboard_details has many constructions Fields name - price

Add fin_system table A surfboard_details has many Fin_systems Name - price

Add artwork table A surfboard_details has many artworks Fields image - price

Change active admin so when creating a product and selecting subcategory surfboards I see all the specific fields for surfboard fields I am able to add many combinations of Size Height, Size Width, Thickness, Volume. Dropdown for each with options pulled from what exists in DB for each table. The result on the buying page for this product will be this :

screen shot 2017-12-05 at 12 59 37

Add shipping_cost table Fields in shipping Cost (destination, shipping_fee, delivery_time) Brand has_many shipping_costs