Louis | Remove failing autogenerated tests, fix bug where bike type wasn't saving

This commit is contained in:
Loos
2014-09-17 09:12:16 -04:00
parent d3403e18cd
commit 4d49cf829f
18 changed files with 47 additions and 137 deletions
@@ -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
View File
@@ -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