Updated

db/migrate / 20190413174332_add_image_loaded_at_to_signatures.rb

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