Hello -- I know that I can use serialize to declare hashes or arrays in a class that need to be used in the db. From http://api.rubyonrails.org/classes/ActiveRecord/Base.html:
class User < ActiveRecord::Base serialize :preferences end user = User.create(:preferences => { "background" => "black", "display" => large }) My question is what type do you give the variable :preferences for the migration? In: ruby script/generate migration _add_hash_column preferences:??? What is ??? -- text, string, something else? Thanks! Madison -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.