From 42abc9d35b436283ea62e824a4ccefbe99c8c524 Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Sun, 7 Dec 2014 08:54:41 +0900 Subject: [PATCH] [ci skip] add `enable_extension` to PostgreSQL hstore example --- guides/source/active_record_postgresql.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/guides/source/active_record_postgresql.md b/guides/source/active_record_postgresql.md index a2681a80e9..446be1c6d1 100644 --- a/guides/source/active_record_postgresql.md +++ b/guides/source/active_record_postgresql.md @@ -83,9 +83,12 @@ Book.where("array_length(ratings, 1) >= 3") * [type definition](http://www.postgresql.org/docs/9.3/static/hstore.html) +NOTE: you need to enable the `hstore` extension to use hstore. + ```ruby # db/migrate/20131009135255_create_profiles.rb ActiveRecord::Schema.define do + enable_extension 'hstore' unless extension_enabled?('hstore') create_table :profiles do |t| t.hstore 'settings' end -- GitLab