socialforge/db/migrate/20160119034447_create_user_...

22 lines
484 B
Ruby
Raw Normal View History

2016-01-19 11:51:37 +08:00
class CreateUserWechats < ActiveRecord::Migration
def change
create_table :user_wechats do |t|
t.integer :subscribe
t.string :openid
t.string :nickname
t.integer :sex
t.string :language
t.string :city
t.string :province
t.string :country
t.string :headimgurl
t.string :subscribe_time
t.string :unionid
t.string :remark
t.integer :groupid
t.references :user
t.timestamps
end
end
end