diogob/activerecord-postgres-hstore

View on GitHub
lib/templates/setup_hstore91.rb

Summary

Maintainability
A
0 mins
Test Coverage
class SetupHstore < ActiveRecord::Migration
  def self.up
    execute "CREATE EXTENSION IF NOT EXISTS hstore"
  end

  def self.down
    execute "DROP EXTENSION IF EXISTS hstore"
  end
end