initial commit

This commit is contained in:
loos
2014-01-18 14:49:59 -06:00
parent e76f6e84d0
commit bb1c83fb19
58 changed files with 930 additions and 0 deletions
Binary file not shown.
@@ -0,0 +1,21 @@
class CreateBikeTable < ActiveRecord::Migration
def change
create_table :bikes do |t|
t.string :entry_date
t.string :brand
t.string :model
t.string :type
t.string :color
t.string :frame_size
t.boolean :freecyclery
t.boolean :sale
t.string :serial_number
t.text :notes
t.text :tag_info
t.string :repaired_by
t.string :repaired_for
t.string :completion_date
t.string :price
end
end
end
+7
View File
@@ -0,0 +1,7 @@
# This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
#
# Examples:
#
# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
# Mayor.create(name: 'Emanuel', city: cities.first)