You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 21, 2020. It is now read-only.
The hstore indexes are not saved to schema.rb correctly..
instead of saving an add_hstore_index line it simply creates an add_index line, thus the 'gin' index isn't created.
A related issue is that the add_hstore_index :table, :column, :type => :gin doesn't work. (the AR method add_index_options doesn't support a :type option, only :name and :unique).
We are running Rails 3.2.x (going to 4.0 right now isn't an option.. though it's on our roadmap)
The text was updated successfully, but these errors were encountered:
You could work around using an SQL schema for now. If yu want to keep the schema.rb you can check this gem (which adds the index kind feature): https://github.com/lomba/schema_plus.
The hstore indexes are not saved to schema.rb correctly..
instead of saving an
add_hstore_index
line it simply creates anadd_index
line, thus the 'gin' index isn't created.A related issue is that the add_hstore_index :table, :column, :type => :gin doesn't work. (the AR method add_index_options doesn't support a :type option, only :name and :unique).
We are running Rails 3.2.x (going to 4.0 right now isn't an option.. though it's on our roadmap)
The text was updated successfully, but these errors were encountered: