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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 18145281c69f3a789a8fc2de0873b3ddbed3c1ccec3faed5de71a9ed2dad6e58
4
- data.tar.gz: 93e91ecc167ad2fb8cf2ef664adf405e9d47868ead4ce0f24057269c9139dea0
3
+ metadata.gz: 406033afc1679b99c3126cbbe9d033db56db817bf98a14a2f7926517e5f54587
4
+ data.tar.gz: d33213b5b15ab486fce6e0d1e276d77be5a5dc69768bebb8d26400b7fe3523a8
5
5
  SHA512:
6
- metadata.gz: 3ff5ee90e37051fb6668ae63a2640c41cc8be3e301a6c5bb7b58a5581f81de71b54ecab7f66b0136c88733d9f4314b2e85e5c739da4ba9939607d7e0cde8c8b6
7
- data.tar.gz: a328b2ddc325d69d98197ae2ae5db29932377e1c0bf1947ab08297bc5973ed167fbbc42ed70d35993fb02250efab721cdb0a4fb6789339da6f02af10a1664093
6
+ metadata.gz: eddd59586a06045a5120af7c1bb44b7f9da3099fbbdcda532f7975fb4356ba2c82a4b08bc460104df880c0030c8037cdbac0300a29ca8c789f457a3d8a7127d1
7
+ data.tar.gz: 062cf7e95ae5dd4ebc7ce321fe040726badba05aa049b83cc5a2b46ac0e52d654cda011582052d928af3bcd90c95b4c1883da32522e49793b3196ffff0960e2c
@@ -1,9 +1,6 @@
1
1
  name: Ruby Gem
2
2
 
3
3
  on:
4
- pull_request:
5
- branches:
6
- - master
7
4
  push:
8
5
  branches:
9
6
  - master
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 6.2.0
4
+
5
+ Add `rake data:schema:load` [timkrins](https://github.com/timkrins)
6
+
3
7
  ## 6.1.0
4
8
 
5
9
  Fixing `rake db:schema:load:with_data` for Rails 6
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
@@ -1,3 +1,3 @@
1
1
  module DataMigrate
2
- VERSION = "6.1.0".freeze
2
+ VERSION = "6.2.0".freeze
3
3
  end
@@ -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.1.0
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-11-21 00:00:00.000000000 Z
13
+ date: 2019-12-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails