socialforge/db/migrate/20160914073340_update_user_...

10 lines
176 B
Ruby

class UpdateUserExtensions < ActiveRecord::Migration
def up
ues = UserExtensions.where(:school_id => 0)
ues.update_all(:school_id => nil)
end
def down
end
end