Rails generate posts entity