simple_migrations 0.1.6 → 0.1.7

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: 824cb63051806e83e4c0e0703da2fd81db63a1b8
4
- data.tar.gz: fda9c166b65bf66a77ab994370e622272f08d51d
3
+ metadata.gz: 735140dc3e3051f23d8ebafbd008d042db16f97b
4
+ data.tar.gz: d1ee51892a2f94ce4772814dc7459706488da367
5
5
  SHA512:
6
- metadata.gz: f8d6dadcdc68d938eb86f507bd9c6ecfc50b1613a669f5b5b78bc688890a6e14a53d1a477e8ede56abd9d97258d94c8613f52c4a793294450a077d7f6a7f987c
7
- data.tar.gz: 5bcf4e1e62b34ec22ae0e3ee49c292dc4ad20574a583b2194febafe51ab3c5e4d6436876c4684c1dbcae7dc75f23a54760d4125e1f800caf752dce8d6c75307c
6
+ metadata.gz: 814d166fbf8d96b5145c27abd077175cd6a642e2254b5273299d7256f539e3764bc4146a487c45de709c893c4dbc8bd5ec867b8bbd8b0d781faa0f8eb354374d
7
+ data.tar.gz: 3fa715e62a49d3096e00ce8738009853651ea31879392f67714d8a13bbcfa1449ff71be9fe30ed2487334f6fbe4cca145e7f9a57ef8531a7ba9fc6ed4962a04f
@@ -19,7 +19,7 @@ module SimpleMigrations
19
19
 
20
20
  def stub_migration(name)
21
21
  now = Time.now
22
- stamp = now.year.to_s + now.month.to_s + now.day.to_s + now.hour.to_s + now.min.to_s + now.sec.to_s
22
+ stamp = now.year.to_s + now.month.to_s.rjust(2, '0') + now.day.to_s.rjust(2, '0') + now.hour.to_s.rjust(2, '0') + now.min.to_s.rjust(2, '0') + now.sec.to_s.rjust(2, '0')
23
23
  FileUtils.touch("db/migrate/#{stamp}_#{name}.sql")
24
24
  end
25
25
 
@@ -1,3 +1,3 @@
1
1
  module SimpleMigrations
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_migrations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyler Hartland