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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 41b028d0c6c92f01479fd78f09b05a3a0b0a61f0
4
- data.tar.gz: 942f98d4bbe3d11559b5028101ff9502828ed4c8
3
+ metadata.gz: bd8fa69e3aae4557a60469ec690dcbce05a8b638
4
+ data.tar.gz: e1c22693e81608e190ac621e0fd6ba8e0d9ac0fd
5
5
  SHA512:
6
- metadata.gz: bad66e756d20288721fc21ad52171484f1680f16832f6bb6c06bcabf8af65802d7df28274bccf9389821daaee9fa91585f7d773a9819a71fd55487bd1a595d19
7
- data.tar.gz: f9ec2ff89c5f23a9f6bc72d13b762e1668283d812992a56a541b5370df04cbb7840e7d943b0110d4017ed469fe1bbbfcc9366fbc078e37918ffd8eef4223fc63
6
+ metadata.gz: 6da47b9b84a17d895e1594aef400cf17b8fcc228818c41604f41a75b03ad733e6a4c025380929a361edaa3f2931c3eb992d76bf2a887e8dd046c39ec63ba206d
7
+ data.tar.gz: f719da860422cb6eb984af9a32f046dcab37e221a7fb12fecaf0ae102a6bef0056588d798542c9ae594991db28e539cddc3de14d499c820bcd7bde9b34b46b04
@@ -1,3 +1,3 @@
1
1
  module RailsDataMigrations
2
- VERSION = '1.0.3'
2
+ VERSION = '1.0.4'
3
3
  end
@@ -16,11 +16,10 @@ namespace :data do
16
16
 
17
17
  desc 'Apply pending data migrations'
18
18
  task migrate: :init_migration do
19
- filter = RailsDataMigrations::Migrator.current_version
20
- versions = RailsDataMigrations::Migrator.migrations(migrations_path)
21
- .select { |migration| migration.version > filter }
22
- .map(&:version)
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.3
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-23 00:00:00.000000000 Z
11
+ date: 2016-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails