remove misplaced call to #{name}_will_change! which causes file_name to never appear dirty and hence not save in ActiveRecord models