Class: ActiveRecord::ConnectionAdapters::PostgreSQLColumn
- Inherits:
-
Column
- Object
- Column
- ActiveRecord::ConnectionAdapters::PostgreSQLColumn
- Defined in:
- lib/activerecord-postgres-json/activerecord.rb
Instance Method Summary collapse
-
#simplified_type_with_json(field_type) ⇒ Object
Adds the json type for the column.
Instance Method Details
#simplified_type_with_json(field_type) ⇒ Object
Adds the json type for the column.
11 12 13 |
# File 'lib/activerecord-postgres-json/activerecord.rb', line 11 def simplified_type_with_json(field_type) field_type == 'json' ? :json : simplified_type_without_json(field_type) end |