view .svn/pristine/8d/8d646867ca13f3417cfc72ec4e7ed07e69398fdb.svn-base @ 1628:9c5f8e24dadc live tip

Quieten this cron script
author Chris Cannam
date Tue, 25 Aug 2020 11:38:49 +0100
parents 261b3d9a4903
children
line wrap: on
line source
class RemoveIssuesDefaultFkValues < ActiveRecord::Migration
  def up
    change_column_default :issues, :tracker_id, nil
    change_column_default :issues, :project_id, nil
    change_column_default :issues, :status_id, nil
    change_column_default :issues, :assigned_to_id, nil
    change_column_default :issues, :priority_id, nil
    change_column_default :issues, :author_id, nil
  end

  def down
    change_column_default :issues, :tracker_id, 0
    change_column_default :issues, :project_id, 0
    change_column_default :issues, :status_id, 0
    change_column_default :issues, :assigned_to_id, 0
    change_column_default :issues, :priority_id, 0
    change_column_default :issues, :author_id, 0
  end
end