Skip to content

Invalid index recommendation for Doorkeeper Gem #105

@ericraio

Description

@ericraio

I am getting this recommendation after installing the door keeper gem.

  1) DB Indexes sets the proper db indexes
     Failure/Error:
       expect(`rake db:find_indexes`).to match(/Yey, no missing indexes found!/), lambda {
                               "Missing db indexes were find run `rake db:find_indexes'" }

       Missing db indexes were find run `rake db:find_indexes'
       Diff:
       @@ -1,2 +1,11 @@
       -/Yey, no missing indexes found!/
       +* TIP: if you have a problem with the index name('index name too long'), you can
       +solve with the :name option. Something like :name => 'my_index'.
       +* run `rails g migration AddMissingIndexes` and add the following content:
       +
       +    class AddMissingIndexes < ActiveRecord::Migration
       +      def change
       +        add_index :oauth_access_tokens, [:doorkeeper/application_id, :doorkeeper/application_id]
       +      end
       +    end

Any idea how I can resolve this?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions