alternatives.md

July 26, 2019 · View on GitHub

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