Skip to content

Commit

Permalink
Readme.md. Update “Rake tasks” section
Browse files Browse the repository at this point in the history
  • Loading branch information
andrykonchin committed Apr 21, 2019
1 parent 5b3b397 commit 6bf7a67
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Expand Up @@ -856,9 +856,23 @@ end

## Rake Tasks

There are a few Rake tasks available out of the box:

* `rake dynamoid:create_tables`
* `rake dynamoid:ping`

In order to use them in non-Rails application they should be required explicitly:

```ruby
# Rakefile

Rake::Task.define_task(:environment)
require 'dynamoid/tasks'
```

The Rake tasks depend on `:environment` task so it should be declared
as well.

## Test Environment

In test environment you will most likely want to clean the database between test runs to keep tests completely isolated. This can be achieved like so
Expand Down

0 comments on commit 6bf7a67

Please sign in to comment.