mirror of
https://github.com/fspc/bike-database.git
synced 2026-09-16 08:31:39 -04:00
initial commit
This commit is contained in:
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
|
||||
@@ -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)
|
||||
Reference in New Issue
Block a user