Skip to content

Instantly share code, notes, and snippets.

@deepak
Last active August 29, 2015 14:15
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 deepak/80e1d93735814d1467c7 to your computer and use it in GitHub Desktop.
Save deepak/80e1d93735814d1467c7 to your computer and use it in GitHub Desktop.
hstore throwing a warning for rails migration
class SetupHstore < ActiveRecord::Migration
def up
execute "CREATE EXTENSION IF NOT EXISTS hstore"
end
def down
execute "DROP EXTENSION IF EXISTS hstore"
end
end
class SetupHstore < ActiveRecord::Migration
def change
enable_extension :hstore
end
end
# 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