db/primary_migrate/20190212163140_drop_password_metrics.rb
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