Updated

db/migrate / 20170622114801_drop_legacy_archive_columns.rb

A
15 lines of codes
2 methods
4.2 complexity/method
1 churn
8.3 complexity
0 duplications
class DropLegacyArchiveColumns < ActiveRecord::Migration
  1. DropLegacyArchiveColumns has no descriptive comment
def up remove_column :archived_petitions, :title remove_column :archived_petitions, :description remove_column :archived_petitions, :response remove_column :archived_petitions, :reason_for_rejection end def down add_column :archived_petitions, :title, :string, limit: 255 add_column :archived_petitions, :description, :text add_column :archived_petitions, :response, :text add_column :archived_petitions, :reason_for_rejection, :text end end