Skip to content

Latest commit

 

History

History
5 lines (4 loc) · 397 Bytes

alternatives.md

File metadata and controls

5 lines (4 loc) · 397 Bytes

Alternatives

  • store_attribute–work with JSON fields as an attributes, defined on the ActiveRecord model (not in the separate class)
  • jsonb_accessor–same thing, but with built-in queries
  • attr_json–works like previous one, but using ActiveModel::Type