mixing in some sorcery auth

This commit is contained in:
2015-10-07 22:03:31 -05:00
parent 63d4063392
commit 5a9c4a341a
23 changed files with 626 additions and 34 deletions

View File

@ -0,0 +1,19 @@
class SorceryInit < ActiveRecord::Migration
def change
change_column :people, :email, :string, null: false
add_index :people, :email, unique: true
add_column :people, :activation_state, :string, default: nil
add_column :people, :activation_token, :string, default: nil
add_column :people, :activation_token_expires_at, :datetime, default: nil
add_index :people, :activation_token
create_table :authentications do |t|
t.integer :person_id, null: false
t.string :provider, :uid, null: false
t.timestamps
end
add_index :authentications, [:provider, :uid]
end
end