class UpdateOrgSubfiledDefault < ActiveRecord::Migration def up OrgSubfield.where(:name => "activity").update_all(:status => false) OrgSubfield.where(:name => "course").update_all(:status => 2) OrgSubfield.where(:name => "project").update_all(:status => 2) end def down end end