I have column_1(string) and i created column_2(string) and seriallized column_2 as array
class Model < ActiveRecord::Base
serialize :column_2, Array
...
And i need to update column_2 with column_1 values, like this:
Model.update_all('column_2 = column_1')
But because i use serrialize as array for column_2, i need to save all values(strings) from column_1 as array
UPD.
I tried .update_all('column_2 = (array[column_1]), but in this case, anyway when i call column_2 i get it as string:
"{\"value\"}"