socialforge/db/migrate/20161111064007_update_assgi...

9 lines
179 B
Ruby
Raw Normal View History

2016-11-11 14:50:49 +08:00
class UpdateAssginToId < ActiveRecord::Migration
def up
Issue.find_by_sql("update `issues` set assigned_to_id = null where assigned_to_id = 0;")
end
def down
end
end