Added migration infos
fixed record not found error from activerecord