Class: ActiveRecord::ConnectionAdapters::PostgreSQLColumn

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

Instance Method Summary collapse

Instance Method Details

#simplified_type_with_hstore(field_type) ⇒ Object

Adds the hstore type for the column.



76
77
78
# File 'lib/activerecord-postgres-hstore/activerecord.rb', line 76

def simplified_type_with_hstore(field_type)
  field_type == 'hstore' ? :hstore : simplified_type_without_hstore(field_type)
end