Added registration fields to users table

This commit is contained in:
Matthew Shepard 2012-10-16 14:46:21 -07:00
parent d1ef1e7db9
commit 4ad622e906
2 changed files with 28 additions and 1 deletions

View File

@ -0,0 +1,15 @@
class AddActiveToUsers < ActiveRecord::Migration
def change
add_column :users, :active, :boolean
add_column :users, :waiver, :datetime
add_column :users, :orientation, :datetime
add_column :users, :emergency_name, :string
add_column :users, :emergency_phone, :string
add_column :users, :emergency_email, :string
add_column :users, :member_level, :string
add_column :users, :payment_method, :string
add_column :users, :phone, :string
add_column :users, :current_skills, :string
add_column :users, :desired_skills, :string
end
end

View File

@ -1,3 +1,4 @@
# encoding: UTF-8
# This file is auto-generated from the current state of the database. Instead # This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to # of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition. # incrementally modify your database, and then regenerate this schema definition.
@ -10,7 +11,7 @@
# #
# It's strongly recommended to check this file into your version control system. # It's strongly recommended to check this file into your version control system.
ActiveRecord::Schema.define(:version => 20121014122548) do ActiveRecord::Schema.define(:version => 20121016211727) do
create_table "cards", :force => true do |t| create_table "cards", :force => true do |t|
t.string "card_number" t.string "card_number"
@ -43,6 +44,17 @@ ActiveRecord::Schema.define(:version => 20121014122548) do
t.string "current_sign_in_ip" t.string "current_sign_in_ip"
t.string "last_sign_in_ip" t.string "last_sign_in_ip"
t.boolean "admin" t.boolean "admin"
t.boolean "active"
t.datetime "waiver"
t.datetime "orientation"
t.string "emergency_name"
t.string "emergency_phone"
t.string "emergency_email"
t.string "member_level"
t.string "payment_method"
t.string "phone"
t.string "current_skills"
t.string "desired_skills"
end end
add_index "users", ["email"], :name => "index_users_on_email", :unique => true add_index "users", ["email"], :name => "index_users_on_email", :unique => true