20180204034416_create_identities.rb 301 B

1234567891011
  1. class CreateIdentities < ActiveRecord::Migration[5.0]
  2. def change
  3. create_table :identities do |t|
  4. t.references :user, foreign_key: { on_delete: :cascade }
  5. t.string :provider, null: false, default: ''
  6. t.string :uid, null: false, default: ''
  7. t.timestamps
  8. end
  9. end
  10. end