I'm migrating a project from 2 to 2.3.18. I have a value column(col_type = text) which is serialized.when I store integer also its returning string. May I know what might be the issue.
I'm using mysql database. ex:
>> a = AppSetting.last
=> #<AppSetting id: 1, name: "kranthi", value: "1", description: nil, created_at: "2013-08-26 12:17:47", updated_at: "2013-08-26 12:17:47">
>> a.value
=> "1"
>> a.value = 1
=> 1
>> a.save!
=> true
>> a = AppSetting.last
=> #<AppSetting id: 1, name: "kranthi", value: "1", description: nil, created_at: "2013-08-26 12:17:47", updated_at: "2013-09-01 14:28:21">
>> a.value
=> "1"
serialize :value
Thanks in advance.