Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use UUIDs as indentifiers for sessions in public #176

Merged
merged 4 commits into from
Nov 7, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add example migration
  • Loading branch information
mikker committed Nov 7, 2023
commit 096e73274980b726b5d5e313cb049a3d04990a83
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@ Sessions are now referenced publicly by a random UUID instead of their primary k

This needs a manual database migration like so:

...TODO
```ruby
class AddIndentifierToPasswordlessSessions < ActiveRecord::Migration[7.1]
def change
add_column(:passwordless_sessions, :identifier, :string)
add_index(:passwordless_sessions, :identifier, unique: true)
end
end
```

### Added

Expand Down