Skip to content

Commit

Permalink
db: schema/migration: add missing hstore extension
Browse files Browse the repository at this point in the history
  • Loading branch information
brauliobo committed May 3, 2017
1 parent d19d11a commit dafe82f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions 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 => {}
Expand Down
3 changes: 2 additions & 1 deletion db/schema.rb
Expand Up @@ -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"
Expand Down

0 comments on commit dafe82f

Please sign in to comment.