class DefaultChangeset < ActiveRecord::Migration def up pss = ProjectScore.where("changeset_num is ?", nil) pss.update_all(:changeset_num => false) end def down end end