class UpdateAssginToId < ActiveRecord::Migration
def up
Issue.where(:assigned_to_id => 0).update_all(:assigned_to_id => nil)
end
def down