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:
parent
2ac1b7dcd9
commit
312fa7d787
8
db/migrate/20121205040400_create_bike_brands.rb
Normal file
8
db/migrate/20121205040400_create_bike_brands.rb
Normal 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
|
9
db/migrate/20121205040602_create_bike_models.rb
Normal file
9
db/migrate/20121205040602_create_bike_models.rb
Normal 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
|
8
db/migrate/20121205040829_create_bike_styles.rb
Normal file
8
db/migrate/20121205040829_create_bike_styles.rb
Normal 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
|
8
db/migrate/20121205041000_create_bike_conditions.rb
Normal file
8
db/migrate/20121205041000_create_bike_conditions.rb
Normal 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
|
Loading…
x
Reference in New Issue
Block a user