Updated

db/migrate / 20190514055139_add_signature_count_validated_at_to_petitions.rb

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