To use hstore in Ecto schemas you have to create own Ecto type. To do this, follow these steps:
- Create files hstore.ex & hstore_extension.ex inside your lib folder
- Open your database settings and add the following line
extensions: [{MyApp.HStoreExtension, nil}],
, for example
config :my_app, MyApp.Repo,
adapter: Ecto.Adapters.Postgres,