Module: Faalis::Generators::Concerns::Hstore

Defined in:
lib/faalis/generators/concerns/hstore.rb

Overview

This concern adds support for PostgreSQL Hstore type to generators. So hstore fields will not work on other databases or work differently. For example We try to create a json from the key/values of hstore field and store that to the corresponding field.

Instance Method Summary (collapse)

Instance Method Details

- (Object) hstore_fields (private)



13
14
15
# File 'lib/faalis/generators/concerns/hstore.rb', line 13

def hstore_fields
  fields_with('type', 'hstore')
end