fix migration
ransack does not work with mongodb, wrote a simple search function instead