I have this that I took out of my database with:
nombre_secciones = Section.where(quotation_id: quotation_id_event)
I got this out:
#<Section id: 12, name: "Seccion 1", created_at: "2018-07-24 15:06:34", updated_at: "2018-07-24 15:06:34", quotation_id: 62, order: 0>
I have already made the changes I want but now I want to upload it back to my database but in a new row but I do not know very well how or how could I transform it into a hash?