Updated

db/migrate / 20190502105750_add_canonical_email_index_to_signatures.rb

A
15 lines of codes
2 methods
2.3 complexity/method
1 churn
4.65 complexity
0 duplications
class AddCanonicalEmailIndexToSignatures < ActiveRecord::Migration
  1. AddCanonicalEmailIndexToSignatures has no descriptive comment
disable_ddl_transaction! def up unless index_exists?(:signatures, :canonical_email) add_index :signatures, :canonical_email, algorithm: :concurrently end end def down if index_exists?(:signatures, :canonical_email) remove_index :signatures, :canonical_email end end end