This repository was archived by the owner on Sep 24, 2019. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ class Vehicle < ApplicationRecord
2+ end
Original file line number Diff line number Diff line change 1+ class CreateVehicles < ActiveRecord ::Migration [ 5.0 ]
2+ def change
3+ create_table :vehicles do |t |
4+ t . string :name
5+ t . string :model
6+ t . string :vehicle_class
7+ t . string :manufacturer
8+ t . float :cost_in_credits
9+ t . float :length
10+ t . string :crew
11+ t . string :passengers
12+ t . integer :max_atmosphering_speed
13+ t . float :cargo_capacity
14+ t . string :consumables
15+
16+ t . timestamps
17+ end
18+ end
19+ end
Original file line number Diff line number Diff line change 1010#
1111# It's strongly recommended that you check this file into your version control system.
1212
13- ActiveRecord ::Schema . define ( version : 20170208210929 ) do
13+ ActiveRecord ::Schema . define ( version : 20170209014741 ) do
1414
1515 create_table "people" , force : :cascade do |t |
1616 t . string "name"
6666 t . datetime "updated_at" , null : false
6767 end
6868
69+ create_table "vehicles" , force : :cascade do |t |
70+ t . string "name"
71+ t . string "model"
72+ t . string "vehicle_class"
73+ t . string "manufacturer"
74+ t . float "cost_in_credits"
75+ t . float "length"
76+ t . string "crew"
77+ t . string "passengers"
78+ t . integer "max_atmosphering_speed"
79+ t . float "cargo_capacity"
80+ t . string "consumables"
81+ t . datetime "created_at" , null : false
82+ t . datetime "updated_at" , null : false
83+ end
84+
6985end
You can’t perform that action at this time.
0 commit comments