PostgreSQL
- 1 ответ
- 0 вопросов
0
Вклад в тег
class User < ActiveRecord::Base
serialize :preferences
end
user = User.create(:preferences => { "background" => "black", "display" => large })
User.find(user.id).preferences # => { "background" => "black", "display" => large }