20180204034416_create_identities.rb 362 B

12345678910111213
  1. # frozen_string_literal: true
  2. class CreateIdentities < ActiveRecord::Migration[5.2]
  3. def change
  4. create_table :identities, id: :integer do |t|
  5. t.references :user, type: :integer, foreign_key: { on_delete: :cascade }
  6. t.string :provider, null: false, default: ''
  7. t.string :uid, null: false, default: ''
  8. t.timestamps
  9. end
  10. end
  11. end