Updated

db/migrate / 20170710090730_add_archived_at_to_signatures.rb

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