socialforge/db/migrate/20161111064007_update_assgi...

9 lines
159 B
Ruby

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