You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trustieforge/db/migrate/20130814084938_create_user_...

20 lines
497 B

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