class Users < ActiveRecord::Migration[5.0]
def change
create_table :users do |t|
...
t.text :preference
t.text :tag
...
t.timestamps
end
end
end
class User < ActiveRecord::Base
serialize :preferences, Hash
serialize :tags, Array
end