parent
0635c1e98b
commit
e8adcf8cc7
@ -0,0 +1,4 @@
|
||||
class Sso < ActiveRecord::Base
|
||||
belongs_to :user
|
||||
attr_accessible :email, :name, :openid, :password, :school, :sex
|
||||
end
|
@ -0,0 +1,16 @@
|
||||
class CreateSsos < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :ssos do |t|
|
||||
t.references :user
|
||||
t.string :openid
|
||||
t.string :name
|
||||
t.string :password
|
||||
t.string :email
|
||||
t.integer :sex
|
||||
t.string :school
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
add_index :ssos, :user_id
|
||||
end
|
||||
end
|
Loading…
Reference in new issue