Sha256: 07a5c5ef3740e5d35d3a450de085a0b703899cc5d529ed6ad2fc2a0efc3f4a19

Contents?: true

Size: 409 Bytes

Versions: 2

Compression:

Stored size: 409 Bytes

Contents

# Upgrading

## 2.x to 3.x

- Change all occurences of `generate_reset_token` to use `generate_token`.
- Change all occurences of `exchange_reset_token` to use `find_by_token`.
- Add a new migration:

```ruby
change_table :users do |t|
  t.remove :reset_token_digest
  t.remove :reset_token_expires_at

  t.integer :token_version, null: false, default: 0
  t.index [:id, :token_version], unique: true
end
```

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tiny_auth-3.0.0 docs/UPGRADING.md
tiny_auth-3.0.0.rc1 docs/UPGRADING.md