Last active
August 22, 2016 02:09
-
-
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/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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