mirror of
https://github.com/fspc/BikeShed-1.git
synced 2025-03-01 01:03:23 -05:00
-Moved bikes to User model instead of profile -User can copy user log to a bike log with new actsasloggable -Added user stats -some css was messing up checkboxes, need to figure out which stylesheet was doing that
21 lines
613 B
Ruby
21 lines
613 B
Ruby
class CreateBike < ActiveRecord::Migration
|
|
def change
|
|
create_table :bikes do |t|
|
|
t.string "serial_number"
|
|
t.integer "bike_brand_id", :null => false
|
|
t.integer "bike_model_id", :null => false
|
|
t.string "color"
|
|
t.integer "bike_style_id", :null => false
|
|
t.float "seat_tube_height"
|
|
t.float "top_tube_length"
|
|
t.integer "wheel_size"
|
|
t.float "value"
|
|
t.string "bike_condition_id", :null => false
|
|
t.integer "bike_status_id", :null => false
|
|
t.timestamps
|
|
end
|
|
|
|
add_index :bikes, :serial_number, :unique => true
|
|
end
|
|
end
|