FAIMS-464: fixing bug with running db:migrate