mirror of
				https://github.com/fspc/BikeShed-1.git
				synced 2025-10-31 08:55: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:
		
							parent
							
								
									6937cc3146
								
							
						
					
					
						commit
						7bf4c4d601
					
				| @ -2,7 +2,7 @@ class CreateBikeBrands < ActiveRecord::Migration | |||||||
|   def change |   def change | ||||||
|     create_table :bike_brands do |t| |     create_table :bike_brands do |t| | ||||||
|       t.string "brand" |       t.string "brand" | ||||||
|       t.timestamps |       #t.timestamps | ||||||
|     end |     end | ||||||
|   end |   end | ||||||
| end | end | ||||||
|  | |||||||
| @ -1,9 +1,9 @@ | |||||||
| class CreateBikeModels < ActiveRecord::Migration | class CreateBikeModels < ActiveRecord::Migration | ||||||
|   def change |   def change | ||||||
|     create_table :bike_models do |t| |     create_table :bike_models do |t| | ||||||
|       t.integer "bike_brand_id", :null => false |  | ||||||
|       t.string "model", :null => false |       t.string "model", :null => false | ||||||
|       t.timestamps |       t.integer "bike_brand_id", :null => false | ||||||
|  |       #t.timestamps | ||||||
|     end |     end | ||||||
|   end |   end | ||||||
| end | end | ||||||
|  | |||||||
| @ -1,9 +1,10 @@ | |||||||
| PRAGMA foreign_keys=OFF; | PRAGMA foreign_keys=OFF; | ||||||
| BEGIN TRANSACTION; | BEGIN TRANSACTION; | ||||||
|  | /** | ||||||
| CREATE TABLE bike_brands( | CREATE TABLE bike_brands( | ||||||
|     _id INTEGER PRIMARY KEY, |     _id INTEGER PRIMARY KEY, | ||||||
|     name varchar(255) |     name varchar(255) | ||||||
|   ); |   );*/ | ||||||
| INSERT INTO "bike_brands" VALUES(1,'Phil Wood'); | INSERT INTO "bike_brands" VALUES(1,'Phil Wood'); | ||||||
| INSERT INTO "bike_brands" VALUES(2,'Mt. Shasta'); | INSERT INTO "bike_brands" VALUES(2,'Mt. Shasta'); | ||||||
| INSERT INTO "bike_brands" VALUES(3,'Moving Violations'); | 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(484,'Banshee'); | ||||||
| INSERT INTO "bike_brands" VALUES(485,'Basso'); | INSERT INTO "bike_brands" VALUES(485,'Basso'); | ||||||
| INSERT INTO "bike_brands" VALUES(486,'Gazelle Bikes'); | INSERT INTO "bike_brands" VALUES(486,'Gazelle Bikes'); | ||||||
|  | /** | ||||||
| CREATE TABLE bike_models( | CREATE TABLE bike_models( | ||||||
|     _id INTEGER PRIMARY KEY, |     _id INTEGER PRIMARY KEY, | ||||||
|     name varchar(255), |     name varchar(255), | ||||||
|     brand_id int |     brand_id int | ||||||
|   ); |   );*/ | ||||||
| INSERT INTO "bike_models" VALUES(1,'Kiss Off',1); | INSERT INTO "bike_models" VALUES(1,'Kiss Off',1); | ||||||
| INSERT INTO "bike_models" VALUES(2,'Kiss Off Julienne',1); | INSERT INTO "bike_models" VALUES(2,'Kiss Off Julienne',1); | ||||||
| INSERT INTO "bike_models" VALUES(3,'Le Kiss Off',1); | INSERT INTO "bike_models" VALUES(3,'Le Kiss Off',1); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user