Created
December 24, 2018 18:20
-
-
Save ashishwadekar/fe88d19392d110225209bd772d639afd to your computer and use it in GitHub Desktop.
Sample migration file to create JWT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CreateJwtBlacklists < ActiveRecord::Migration[5.2] | |
def change | |
create_table :jwt_blacklist do |t| | |
t.string :jti, null: false | |
t.datetime :exp, null: false | |
end | |
add_index :jwt_blacklist, :jti | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment