archive activerecord table data