Last active
August 29, 2015 14:15
-
-
Save deepak/80e1d93735814d1467c7 to your computer and use it in GitHub Desktop.
hstore throwing a warning for rails migration
This file contains hidden or 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 up | |
execute "CREATE EXTENSION IF NOT EXISTS hstore" | |
end | |
def down | |
execute "DROP EXTENSION IF EXISTS hstore" | |
end | |
end |
This file contains hidden or 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 change | |
enable_extension :hstore | |
end | |
end |
This file contains hidden or 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
# in a migration after the migration enabling hstore | |
unknown OID 20863: failed to recognize type of '<hstore_column_name>'. It will be treated as String. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment