18F/identity-idp

View on GitHub
db/primary_migrate/20190212163140_drop_password_metrics.rb

Summary

Maintainability
A
0 mins
Test Coverage
class DropPasswordMetrics < ActiveRecord::Migration[5.1]
  def up
    drop_table :password_metrics
  end

  def down
    create_table :password_metrics do |t|
      t.integer :metric, null: false
      t.float :value, null: false
      t.integer :count, null: false
      t.index :metric
      t.index :value
      t.index [:metric, :value], unique: true
    end
  end
end