We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b3b397 commit 6bf7a67Copy full SHA for 6bf7a67
README.md
@@ -856,9 +856,23 @@ end
856
857
## Rake Tasks
858
859
+There are a few Rake tasks available out of the box:
860
+
861
* `rake dynamoid:create_tables`
862
* `rake dynamoid:ping`
863
864
+In order to use them in non-Rails application they should be required explicitly:
865
866
+```ruby
867
+# Rakefile
868
869
+Rake::Task.define_task(:environment)
870
+require 'dynamoid/tasks'
871
+```
872
873
+The Rake tasks depend on `:environment` task so it should be declared
874
+as well.
875
876
## Test Environment
877
878
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
0 commit comments