Skip to content

Instantly share code, notes, and snippets.

@ashishwadekar
Created December 24, 2018 18:20
Show Gist options
  • Save ashishwadekar/fe88d19392d110225209bd772d639afd to your computer and use it in GitHub Desktop.
Save ashishwadekar/fe88d19392d110225209bd772d639afd to your computer and use it in GitHub Desktop.
Sample migration file to create JWT
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