jungle_path 0.0.18 → 0.0.19
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/lib/jungle_path/db_model/schema.rb +2 -1
- data/lib/jungle_path/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59ee6f924853594f89058ab7b8959bafc7db836b
|
4
|
+
data.tar.gz: b3bd53ab97ef275ff1871cd4e703ca6a4c05363e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0dc64f7e5026afea095be211e8a114881dea5eeeec1ab0473d595f39a87116f119eb5a3831208ad15f497eff621956b26ffde9eb0a1c49aea49cb6f9eaa7381
|
7
|
+
data.tar.gz: 8d71482de9346d085789da8c95058f7b7e69ce7ed12343dcccbbc5deda26e8d5a40a0076a54ad517bb78d0dc2dc743b0b7dfe3d734614c428cfc51fe5e944e90
|
@@ -9,6 +9,7 @@ module JunglePath
|
|
9
9
|
def get_sequel_method type, multi_column_pk=false
|
10
10
|
return 'foreign_key' if type == :foreign_key
|
11
11
|
return 'primary_key' if type == :primary_key and multi_column_pk == false
|
12
|
+
return 'Integer' if type == :primary_key and multi_column_pk == true
|
12
13
|
return 'String' if type == :string
|
13
14
|
return 'Integer' if type == :integer
|
14
15
|
return 'DateTime' if type == :timestamp
|
@@ -64,7 +65,7 @@ module JunglePath
|
|
64
65
|
args_hash[:type] = schema.get_postgresql_override_type(column.override_type) unless column.override_type == nil
|
65
66
|
args_hash[:default] = column.default_value unless column.default_value == nil
|
66
67
|
args << args_hash
|
67
|
-
|
68
|
+
puts "\t\tmethod: #{method}. args:#{args}.\n"
|
68
69
|
made_pk = true if column.type == :primary_key # only happens when pk is single column.
|
69
70
|
puts "column: #{column.name}, override_type: #{column.override_type}, override_type.class: #{column.override_type.class}, method: #{method}, args: #{args}."
|
70
71
|
send(method, *args)
|
data/lib/jungle_path/version.rb
CHANGED