I am trying to run db:migrate from my rails application.
def self.up enable_extension "hstore" end def self.down disable_extension "hstore" end
StandardError: An error has occurred, this and all later migrations canceled:
PG::UndefinedFile: ERROR: could not open extension control file “/usr/pgsql-9.4/share/extension/hstore.control”: No such file or directory
: CREATE EXTENSION IF NOT EXISTS “hstore”/apps/bonded-inspections/vendor/cache/ruby/2.1.0/gems/activerecord-4.2.0/lib/active_record/connection_adapters/postgresql_adapter.rb:592:in `async_exec’
postgres=# select version(); ==> PostgreSQL 9.4.4 on x86_64-unknown-linux-gnu, compiled by gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-11), 64-bit
After searching relating to this issue, i found out ‘hstore’ dependancy can be solved using postgresql-contrib. I added postgresql-contrib but no use still.
yum install postgresql ==> Package postgresql-8.4.20-2.el6_6.x86_64 already installed and latest version
yum install postgresql-contrib ==> Package postgresql-contrib-8.4.20-2.el6_6.x86_64 already installed and latest version
What am i missing here? Thanks for you help in advance!.