mirror of
https://github.com/fspc/BikeShed-1.git
synced 2026-09-16 08:31:36 -04:00
Added bike_brands and bike_models sql data
-Update some migrations to match source schema, will need to add timestamps back eventually
This commit is contained in:
@@ -2,7 +2,7 @@ class CreateBikeBrands < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :bike_brands do |t|
|
||||
t.string "brand"
|
||||
t.timestamps
|
||||
#t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
class CreateBikeModels < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :bike_models do |t|
|
||||
t.integer "bike_brand_id", :null => false
|
||||
t.string "model", :null => false
|
||||
t.timestamps
|
||||
t.integer "bike_brand_id", :null => false
|
||||
#t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user