ridgepole-replace_db_task 0.2.0 → 0.3.0

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: 5b4761e5d257e13ed5b0a561c10d10dc1b8e1fac6998a4f18b91f0787eae169c
4
- data.tar.gz: 15e9c6c84e24adbfa3105c272c85ff3c66374ac18024f8989473b05806038e07
3
+ metadata.gz: f14de3119a516d59e6b4ccaabd389a9d20021cdee17d35adbbb58aee33d4cd3e
4
+ data.tar.gz: 210873f810798356311f3a3dbb7679f8714ac9b6c6a3e28bdc3987f5a873f0dd
5
5
  SHA512:
6
- metadata.gz: 79d267c0cf67938b7dacf7c6e343624854ded67948f30b09a1b5e04789a26e189847960405e87467c2ec7cb594dab3884e9a32a60f49794bf159724a2a9bb738
7
- data.tar.gz: '09e473bfc8f49c452505e0b3435b004af63d4f5eb58b6d2f8f159b7e44af42b08277a1cc8d21dcaa5ff615e63f4a528ffc2694b30dc2d59ddb3089ad7e4a32ad'
6
+ metadata.gz: b06c52355f3021aeea3175a0d85e9b43e254a577e2fd8d10b18abd9fb6f61155581f85f47845697cd28a69e1e49acddd1208d8c41a92182d0d0f6e3d9523d4d7
7
+ data.tar.gz: a027236aa6c6f42b128770ba3e95b58609e4647806438b8f1aa672715d2d835e0eb4597bc1826e5454847ac4a80f4c4c13e3f93a0ee0dabe289038bcf063d855
@@ -10,6 +10,7 @@ module Ridgepole
10
10
  config_accessor :schema_file_path
11
11
  config_accessor :skip_drop_table
12
12
  config_accessor :ignore_tables
13
+ config_accessor :migrate_with_test_when_development
13
14
  end
14
15
  end
15
16
  end
@@ -1,5 +1,5 @@
1
1
  module Ridgepole
2
2
  module ReplaceDbTask
3
- VERSION = "0.2.0"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  end
@@ -23,6 +23,7 @@ module Ridgepole
23
23
  config.ridgepole = 'bundle exec ridgepole'
24
24
  config.skip_drop_table = false
25
25
  config.ignore_tables = []
26
+ config.migrate_with_test_when_development = true
26
27
  end
27
28
  end
28
29
  end
@@ -10,7 +10,7 @@ namespace :db do
10
10
  ENV['RAILS_ENV'] ||= 'development'
11
11
  apply(ENV['RAILS_ENV'], '--apply') { |line| puts line }
12
12
 
13
- if ENV['RAILS_ENV'] == 'development'
13
+ if ENV['RAILS_ENV'] == 'development' && ::Ridgepole::ReplaceDbTask.config.migrate_with_test_when_development
14
14
  apply('test', '--apply') { |line| puts line }
15
15
  end
16
16
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ridgepole-replace_db_task
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takahiro Ooishi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-02-18 00:00:00.000000000 Z
11
+ date: 2022-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties