Added registration fields to users table
This commit is contained in:
parent
d1ef1e7db9
commit
4ad622e906
15
db/migrate/20121016211727_add_active_to_users.rb
Normal file
15
db/migrate/20121016211727_add_active_to_users.rb
Normal 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
|
14
db/schema.rb
14
db/schema.rb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user