-
-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
using btree removed from indexes #92
Comments
I just noticed the same thing... |
I've also noticed the same thing. Specifically, it appears this extension overwrites the add_index method completely, and doesn't include the new using: option, thus disallowing that customization. I'm 90% sure that this is the code responsible (from main_adapter.rb): def add_index(table_name, column_name, options = {}) As per the comment, it appears someone was aware that this might cause issues. I believe a simple fix would be to simply check for the :spatial option and replace it with :using => :gist before calling super, but I'm not 100% and unfortunately don't have time to test right now. I'll try to test properly and submit a pull request when I have some free time, but leaving this here in case someone else wants to jump on it first. |
Fixed by 05c553fe620e513 Added tests: 789e06f37d5d This fix is included in 2.0.1. |
Mostly as per your blog posts (http://blog.daniel-azuma.com/archives/69 and http://blog.daniel-azuma.com/archives/164#more-164), I am adding
rgeo
support to myrails
application (which happens to include an out-of-the-box configuration ofdevise
andrails_admin
).Consider the following migration:
After running
bundle exec rake db:migrate
, here's whatgit diff db/schema.rb
shows:Why was
using: :btree
removed fromrails_admin_histories
andusers
indexes?The text was updated successfully, but these errors were encountered: