Updated

db/migrate / 20190502105505_add_canonical_email_to_signatures.rb

A
13 lines of codes
2 methods
2.3 complexity/method
1 churn
4.65 complexity
0 duplications
class AddCanonicalEmailToSignatures < ActiveRecord::Migration
  1. AddCanonicalEmailToSignatures has no descriptive comment
def up unless column_exists?(:signatures, :canonical_email) add_column :signatures, :canonical_email, :string end end def down if column_exists?(:signatures, :canonical_email) remove_column :signatures, :canonical_email end end end