In Rails 3.1 you can just
class Form < ActiveRecord::Base
serialize :column, JSON
end
More Related Contents:
- Using Rails serialize to save hash to database
- rails dates with json
- Rails Object Relationships and JSON Rendering
- Rails ActiveRecord methods in different places [closed]
- How to override to_json in Rails?
- accepts_nested_attributes_for with find_or_create?
- ActiveRecord.find(array_of_ids), preserving order
- When to use a “has_many :through” relation in Rails?
- Rails 5: ActiveRecord OR query
- Ruby on Rails. How do I use the Active Record .build method in a :belongs to relationship?
- ActiveRecord Find By Year, Day or Month on a Date field
- How does Rails ActiveRecord chain “where” clauses without multiple queries?
- Storing arrays in database : JSON vs. serialized array
- Rails: ActiveRecord query based on association value
- How to test for (ActiveRecord) object equality
- Bulk Insert records into Active Record table
- How to use ActiveRecord in a ruby script outside Rails?
- POST json to rails server
- Creating a PostgreSQL sequence to a field (which is not the ID of the record)
- Regular expressions with validations in RoR 4
- What are the brackets [5.1] after ActiveRecord Migration and how does it work? [duplicate]
- Rails – Validate Presence Of Association?
- Include associated model when rendering JSON in Rails
- Do rails rake tasks provide access to ActiveRecord models?
- How to check for a JSON response using RSpec?
- how to add records to has_many :through association in rails
- How to implement bulk insert in Rails 3
- JSON encoding wrongly escaped (Rails 3, Ruby 1.9.2)
- PGError: ERROR: aggregates not allowed in WHERE clause on a AR query of an object and its has_many objects
- Rails: Order with nulls last