Sha256: 8c1b5f311f8937f23b98bec92fe02fc922cff04373f8a6dff1e93aa70d57f65d
Contents?: true
Size: 685 Bytes
Versions: 11
Compression:
Stored size: 685 Bytes
Contents
class CreateSocialiteIdentities < ActiveRecord::Migration def up create_table :socialite_identities do |t| t.string :uid, :provider t.text :auth_hash t.integer :socialite_user_id t.timestamps end add_index :socialite_identities, :socialite_user_id # Restrict each user to one identity per provider, to disable comment out. add_index :socialite_identities, [:socialite_user_id, :provider], :unique => true # Database constraint to ensure uniqueness of UIDs (scoped to provider) add_index :socialite_identities, [:provider, :uid], :unique => true end def down drop_table :socialite_identities end end
Version data entries
11 entries across 11 versions & 1 rubygems