Skip to content

Instantly share code, notes, and snippets.

@andreypronin
Last active August 22, 2016 02:09
Show Gist options
  • Save andreypronin/5183843 to your computer and use it in GitHub Desktop.
Save andreypronin/5183843 to your computer and use it in GitHub Desktop.
Migration to enable hstore for PostgreSQL with Rails 4. See also http://platformonrails.wordpress.com/2013/03/17/using-postgres…e-with-rails-4/
class SetupHstore < ActiveRecord::Migration
def self.up
enable_extension "hstore"
end
def self.down
disable_extension "hstore"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment