data_migrate 5.3.0 → 5.3.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
  SHA256:
3
- metadata.gz: 9462f36e74230a90ba6e6d8eecc2372bd2b95645728e2791ff58fe46a0603a67
4
- data.tar.gz: b8f720b2a4f81de75c4ab7a45bcb6f95a472e17569e6d06297cdc9b3bbf1407d
3
+ metadata.gz: eeeb01db0576476500be7c9604af4c0d95943204ad38c4d48e71ddf8b235fd0e
4
+ data.tar.gz: e86729f43c026d231579824961d3aaf076109423a5bacebbbe66415e1169e13c
5
5
  SHA512:
6
- metadata.gz: 481d64df974f86ad1c81f8ab064afd16ccd9596b924de2ea09f8060bc85f4cf39cf4501af54e45d473d00c71ab8a272173e4a898a421d2cef0f8993b64bdfe5f
7
- data.tar.gz: 27e18b67499e98a64cced4c95ad5c145f9d0b4213be841966c8c38f90dbd2d9e2fcac55b70afa02ceb2917c54851cae40e8e34df32782fffb4ca3e93b2da989d
6
+ metadata.gz: ec84917b87b3ae142ad2f5526af22bfae7141da49e2013cdd1b91997c949f88cb7b753d2b73d60d2d251fd7d0b99565a10847b38e4c269afbf79046af1f884cc
7
+ data.tar.gz: 0b16ab9a932b5ad3d25cd97456a320498714590b14b3ed925e48fc48b80d17c7080de0aff7b8d0b4194a7348a7a1784388e82d8e8ecb3c602f896ca0da91818f
@@ -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 = ["db/data"]
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
- "db/data/"
31
+ DataMigrate.config.data_migrations_path
30
32
  end
31
33
 
32
34
  def self.schema_migrations_path
@@ -1,3 +1,3 @@
1
1
  module DataMigrate
2
- VERSION = "5.3.0".freeze
2
+ VERSION = "5.3.1".freeze
3
3
  end
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.0
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: 2018-12-10 00:00:00.000000000 Z
13
+ date: 2019-01-15 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails