socialforge/db/migrate/20161111071624_update_fixed...

9 lines
167 B
Ruby

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