updated code to hask and trick Rails to save data and specification json type columns