Louis | Adds fields to client

This commit is contained in:
Loos
2014-09-22 20:20:06 -04:00
parent 2a33493ff2
commit 5bfe7365ae
4 changed files with 55 additions and 2 deletions
@@ -0,0 +1,10 @@
class AddFieldsToClient < ActiveRecord::Migration
def change
add_column(:clients, :notes, :text)
add_column(:clients, :bike_fixed, :boolean)
add_column(:clients, :number_of_calls, :integer)
add_column(:clients, :application_voided, :boolean)
add_column(:clients, :pickup_date, :date)
add_column(:clients, :volunteer_at_pickup, :string)
end
end
+7 -1
View File
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20140922233036) do
ActiveRecord::Schema.define(version: 20140923000417) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -67,6 +67,12 @@ ActiveRecord::Schema.define(version: 20140922233036) do
t.string "bike_type_requested"
t.boolean "will_pay"
t.integer "agency_id"
t.text "notes"
t.boolean "bike_fixed"
t.integer "number_of_calls"
t.boolean "application_voided"
t.date "pickup_date"
t.string "volunteer_at_pickup"
end
add_index "clients", ["agency_id"], name: "index_clients_on_agency_id", using: :btree