rails-data-migrations 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rails_data_migrations/version.rb +1 -1
- data/lib/tasks/data_migrations.rake +4 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd8fa69e3aae4557a60469ec690dcbce05a8b638
|
4
|
+
data.tar.gz: e1c22693e81608e190ac621e0fd6ba8e0d9ac0fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6da47b9b84a17d895e1594aef400cf17b8fcc228818c41604f41a75b03ad733e6a4c025380929a361edaa3f2931c3eb992d76bf2a887e8dd046c39ec63ba206d
|
7
|
+
data.tar.gz: f719da860422cb6eb984af9a32f046dcab37e221a7fb12fecaf0ae102a6bef0056588d798542c9ae594991db28e539cddc3de14d499c820bcd7bde9b34b46b04
|
@@ -16,11 +16,10 @@ namespace :data do
|
|
16
16
|
|
17
17
|
desc 'Apply pending data migrations'
|
18
18
|
task migrate: :init_migration do
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
versions.sort.each do |version|
|
19
|
+
source_versions = RailsDataMigrations::Migrator.migrations(migrations_path).collect(&:version)
|
20
|
+
applied_versions = RailsDataMigrations::Migrator.get_all_versions
|
21
|
+
|
22
|
+
(source_versions - applied_versions).sort.each do |version|
|
24
23
|
apply_single_migration(:up, version)
|
25
24
|
end
|
26
25
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-data-migrations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergey Glukhov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|