Add method 'update_id_in_data' in app/models/concerns/utilities.rb