As per https://postgres.heroku.com/blog/past/2012/4/26/heroku_postgres_development_plan/ I did “heroku addons:add heroku-postgresql:dev”. But when I do
class CreateUsers < ActiveRecord::Migration
def up
create_table :users do |t|
execute "CREATE EXTENSION hstore"
t.hstore :access
end
end
def down
drop_table :users
execute "DROP EXTENSION hstore"
end
end
end
and then “heroku run rake db:migrate” I get this error:
PG::Error: ERROR: syntax error at or near “EXTENSION”
LINE 1: CREATE EXTENSION hstore ^
: CREATE EXTENSION hstore
finally got it to work. turns out i needed to “promote” the database using heroku pg:promote as per https://devcenter.heroku.com/articles/heroku-postgres-dev-plan