app_reset 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +17 -0
- data/lib/app_reset/version.rb +1 -1
- data/lib/tasks/app_reset_tasks.rake +1 -1
- metadata +4 -4
data/README.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# AppReset
|
2
2
|
|
3
|
+
## Why?
|
4
|
+
|
5
|
+
Compared to __db:reset__:
|
6
|
+
|
7
|
+
`db:reset` resets your database from `schema.rb` - during early stage of development, the migration files are often edited directly to keep the sanity.
|
8
|
+
|
9
|
+
Compared to __db:migrate:reset__:
|
10
|
+
|
11
|
+
AppReset always calls `db:create` to ensure databases exist, and then calls `db:migrate:reset`. It also ensures `seeds.rb` will get called if you are in a rails engine environment.
|
12
|
+
|
13
|
+
AppReset basically replaces the following steps:
|
14
|
+
|
15
|
+
- db:create
|
16
|
+
- db:migrate:reset
|
17
|
+
- RAILS_ENV=test db:migrate:reset
|
18
|
+
- run seeds.rb from your rails engine
|
19
|
+
|
3
20
|
## Installation
|
4
21
|
|
5
22
|
It is recommended you only include `app_reset` in your development environment:
|
data/lib/app_reset/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: app_reset
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-07-
|
12
|
+
date: 2012-07-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -73,7 +73,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
73
73
|
version: '0'
|
74
74
|
segments:
|
75
75
|
- 0
|
76
|
-
hash:
|
76
|
+
hash: -2676733641275906127
|
77
77
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
78
|
none: false
|
79
79
|
requirements:
|
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
82
|
version: '0'
|
83
83
|
segments:
|
84
84
|
- 0
|
85
|
-
hash:
|
85
|
+
hash: -2676733641275906127
|
86
86
|
requirements: []
|
87
87
|
rubyforge_project:
|
88
88
|
rubygems_version: 1.8.24
|