seed_migrator 0.4.0 → 0.4.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: e48f4a0ebe69dcc507716f264265ecd3053667b5
4
- data.tar.gz: b238670732ed6f978f8c34312e1cba4e1a46e1a6
3
+ metadata.gz: 0a3af50d4558939c15da3ac6a944670b669238f9
4
+ data.tar.gz: 7a7c553bc0a3ed36c849aacc9d9be124ad801ae3
5
5
  SHA512:
6
- metadata.gz: b0e613afc70bf2398c980e6451374efab38705e3a50af1ddb656dc3179d27e2840c153a11c54f67399dd99c69a500ba3fac42b159cc27daf205333d833db4e77
7
- data.tar.gz: fa14f2abd15e7498f618ba773df1fbbef788eae2387a8b273ee6e8096e14452bbe8a2c554e9a56f596ec127afb19a532d247b25ac87905d45bf4b7d88d87769c
6
+ metadata.gz: d760a99929ae59627798fa6d3f4a114671c703d7feff67bd2f35b24f6cb4ef290ac3e8be26da3b0b99ecadfbb5c98b294986197df3d68b82d619a3a986cb6122
7
+ data.tar.gz: 608b0e7ac3af0155cbc7773b721746e4d18b4068e89f248586f4b377d18ef84c2621ac606afa71bd37434d7e12768e356015d2866b237cbc2b9e4c79af15a4c0
@@ -5,8 +5,7 @@ require 'generators/seed_migrator/helper'
5
5
  class SeedMigrator::CreateGenerator < Rails::Generators::NamedBase
6
6
  include Generators::SeedMigrator::Helper
7
7
  include Rails::Generators::Migration
8
- extend ActiveRecord::Generators::Migration
9
-
8
+
10
9
  source_root File.expand_path('../templates', __FILE__)
11
10
 
12
11
  # Creates the data update file and the migration file.
@@ -14,4 +13,8 @@ class SeedMigrator::CreateGenerator < Rails::Generators::NamedBase
14
13
  migration_template "data_update.rb", "db/data_updates/#{file_name}_data_update.rb"
15
14
  migration_template "data_update_migration.rb", "db/migrate/#{file_name}.rb"
16
15
  end
16
+
17
+ def self.next_migration_number dirname
18
+ ActiveRecord::Generators::Base.next_migration_number dirname
19
+ end
17
20
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seed_migrator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arthur Shagall
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-09-27 00:00:00.000000000 Z
12
+ date: 2014-09-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport