rails-data-migrations 1.0.0 → 1.0.1

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: 3d872d014e8e922e77c643a401cb07a55c07a628
4
- data.tar.gz: b53d95b58987918de1e0ea4c1e170ab77f144b31
3
+ metadata.gz: ebc85fc891c0e025cf938bbb675f72d54d1f1cab
4
+ data.tar.gz: 055927db4badb55b926ce49bc08091c55de2bec0
5
5
  SHA512:
6
- metadata.gz: 79f12c676d358a522870252b83f169681d060b01cc91acb397540a8c53e098ee5c4a36eb4ced215c690da16e5f4e1da08c1c26e85879bddaab83944c7bcce07a
7
- data.tar.gz: 6a2c2a431f8e0def8f8f4e0408acf5d14f89ddf2f7710c4a5b73c14a8a0ca01779f802d9a72bfe24cab2c28b93a00c5f13a9f91b2ed712e1e4694bb26b99f2e0
6
+ metadata.gz: 74444da3332439fc50a1c6af89e852333f05c68ee492375215cb4f3a94abc575130a2214bb27677da96d19d34a857cace5bc833618d1a965dc74a3ffb20f1d55
7
+ data.tar.gz: bb8b6db4ce034907af99e22f5022316da1c6510f26dec428a91146ccadd9c89a49b06690df8c018992fceadad000b2fb8f809e9a1e3ab19c2f6f6468fcfc6fc0
@@ -1,3 +1,3 @@
1
1
  module RailsDataMigrations
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
@@ -47,5 +47,15 @@ namespace :data do
47
47
  puts "data migration #{version} was skipped."
48
48
  end
49
49
  end
50
+
51
+ desc 'List pending migrations'
52
+ task pending: :init_migration do
53
+ puts "#{'% 16s' % 'Migration ID'} Migration Name"
54
+ puts '--------------------------------------------------'
55
+ migrator = RailsDataMigrations::Migrator
56
+ migrator.open(migrator.migrations_path).pending_migrations.each do |m|
57
+ puts "#{'% 16i' % m.version} #{m.name}"
58
+ end
59
+ end
50
60
  end
51
61
  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.0
4
+ version: 1.0.1
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-05 00:00:00.000000000 Z
11
+ date: 2016-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -139,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
139
139
  version: '0'
140
140
  requirements: []
141
141
  rubyforge_project:
142
- rubygems_version: 2.6.7
142
+ rubygems_version: 2.6.8
143
143
  signing_key:
144
144
  specification_version: 4
145
145
  summary: Run your data migration tasks in a db:migrate-like manner