Fix data migration to clear rails cache

the previous version was giving a `undefined method 'include'` error, because it done from within a class.