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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a3af50d4558939c15da3ac6a944670b669238f9
|
4
|
+
data.tar.gz: 7a7c553bc0a3ed36c849aacc9d9be124ad801ae3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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.
|
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-
|
12
|
+
date: 2014-09-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|