[Git][noosfero/noosfero][master] db: schema/migration: add missing hstore extension

Bráulio Bhavamitra gitlab at mg.gitlab.com
Wed May 3 20:56:47 BRT 2017


Bráulio Bhavamitra pushed to branch master at Noosfero / noosfero


Commits:
dafe82f8 by Braulio Bhavamitra at 2017-05-03T20:56:07-03:00
db: schema/migration: add missing hstore extension

- - - - -


2 changed files:

- db/migrate/20170417135607_add_hstore_fields.rb
- db/schema.rb


Changes:

=====================================
db/migrate/20170417135607_add_hstore_fields.rb
=====================================
--- a/db/migrate/20170417135607_add_hstore_fields.rb
+++ b/db/migrate/20170417135607_add_hstore_fields.rb
@@ -1,5 +1,7 @@
 class AddHstoreFields < ActiveRecord::Migration
   def change
+    enable_extension :hstore
+
     add_column :profiles, :metadata, :hstore, :default => {}
     add_column :articles, :metadata, :hstore, :default => {}
     add_column :tasks, :metadata, :hstore, :default => {}


=====================================
db/schema.rb
=====================================
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -11,10 +11,11 @@
 #
 # It's strongly recommended that you check this file into your version control system.
 
-ActiveRecord::Schema.define(version: 20170417135607) do
+ActiveRecord::Schema.define(version: 20170427104432) do
 
   # These are extensions that must be enabled in order to support this database
   enable_extension "plpgsql"
+  enable_extension "hstore"
 
   create_table "abuse_reports", force: :cascade do |t|
     t.integer  "reporter_id"



View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/dafe82f8d6eadcf93fb1b20b85bd01ade96fb703

---
View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/dafe82f8d6eadcf93fb1b20b85bd01ade96fb703
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20170503/443dda9a/attachment-0001.html>


More information about the Noosfero-dev mailing list