mirror of
				https://github.com/fspc/BikeShed-1.git
				synced 2025-10-31 08:55:36 -04:00 
			
		
		
		
	Add Bike Style model and defaults
This commit is contained in:
		
							parent
							
								
									01923723ff
								
							
						
					
					
						commit
						29af72787b
					
				
							
								
								
									
										5
									
								
								app/models/bike_style.rb
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								app/models/bike_style.rb
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,5 @@ | |||||||
|  | class BikeStyle < ActiveRecord::Base | ||||||
|  |   attr_accessible :style | ||||||
|  | 
 | ||||||
|  |   belongs_to :bike | ||||||
|  | end | ||||||
							
								
								
									
										9
									
								
								db/seed/fixtures/bike_styles.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								db/seed/fixtures/bike_styles.yml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,9 @@ | |||||||
|  | mountain: | ||||||
|  |   id: 1 | ||||||
|  |   style: MOUNTAIN | ||||||
|  | hybrid: | ||||||
|  |   id: 2 | ||||||
|  |   style: HYBRID | ||||||
|  | road: | ||||||
|  |   id: 3 | ||||||
|  |   style: ROAD | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user