ruby - How to represent serialized fields in ActiveRecord::Base in ActiveRecord:Migration (Rails 2.3.16) -


i'm new in rails. read rencently how serialize array of string example store in database.

class fle < activerecord::base    serialze :etat_fle  end 

but don't know how represent serialized field in corresponding activerecord::migration have idea ?

store text. if table created -

add_column :table, :column, :text 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -