README.md in devise-token_authenticatable-1.0.0 vs README.md in devise-token_authenticatable-1.0.1
- old
+ new
@@ -27,12 +27,22 @@
`~> 0.1` | `~> 3.2.0`
`~> 0.2` | `~> 3.3.0`
`~> 0.3` | `~> 3.4.0`
`~> 0.4.0`, `< 0.4.9` | `~> 3.5.0`, `< 3.5.2`
`~> 0.4.9` | `~> 3.5.2`
-`~> 0.5.x`, `<= 1.0.0` | `>= 4.0.0`, `< 4.4.0`
+`~> 0.5.x`, `<= 1.0.1` | `>= 4.0.0`, `< 4.5.0`
## Usage
+Create needed columns with corresponding migration:
+
+```ruby
+ def change
+ add_column :users, :authentication_token, :text
+ add_column :users, :authentication_token_created_at, :datetime
+
+ add_index :users, :authentication_token, unique: true
+ end
+```
Add `:token_authenticatable` to your devise model:
```ruby
class User < ActiveRecord::Base