switchman 1.14.0 → 1.14.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/switchman/active_record/postgresql_adapter.rb +8 -3
- data/lib/switchman/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: 276b414f42294d6b4900e923972492ae87486ece50af3ae80ae0665c912e0e89
|
4
|
+
data.tar.gz: 2a097e0f0b39655d4d82f8ef789bd5ff6e9dddd169e3ff794f11d99038a14dff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7db91542ba02b866c823de9c1a3c8b907129f2f914480fe8b4d8934699a36cb7adf679d8942993f830d086894c67e2e21b3f074af13dffc23b42b9c63ac90b26
|
7
|
+
data.tar.gz: 21dd28ce6e78b82456b471f1cd3b3e33cadd3b299ad7889024abd3772719c016651b3fd9deea621a7cbe235d338749baf1e26baa9011713fa57264409ceb9580
|
@@ -175,11 +175,12 @@ module Switchman
|
|
175
175
|
name.quoted
|
176
176
|
end
|
177
177
|
|
178
|
-
def with_local_table_name
|
179
|
-
|
178
|
+
def with_local_table_name(enable = true)
|
179
|
+
old_value = @use_local_table_name
|
180
|
+
@use_local_table_name = enable
|
180
181
|
yield
|
181
182
|
ensure
|
182
|
-
@use_local_table_name =
|
183
|
+
@use_local_table_name = old_value
|
183
184
|
end
|
184
185
|
|
185
186
|
def foreign_keys(table_name)
|
@@ -248,6 +249,10 @@ module Switchman
|
|
248
249
|
|
249
250
|
execute "ALTER INDEX #{quote_table_name(old_name)} RENAME TO #{quote_local_table_name(new_name)}"
|
250
251
|
end
|
252
|
+
|
253
|
+
def columns(*)
|
254
|
+
with_local_table_name(false) { super }
|
255
|
+
end
|
251
256
|
end
|
252
257
|
end
|
253
258
|
end
|
data/lib/switchman/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: switchman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.14.
|
4
|
+
version: 1.14.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cody Cutrer
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2019-06-
|
13
|
+
date: 2019-06-26 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: railties
|