db/migrate/20181114112915_refactor_applications_audit.rb
#
# Current stored data is preserved and nothing is lost.
# We just move around some fields to the new `metadata` column.
# Rollback will not restore to the previous state but this is on purpose.
#
Current stored data is preserved and nothing is lost.
We just move around some fields to the new `metadata` column.
Rollback will not restore to the previous state but this is on purpose.
Current stored data is preserved and nothing is lost . We just move around some fields to the new ` metadata ` column . Rollback will not restore to the previous state but this is on purpose .
def down
    remove_column :completed_applications_audit, :metadata
    add_column :completed_applications_audit, :saved, :boolean
    add_column :completed_applications_audit, :urgent_hearing, :string
  end
def down remove_column :completed_applications_audit , :metadata add_column :completed_applications_audit , :saved , :boolean add_column :completed_applications_audit , :urgent_hearing , :string end
Current stored data is preserved and nothing is lost.
Current stored data is preserved and nothing is lost .