From 312fa7d787cf0cd8892bf5a4448ddfbdf3defcd6 Mon Sep 17 00:00:00 2001 From: Jason Denney Date: Tue, 4 Dec 2012 23:15:34 -0500 Subject: [PATCH] Adding bike attribute tables migrations --- db/migrate/20121205040400_create_bike_brands.rb | 8 ++++++++ db/migrate/20121205040602_create_bike_models.rb | 9 +++++++++ db/migrate/20121205040829_create_bike_styles.rb | 8 ++++++++ db/migrate/20121205041000_create_bike_conditions.rb | 8 ++++++++ 4 files changed, 33 insertions(+) create mode 100644 db/migrate/20121205040400_create_bike_brands.rb create mode 100644 db/migrate/20121205040602_create_bike_models.rb create mode 100644 db/migrate/20121205040829_create_bike_styles.rb create mode 100644 db/migrate/20121205041000_create_bike_conditions.rb diff --git a/db/migrate/20121205040400_create_bike_brands.rb b/db/migrate/20121205040400_create_bike_brands.rb new file mode 100644 index 0000000..3d1fe31 --- /dev/null +++ b/db/migrate/20121205040400_create_bike_brands.rb @@ -0,0 +1,8 @@ +class CreateBikeBrands < ActiveRecord::Migration + def change + create_table :bike_brands do |t| + t.string "brand" + t.timestamps + end + end +end diff --git a/db/migrate/20121205040602_create_bike_models.rb b/db/migrate/20121205040602_create_bike_models.rb new file mode 100644 index 0000000..937fb49 --- /dev/null +++ b/db/migrate/20121205040602_create_bike_models.rb @@ -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 diff --git a/db/migrate/20121205040829_create_bike_styles.rb b/db/migrate/20121205040829_create_bike_styles.rb new file mode 100644 index 0000000..7ebe023 --- /dev/null +++ b/db/migrate/20121205040829_create_bike_styles.rb @@ -0,0 +1,8 @@ +class CreateBikeStyles < ActiveRecord::Migration + def change + create_table :bike_styles do |t| + t.string "style" + t.timestamps + end + end +end diff --git a/db/migrate/20121205041000_create_bike_conditions.rb b/db/migrate/20121205041000_create_bike_conditions.rb new file mode 100644 index 0000000..e669300 --- /dev/null +++ b/db/migrate/20121205041000_create_bike_conditions.rb @@ -0,0 +1,8 @@ +class CreateBikeConditions < ActiveRecord::Migration + def change + create_table :bike_conditions do |t| + t.string "condition" + t.timestamps + end + end +end