Sha256: 999fed07bc6cc5f62256290d392118a3def8e3346d42eedd37de699c84f489a5
Contents?: true
Size: 622 Bytes
Versions: 1
Compression:
Stored size: 622 Bytes
Contents
# Generated by Authkit. # # Create an auths table for managing OAuth authentication. class CreateAuths < ActiveRecord::Migration[5.0] def self.up create_table :auths do |t| t.integer :user_id t.string :provider t.string :uid t.string :email t.boolean :verified_email t.string :token t.datetime :token_expires_at t.string :refresh_token t.string :secret_token t.text :env t.timestamps null: false end add_index :auths, :user_id add_index :auths, [:provider, :uid] end def self.down drop_table :auths end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
authkit-0.7.0 | lib/generators/authkit/templates/db/migrate/create_auths.rb |