rails scaffolding and db migrate and coffescript to javascript