nondestructive_migrations 1.1 → 1.1.5
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 +4 -4
- data/lib/generators/data_migration_install_generator.rb +4 -5
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ddf9841c2c435cbe4ec982c41819f8151a842d9a
|
4
|
+
data.tar.gz: 5e71f518728838cc537bf981887764b36c276ef4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30639bf99e4b83dae7a2a34a9926e3007cadb582418092a148cf1f9b8fceeff13a903618b7dd18c4778391b82630a927108429d87ce058077f3e44d1662dddd0
|
7
|
+
data.tar.gz: 1f960cdabe7c2268885da45857ea65f44fdfaecf53909fd5fe3fbc00080f803a292956b7f3bc56cb1801f95899e4fcb6d79f1802df56f5042251a0e124b2bbc5
|
@@ -3,21 +3,20 @@ require 'rails/generators/migration'
|
|
3
3
|
require 'rails/generators/active_record'
|
4
4
|
|
5
5
|
|
6
|
-
module DataMigrations
|
6
|
+
module DataMigrations
|
7
7
|
class InstallGenerator < Rails::Generators::Base
|
8
8
|
include Rails::Generators::Migration
|
9
9
|
source_root File.expand_path("../templates", __FILE__)
|
10
10
|
|
11
11
|
desc "Creates an initializer and copy files to your application."
|
12
|
-
class_option :orm
|
12
|
+
class_option :orm, type: 'boolean'
|
13
13
|
def self.next_migration_number(path)
|
14
14
|
Time.now.utc.strftime("%Y%m%d%H%M%S")
|
15
15
|
end
|
16
|
-
|
16
|
+
|
17
17
|
def copy_initializer
|
18
18
|
migration_template "create_data_migrations.rb",
|
19
19
|
"db/migrate/create_data_migrations.rb"
|
20
20
|
end
|
21
|
-
end
|
21
|
+
end
|
22
22
|
end
|
23
|
-
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nondestructive_migrations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Fleetwood-Boldt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-02-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -16,17 +16,17 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '4.
|
19
|
+
version: '4.2'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '4.
|
26
|
+
version: '4.2'
|
27
27
|
description: Separate schema-only migrations from nondestrucitve (data) migrations
|
28
28
|
in your Rails app
|
29
|
-
email: jason@datatravels.com
|
29
|
+
email: jason.fb@datatravels.com
|
30
30
|
executables: []
|
31
31
|
extensions: []
|
32
32
|
extra_rdoc_files: []
|
@@ -59,7 +59,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
59
59
|
version: '0'
|
60
60
|
requirements: []
|
61
61
|
rubyforge_project:
|
62
|
-
rubygems_version: 2.
|
62
|
+
rubygems_version: 2.5.1
|
63
63
|
signing_key:
|
64
64
|
specification_version: 4
|
65
65
|
summary: Nondestructive (data-only) migrations for your Rails app
|