Commit e5476973 by Ryan Bigg

Merge pull request #112 from rvanlieshout/rails4

Add index to deleted_at column in README
parents a5762de0 ae4b4fb4
......@@ -41,7 +41,7 @@ Updating is as simple as `bundle update paranoia`.
Run:
```shell
rails generate migration AddDeletedAtToClients deleted_at:datetime
rails generate migration AddDeletedAtToClients deleted_at:datetime:index
```
and now you have a migration
......@@ -50,6 +50,7 @@ and now you have a migration
class AddDeletedAtToClients < ActiveRecord::Migration
def change
add_column :clients, :deleted_at, :datetime
add_index :clients, :deleted_at
end
end
```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment