ActiveRecord::Base.connection.execute “UPDATE ventas SET costo_de_compra = #{@nuevo_costo} WHERE id = #{@vid};”
but this updates that column value every time it’s recursed, what i want is just to insert that value to the already stablished values in that column… in proper instance i want to add the values to an integer column.
Thanks in advance
I don’t know Rails, but I guess something like this: