check if kind field is exist
use enumerize instead of pluck
Fix migration