socialforge/db/migrate/20130814084938_create_user_...

20 lines
497 B
Ruby
Raw Normal View History

2013-08-14 21:37:55 +08:00
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