ffmike-db_populate 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README +3 -1
- data/tasks/populate.rake +5 -0
- metadata +2 -2
data/README
CHANGED
@@ -51,13 +51,15 @@ and re-run the task.
|
|
51
51
|
|
52
52
|
db_populate rake tasks
|
53
53
|
======================
|
54
|
-
db_populate includes
|
54
|
+
db_populate includes three rake tasks:
|
55
55
|
|
56
56
|
rake db:populate loads all of the data for the current environment
|
57
57
|
rake db:migrate_and_populate is the same as calling rake db:migrate followed by rake db:populate
|
58
|
+
rake db:reset_and_populate is the same as calling rake db:reset followed by rake db:populate
|
58
59
|
|
59
60
|
History
|
60
61
|
=======
|
62
|
+
2009-09-15 Add db:reset_and_populate task
|
61
63
|
2009-05-17 Fix typo in README
|
62
64
|
2009-03-21 Patch from Ahmed El-Daly to allow PKs with names other than id
|
63
65
|
2008-10-11 Initial release
|
data/tasks/populate.rake
CHANGED
@@ -18,4 +18,9 @@ namespace :db do
|
|
18
18
|
|
19
19
|
task :migrate_and_load => [ 'db:migrate', 'db:populate' ]
|
20
20
|
|
21
|
+
desc "Drop and reset the database for the current environment and then load seed data"
|
22
|
+
task :reset_and_populate => [ 'db:reset', 'db:populate']
|
23
|
+
|
24
|
+
task :reset_and_load => [ 'db:reset', 'db:populate']
|
25
|
+
|
21
26
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ffmike-db_populate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Gunderloy
|
@@ -11,7 +11,7 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date: 2009-
|
14
|
+
date: 2009-09-15 00:00:00 -07:00
|
15
15
|
default_executable:
|
16
16
|
dependencies: []
|
17
17
|
|