Class: ActiveRecord::ConnectionAdapters::PostgreSQLColumn

Inherits:
Column
  • Object
show all
Defined in:
lib/activerecord-postgres-json/activerecord.rb

Instance Method Summary collapse

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