1
0
mirror of https://github.com/fspc/BikeShed-1.git synced 2025-02-28 16:53:23 -05:00

Adding bike attribute tables migrations

This commit is contained in:
Jason Denney 2012-12-04 23:15:34 -05:00
parent 2ac1b7dcd9
commit 312fa7d787
4 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,8 @@
class CreateBikeBrands < ActiveRecord::Migration
def change
create_table :bike_brands do |t|
t.string "brand"
t.timestamps
end
end
end

View File

@ -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

View File

@ -0,0 +1,8 @@
class CreateBikeStyles < ActiveRecord::Migration
def change
create_table :bike_styles do |t|
t.string "style"
t.timestamps
end
end
end

View File

@ -0,0 +1,8 @@
class CreateBikeConditions < ActiveRecord::Migration
def change
create_table :bike_conditions do |t|
t.string "condition"
t.timestamps
end
end
end