Browse Source

Add Bike Style model and defaults

denney-disable-on-select
Jason Denney 12 years ago
parent
commit
29af72787b
  1. 5
      app/models/bike_style.rb
  2. 9
      db/seed/fixtures/bike_styles.yml

5
app/models/bike_style.rb

@ -0,0 +1,5 @@
class BikeStyle < ActiveRecord::Base
attr_accessible :style
belongs_to :bike
end

9
db/seed/fixtures/bike_styles.yml

@ -0,0 +1,9 @@
mountain:
id: 1
style: MOUNTAIN
hybrid:
id: 2
style: HYBRID
road:
id: 3
style: ROAD
Loading…
Cancel
Save