File: CHANGELOG.md

package info (click to toggle)
ruby-seed-fu 2.3.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 264 kB
  • sloc: ruby: 548; makefile: 9
file content (121 lines) | stat: -rw-r--r-- 2,939 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
Version 2.3.8
-------------

Bug fixes:

* Restored support for PostgreSQL with Rails versions before 5.0.0 broken in Seed Fu 2.3.7.

Version 2.3.7
-------------

Features:

* Postgresql >= 10.0 support

Version 2.3.6
-------------

Features:

* Rails 5.0 support

Version 2.3.5
-------------

Features:

* Rails 4.2 support

Version 2.3.3
-------------

Features:

* Capistrano v3 support (by @shishi)

Version 2.3.2
-------------

Features:

* Documentation improvements (by @george, @kenips, @joshuapinter)
* Fix documentation of seed_once method (by weedySeaDragon)
* Allow to seed data with an id < 1 (by @SamSaffron, @aserafin)
* Seeds work on postgresql when there is no primary key or if primary key has no sequence assigned (by @aserafin)

Version 2.3.1
-------------

Features:

* Rails 4.1 support added.
* Capistrano task included. (by @linjunpop)

Version 2.3.0
-------------

Features:

* Rails 4.0.X support added. (by @tkhr, @DanielWright)

Version 2.2.0
-------------

* Rails 3.2 support

Version 2.1.0
-------------

Features:

* Deprecations removed

* Rails 3.1 support added, Rails 3.0 support removed (please use 2.0.X line with 3.0)

Version 2.0.1
-------------

Bug fixes:

* Update the primary key sequence in PostgreSQL tables after seeding data. This ensures that id conflicts do not occur when records are subsequently added to the table.

* Raise ActiveRecord::RecordNotSaved if any of the saves fail (but they won't fail due to validation since saves are done without validation, so this guards against callbacks failing etc.)

Version 2.0.0
-------------

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