changed model to integer to match migration