socialforge/db/migrate/20160914073340_update_user_...

10 lines
176 B
Ruby
Raw Normal View History

2016-09-14 16:26:37 +08:00
class UpdateUserExtensions < ActiveRecord::Migration
def up
ues = UserExtensions.where(:school_id => 0)
ues.update_all(:school_id => nil)
end
def down
end
end