JSON output for model schema in rails