README.mdown in versioned_seeds-0.5.1 vs README.mdown in versioned_seeds-0.5.2
- old
+ new
@@ -8,11 +8,11 @@
## Installation
Add this line to your `Gemfile` :
- gem 'versioned_seeds', :require => false
+ gem 'versioned_seeds'
If you're using Git, as you should, be sure to call this in your shell :
$ echo ".versionned_seeds" >> .gitignore
@@ -22,9 +22,26 @@
You can get the last imported seeds version :
$ rake vs:status
Last seeds: 0
+
+### Configuration
+
+VersionedSeeds can be configured using an initializer:
+
+``` ruby
+VersionedSeeds.configuration do |config|
+ # Path where are stored seed files
+ # VersionedSeeds will look for [root_path]/db/seeds/*.rb
+ # Defaults to Rails.root
+ config.root_path = '...'
+
+ # Path of the .versioned_seeds file where the list of
+ # already loaded seed files is stored
+ config.list_path = '...' #
+end
+```
### Generate a seeding script
The generator will simply generate a timestamped file where you can put anything you want :