Merge pull request #1 from Geekner/members

Added registration fields to users table
This commit is contained in:
Will Bradley 2012-10-16 21:52:33 -07:00
commit 1a9c77fbce
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
# of editing this file, please use the migrations feature of Active Record to
# 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.
ActiveRecord::Schema.define(:version => 20121014122548) do
ActiveRecord::Schema.define(:version => 20121016211727) do
create_table "cards", :force => true do |t|
t.string "card_number"
@ -43,6 +44,17 @@ ActiveRecord::Schema.define(:version => 20121014122548) do
t.string "current_sign_in_ip"
t.string "last_sign_in_ip"
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
add_index "users", ["email"], :name => "index_users_on_email", :unique => true