1
0
mirror of https://github.com/fspc/BikeShed-1.git synced 2025-04-04 05:33:22 -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:
Jason Denney 2012-12-08 14:59:10 -05:00
parent 6937cc3146
commit 7bf4c4d601
3 changed files with 7 additions and 5 deletions

View File

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

View File

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

View File

@ -1,9 +1,10 @@
PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
/**
CREATE TABLE bike_brands(
_id INTEGER PRIMARY KEY,
name varchar(255)
);
);*/
INSERT INTO "bike_brands" VALUES(1,'Phil Wood');
INSERT INTO "bike_brands" VALUES(2,'Mt. Shasta');
INSERT INTO "bike_brands" VALUES(3,'Moving Violations');
@ -490,11 +491,12 @@ INSERT INTO "bike_brands" VALUES(483,'Windy City');
INSERT INTO "bike_brands" VALUES(484,'Banshee');
INSERT INTO "bike_brands" VALUES(485,'Basso');
INSERT INTO "bike_brands" VALUES(486,'Gazelle Bikes');
/**
CREATE TABLE bike_models(
_id INTEGER PRIMARY KEY,
name varchar(255),
brand_id int
);
);*/
INSERT INTO "bike_models" VALUES(1,'Kiss Off',1);
INSERT INTO "bike_models" VALUES(2,'Kiss Off Julienne',1);
INSERT INTO "bike_models" VALUES(3,'Le Kiss Off',1);