Commit 411c4419 by Ryan Bigg

Merge pull request #51 from maurogeorge/readme-migration

More info about imgration on readme
parents fe6e37e5 f878014d
......@@ -22,15 +22,19 @@ Updating is as simple as `bundle update paranoia`.
#### Run your migrations for the desired models
Run:
```shell
rails generate migration AddDeletedAtToClients deleted_at:datetime
```
and now you have a migration
```ruby
class AddDeletedAtToClient < ActiveRecord::Migration
def self.up
class AddDeletedAtToClients < ActiveRecord::Migration
def change
add_column :clients, :deleted_at, :datetime
end
def self.down
remove_column :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