Skip to content

Instantly share code, notes, and snippets.

@mazikwyry
Last active December 30, 2019 17:21
Show Gist options
  • Save mazikwyry/26c0dadb16e2eeec4ee9867565009301 to your computer and use it in GitHub Desktop.
Save mazikwyry/26c0dadb16e2eeec4ee9867565009301 to your computer and use it in GitHub Desktop.
class CreateJwtBlacklist < ActiveRecord::Migration[5.0]
def change
create_table :jwt_blacklist do |t|
t.string :jti, null: false
end
add_index :jwt_blacklist, :jti
end
end
@AlejandroFernandesAntunes
Copy link

AlejandroFernandesAntunes commented Dec 30, 2019

there's a typo on line 6, it should be plural when adding index (same as with table name):
add_index :jwt_blacklists, :jti

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment