Updated

db/migrate / 20170622161343_change_state_default_on_archived_petitions.rb

A
9 lines of codes
2 methods
1.0 complexity/method
1 churn
2.0 complexity
0 duplications
class ChangeStateDefaultOnArchivedPetitions < ActiveRecord::Migration
  1. ChangeStateDefaultOnArchivedPetitions has no descriptive comment
def up change_column_default :archived_petitions, :state, "closed" end def down change_column_default :archived_petitions, :state, "open" end end