gravis-acts_as_archive 0.2.10 → 0.2.11
Sign up to get free protection for your applications and to get access to all the features.
@@ -12,7 +12,7 @@ module ActsAsArchive
|
|
12
12
|
current_index = 0
|
13
13
|
indexes.each do |index|
|
14
14
|
if index['Seq_in_index'] != '1'
|
15
|
-
final_indexes[current_index-1] = Array(final_indexes[current_index-1]).flatten.concat(Array(index['Column_name']
|
15
|
+
final_indexes[current_index-1] = Array(final_indexes[current_index-1]).flatten.concat(Array(index['Column_name'].to_sym))
|
16
16
|
else
|
17
17
|
final_indexes[current_index] = index['Column_name'].to_sym
|
18
18
|
current_index += 1
|
@@ -72,7 +72,7 @@ module ActsAsArchive
|
|
72
72
|
end
|
73
73
|
|
74
74
|
def index_name_for(table_name, index)
|
75
|
-
"index_by_#{Array(index).join("_and_")}"
|
75
|
+
"index_by_#{Array(index).join("_and_")}" if "index_archived_#{table_name}_on_#{Array(index).join("_and_")}".length > 63
|
76
76
|
end
|
77
77
|
end
|
78
78
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gravis-acts_as_archive
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 1
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 11
|
10
|
+
version: 0.2.11
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Winton Welsh
|
@@ -16,7 +16,7 @@ bindir: bin
|
|
16
16
|
cert_chain: []
|
17
17
|
|
18
18
|
date: 2010-05-31 00:00:00 +02:00
|
19
|
-
default_executable:
|
19
|
+
default_executable: acts_as_archive
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
name: require
|