data_migrate 5.3.0 → 5.3.1
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/Changelog.md +6 -0
- data/lib/data_migrate/data_migrator_five.rb +2 -1
- data/lib/data_migrate/database_tasks.rb +3 -1
- data/lib/data_migrate/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: eeeb01db0576476500be7c9604af4c0d95943204ad38c4d48e71ddf8b235fd0e
|
|
4
|
+
data.tar.gz: e86729f43c026d231579824961d3aaf076109423a5bacebbbe66415e1169e13c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ec84917b87b3ae142ad2f5526af22bfae7141da49e2013cdd1b91997c949f88cb7b753d2b73d60d2d251fd7d0b99565a10847b38e4c269afbf79046af1f884cc
|
|
7
|
+
data.tar.gz: 0b16ab9a932b5ad3d25cd97456a320498714590b14b3ed925e48fc48b80d17c7080de0aff7b8d0b4194a7348a7a1784388e82d8e8ecb3c602f896ca0da91818f
|
data/Changelog.md
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
Changelog
|
|
2
2
|
=========
|
|
3
3
|
|
|
4
|
+
## 5.3.1
|
|
5
|
+
Change database task to use data_migrations_path_configuration
|
|
6
|
+
|
|
7
|
+
## 5.3.0
|
|
8
|
+
Add support to configure data migration path
|
|
9
|
+
|
|
4
10
|
## 5.1.0
|
|
5
11
|
Fixes to `db:schema:load:with_data` + `db:structure:load:with_data` definition, thanks to [craineum](https://github.com/craineum)
|
|
6
12
|
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
require "active_record"
|
|
4
|
+
require "data_migrate/config"
|
|
4
5
|
|
|
5
6
|
module DataMigrate
|
|
6
7
|
class DataMigrator < ActiveRecord::Migrator
|
|
7
|
-
self.migrations_paths = [
|
|
8
|
+
self.migrations_paths = [DataMigrate.config.data_migrations_path]
|
|
8
9
|
|
|
9
10
|
def self.assure_data_schema_table
|
|
10
11
|
ActiveRecord::Base.establish_connection(db_config)
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
require "data_migrate/config"
|
|
4
|
+
|
|
3
5
|
module DataMigrate
|
|
4
6
|
##
|
|
5
7
|
# This class extends DatabaseTasks to add a schema_file method.
|
|
@@ -26,7 +28,7 @@ module DataMigrate
|
|
|
26
28
|
end
|
|
27
29
|
|
|
28
30
|
def self.data_migrations_path
|
|
29
|
-
|
|
31
|
+
DataMigrate.config.data_migrations_path
|
|
30
32
|
end
|
|
31
33
|
|
|
32
34
|
def self.schema_migrations_path
|
data/lib/data_migrate/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: data_migrate
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.3.
|
|
4
|
+
version: 5.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrew J Vargo
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date:
|
|
13
|
+
date: 2019-01-15 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: rails
|