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
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?
The text was updated successfully, but these errors were encountered:
I'd like to highlight that lol_dba is failing because
the model class is Doorkeeper::Application and when you convert a nested model like this to underscore, it generates doorkeeper/application instead of doorkeeper_application
I am getting this recommendation after installing the door keeper gem.
Any idea how I can resolve this?
The text was updated successfully, but these errors were encountered: