copied app/models/batch.rb from sufia-models