mirror of
https://github.com/fspc/bike-database.git
synced 2026-09-16 08:31:39 -04:00
Louis | Remove failing autogenerated tests, fix bug where bike type wasn't saving
This commit is contained in:
@@ -6,7 +6,6 @@ class CreateBikeTable < ActiveRecord::Migration
|
||||
t.string :model
|
||||
t.string :type
|
||||
t.string :color
|
||||
t.string :frame_size
|
||||
t.boolean :freecyclery
|
||||
t.boolean :sale
|
||||
t.string :serial_number
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
class AddBikeToClient < ActiveRecord::Migration
|
||||
def change
|
||||
add_reference :clients, :bike, index: true
|
||||
end
|
||||
end
|
||||
+4
-2
@@ -11,7 +11,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20140917003003) do
|
||||
ActiveRecord::Schema.define(version: 20140917020156) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
@@ -22,7 +22,6 @@ ActiveRecord::Schema.define(version: 20140917003003) do
|
||||
t.string "model"
|
||||
t.string "bike_type"
|
||||
t.string "color"
|
||||
t.string "frame_size"
|
||||
t.string "serial_number"
|
||||
t.text "notes"
|
||||
t.text "tag_info"
|
||||
@@ -50,8 +49,11 @@ ActiveRecord::Schema.define(version: 20140917003003) do
|
||||
t.date "completion_date"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.integer "bike_id"
|
||||
end
|
||||
|
||||
add_index "clients", ["bike_id"], name: "index_clients_on_bike_id", using: :btree
|
||||
|
||||
create_table "users", force: true do |t|
|
||||
t.string "email", default: "", null: false
|
||||
t.string "encrypted_password", default: "", null: false
|
||||
|
||||
Reference in New Issue
Block a user