rake_migrations 1.0.0 → 1.0.1
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c850d111f569d518302584ed778749527c7c8171
|
4
|
+
data.tar.gz: 2aa92a6c492f662322fb47fc8ddcacf99b85539f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe7d697c8dc07eb20166b37c9eb69877c30d1652f1a146d10754a820d9747712d7e01c5d38e83bf47278c6427b170a30b73d36bac7b8a3d45e9476e069635ee1
|
7
|
+
data.tar.gz: 27a77e06e377e7f2acf67502102c810413535e16a6d6b1d184833a3aefe94cba44edd6d732c5f611c2a8feb66b071d49a71d02928c5c67fb35a3cc7b83d91a59
|
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
Rake Migrations
|
2
2
|
===============
|
3
|
+
[](http://badge.fury.io/gh/eyaleizenberg%2Frake-migrations)
|
3
4
|
[](https://travis-ci.org/eyaleizenberg/rake-migrations)
|
5
|
+
[](https://codeclimate.com/github/eyaleizenberg/rake-migrations)
|
4
6
|
|
5
7
|
This gem helps you and your team members keep track of 'run once' rake tasks.
|
6
8
|
|
@@ -31,7 +33,7 @@ rails g task <namespace> <task>
|
|
31
33
|
For example:
|
32
34
|
|
33
35
|
```ruby
|
34
|
-
rails g task users
|
36
|
+
rails g task users update_some_field
|
35
37
|
```
|
36
38
|
|
37
39
|
This will generate a file under 'lib/tasks/rake_migrations' with a timestamp and the following content:
|
@@ -11,6 +11,7 @@ module RakeMigrations
|
|
11
11
|
def create_migration_file
|
12
12
|
migration_template "migration.rb", "db/migrate/create_rake_migrations_table.rb"
|
13
13
|
template("rake_migrations_check.rb", "config/rake_migrations_check.rb")
|
14
|
+
template("rake_migration.rb", "app/models/rake_migration.rb")
|
14
15
|
write_to_post_merge_hook
|
15
16
|
end
|
16
17
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake_migrations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eyal Eizenberg
|
@@ -51,6 +51,7 @@ files:
|
|
51
51
|
- Rakefile
|
52
52
|
- lib/rails/generators/rake_migrations/install_generator.rb
|
53
53
|
- lib/rails/generators/rake_migrations/templates/migration.rb
|
54
|
+
- lib/rails/generators/rake_migrations/templates/rake_migration.rb
|
54
55
|
- lib/rails/generators/rake_migrations/templates/rake_migrations_check.rb
|
55
56
|
- lib/rails/generators/task/USAGE
|
56
57
|
- lib/rails/generators/task/task_generator.rb
|