mirror of
https://github.com/fspc/bike-database.git
synced 2026-09-16 08:31:39 -04:00
add volunteer table
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
class CreateVolunteers < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :volunteers do |t|
|
||||
t.string :name
|
||||
t.string :email
|
||||
t.string :phone
|
||||
t.date :orientation_date
|
||||
t.integer :other_volunteer_hours
|
||||
t.text :referral
|
||||
t.text :reason
|
||||
t.text :skills
|
||||
t.text :wants
|
||||
t.boolean :interested_in_improving
|
||||
t.boolean :available_weekends
|
||||
t.boolean :available_weekdays
|
||||
t.boolean :available_shorter_hours
|
||||
t.boolean :available_longer_hours
|
||||
t.boolean :flexible
|
||||
t.text :questions
|
||||
t.text :improve_orientation
|
||||
end
|
||||
end
|
||||
end
|
||||
+21
-1
@@ -11,7 +11,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20140312232550) do
|
||||
ActiveRecord::Schema.define(version: 20140313000619) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
@@ -37,4 +37,24 @@ ActiveRecord::Schema.define(version: 20140312232550) do
|
||||
t.text "mechanic"
|
||||
end
|
||||
|
||||
create_table "volunteers", force: true do |t|
|
||||
t.string "name"
|
||||
t.string "email"
|
||||
t.string "phone"
|
||||
t.date "orientation_date"
|
||||
t.integer "other_volunteer_hours"
|
||||
t.text "referral"
|
||||
t.text "reason"
|
||||
t.text "skills"
|
||||
t.text "wants"
|
||||
t.boolean "interested_in_improving"
|
||||
t.boolean "available_weekends"
|
||||
t.boolean "available_weekdays"
|
||||
t.boolean "available_shorter_hours"
|
||||
t.boolean "available_longer_hours"
|
||||
t.boolean "flexible"
|
||||
t.text "questions"
|
||||
t.text "improve_orientation"
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user