Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
10d1790
commit b0702eb
Showing
2 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,38 @@ | |||
Version 2.0.0 (In Development) | |||
------------------------------ | |||
|
|||
Features: | |||
|
|||
* Depends only on Active Record, not the whole of Rails | |||
|
|||
* The Model.seed_many syntax is now supported by Model.seed, and Model.seed_many is deprecated | |||
|
|||
* Model.seed supports adding multiple records without an explicit array argument. I.e. the following are equivalent: | |||
|
|||
Model.seed([ | |||
{ :name => "Jon" }, | |||
{ :name => "Emily" } | |||
]) | |||
|
|||
Model.seed( | |||
{ :name => "Jon" }, | |||
{ :name => "Emily } | |||
) | |||
|
|||
* A side-effect of the above is another option for single seeds: | |||
|
|||
Model.seed(:name => "Jon") | |||
|
|||
* The `SEED` option to `rake db:seed_fu` is deprecated, and replaced by `FILTER` which works the same way. | |||
|
|||
* Added `SeedFu.quiet` boolean option, set to `true` if you don't want any output from seed-fu. | |||
|
|||
* Added `SeedFu.fixture_paths`. Set to an array of paths to look for seed files in. Defaults to `["db/fixtures"]` in general, or `["#{Rails.root}/db/fixtures", "#{Rails.root}/db/fixtures/#{Rails.env}"]` when seed-fu is installed as a Rails plugin. | |||
|
|||
* Added `SeedFu.seed` method which is basically a method equivalent of running `rake db:seed_fu` (the rake task now just basically called `SeedFu.seed`) | |||
|
|||
* Simplified and changed the `SeedFu::Writer` API, see docs for details | |||
|
|||
Bug fixes: | |||
|
|||
* Fix Rails 3 deprecation warnings and make seed-fu fully compatible with being installed as a gem |
This file was deleted.
Oops, something went wrong.