updating files for one month rails