Browse Source

Adding bike attribute tables migrations

denney-disable-on-select
Jason Denney 12 years ago
parent
commit
312fa7d787
  1. 8
      db/migrate/20121205040400_create_bike_brands.rb
  2. 9
      db/migrate/20121205040602_create_bike_models.rb
  3. 8
      db/migrate/20121205040829_create_bike_styles.rb
  4. 8
      db/migrate/20121205041000_create_bike_conditions.rb

8
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

9
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

8
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

8
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
Loading…
Cancel
Save