Skip to content

Instantly share code, notes, and snippets.

@EssenceOfChaos
Created September 5, 2017 15:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EssenceOfChaos/09bd295466419bcd6c99ac1cbf654249 to your computer and use it in GitHub Desktop.
Save EssenceOfChaos/09bd295466419bcd6c99ac1cbf654249 to your computer and use it in GitHub Desktop.
migration to enable 'hstore' extension
class AddHstoreExtension < ActiveRecord::Migration[5.1]
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