20 lines
497 B
Ruby
20 lines
497 B
Ruby
class CreateUserExtensions < ActiveRecord::Migration
|
|
def self.up
|
|
create_table :user_extensions do |t|
|
|
t.column :user_id,:integer,:null => false
|
|
t.column :birthday,:date
|
|
t.column :brief_introduction,:string
|
|
t.column :gender,:integer
|
|
t.column :location,:string
|
|
t.column :occupation,:string
|
|
t.column :work_experience,:integer
|
|
t.column :zip_code,:integer
|
|
t.timestamps
|
|
end
|
|
end
|
|
|
|
def self.down
|
|
drop_table :user_extensions
|
|
end
|
|
end
|