Update archiver function and add with Rails migration