mirror of
https://github.com/fspc/BikeShed-1.git
synced 2026-09-10 13:51:38 -04:00
Adding bike attribute tables migrations
This commit is contained in:
@@ -0,0 +1,8 @@
|
|||||||
|
class CreateBikeBrands < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
create_table :bike_brands do |t|
|
||||||
|
t.string "brand"
|
||||||
|
t.timestamps
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
class CreateBikeModels < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
create_table :bike_models do |t|
|
||||||
|
t.integer "bike_brand_id"
|
||||||
|
t.string "model"
|
||||||
|
t.timestamps
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
class CreateBikeStyles < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
create_table :bike_styles do |t|
|
||||||
|
t.string "style"
|
||||||
|
t.timestamps
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
class CreateBikeConditions < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
create_table :bike_conditions do |t|
|
||||||
|
t.string "condition"
|
||||||
|
t.timestamps
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
Reference in New Issue
Block a user