data_migrate 6.1.0 → 6.2.0
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/.github/workflows/gempush.yml +0 -3
- data/Changelog.md +4 -0
- data/README.md +1 -0
- data/lib/data_migrate/version.rb +1 -1
- data/tasks/databases.rake +10 -0
- 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: 406033afc1679b99c3126cbbe9d033db56db817bf98a14a2f7926517e5f54587
|
|
4
|
+
data.tar.gz: d33213b5b15ab486fce6e0d1e276d77be5a5dc69768bebb8d26400b7fe3523a8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eddd59586a06045a5120af7c1bb44b7f9da3099fbbdcda532f7975fb4356ba2c82a4b08bc460104df880c0030c8037cdbac0300a29ca8c789f457a3d8a7127d1
|
|
7
|
+
data.tar.gz: 062cf7e95ae5dd4ebc7ce321fe040726badba05aa049b83cc5a2b46ac0e52d654cda011582052d928af3bcd90c95b4c1883da32522e49793b3196ffff0960e2c
|
data/Changelog.md
CHANGED
data/README.md
CHANGED
|
@@ -90,6 +90,7 @@ You can generate a data migration as you would a schema migration:
|
|
|
90
90
|
rake data:migrate:status # Display status of data migrations
|
|
91
91
|
rake data:migrate:up # Runs the "up" for a given migration VERSION
|
|
92
92
|
rake data:rollback # Rolls the schema back to the previous version (specify steps w/ STEP=n)
|
|
93
|
+
rake data:schema:load # Load data_schema.rb file into the database without running the data migrations
|
|
93
94
|
rake data:version # Retrieves the current schema version number for data migrations
|
|
94
95
|
rake db:forward:with_data # Pushes the schema to the next version (specify steps w/ STEP=n)
|
|
95
96
|
rake db:migrate:down:with_data # Runs the "down" for a given migration VERSION
|
data/lib/data_migrate/version.rb
CHANGED
data/tasks/databases.rake
CHANGED
|
@@ -341,6 +341,16 @@ namespace :data do
|
|
|
341
341
|
# that depend on this one.
|
|
342
342
|
Rake::Task["data:dump"].reenable
|
|
343
343
|
end
|
|
344
|
+
|
|
345
|
+
namespace :schema do
|
|
346
|
+
desc "Load data_schema.rb file into the database"
|
|
347
|
+
task load: :environment do
|
|
348
|
+
DataMigrate::DatabaseTasks.load_schema_current(
|
|
349
|
+
:ruby,
|
|
350
|
+
ENV["DATA_SCHEMA"]
|
|
351
|
+
)
|
|
352
|
+
end
|
|
353
|
+
end
|
|
344
354
|
end
|
|
345
355
|
|
|
346
356
|
def pending_migrations
|
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: 6.
|
|
4
|
+
version: 6.2.0
|
|
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: 2019-
|
|
13
|
+
date: 2019-12-09 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: rails
|