hello-gem/hello

View on GitHub
db/migrate/1_create_credentials.rb

Summary

Maintainability
A
0 mins
Test Coverage
class CreateCredentials < ActiveRecord::Migration
  def change
    create_table :credentials do |t|
      t.references :user, index: true
      t.string :type

      t.string :email
      t.string :digest

      t.datetime :confirmed_at
      t.string :verifying_token_digest
      t.datetime :verifying_token_digested_at

      t.timestamps
    end
  end
end