Fixed IA ingestion scripts for Rails 4 upgrade