|
|
|
@ -9,6 +9,10 @@
|
|
|
|
|
class UserExtensions < ActiveRecord::Base
|
|
|
|
|
belongs_to :user
|
|
|
|
|
attr_accessible :user_id,:birthday,:brief_introduction,:gender,:location,:occupation,:work_experience,:zip_code,:identity, :technical_title,:student_id
|
|
|
|
|
TEACHER = 0
|
|
|
|
|
STUDENT = 1
|
|
|
|
|
ENTERPRISE = 2
|
|
|
|
|
DEVELOPER = 3
|
|
|
|
|
#this method was used to update the table user_extensions
|
|
|
|
|
def update_user_extensions(birthday=nil,brief_introduction=nil,
|
|
|
|
|
gender=nil,location=nil,occupation=nil,work_experience=nil,zip_code=nil)
|
|
|
|
|