erp_agreements 4.0.0 → 4.2.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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21d5b1dfaf5eff3b213f147b37c08b23100f6a2e
|
4
|
+
data.tar.gz: 2ea7d4078a591147960c945a9c4050ae796d69e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a99a22651dd3de3ba2a026afc294fc5777e2c938583da5edd876677a9119332ae2257c423354146f1ffea1ec65fd87c1fe2028f476eac5ff8d4edc5b3b8a835
|
7
|
+
data.tar.gz: 705e3efc5fa94cd70983fca2121c5dcdc8e5567f5a2eb9a57161551fa4fd2fa558fe4efc57e55079b43ac176d79146c97919e096416b8f864168d73b1483fb69
|
@@ -15,7 +15,10 @@ class AgreementsServices < ActiveRecord::Migration
|
|
15
15
|
t.column :external_id_source, :string
|
16
16
|
|
17
17
|
t.timestamps
|
18
|
-
end
|
18
|
+
end
|
19
|
+
|
20
|
+
add_index :agreements, :agreement_type_id
|
21
|
+
add_index :agreements, :product_id
|
19
22
|
end
|
20
23
|
|
21
24
|
# Create agreement types
|
@@ -34,6 +37,10 @@ class AgreementsServices < ActiveRecord::Migration
|
|
34
37
|
|
35
38
|
t.timestamps
|
36
39
|
end
|
40
|
+
|
41
|
+
add_index :agreement_types, :parent_id
|
42
|
+
add_index :agreement_types, :lft
|
43
|
+
add_index :agreement_types, :rgt
|
37
44
|
end
|
38
45
|
|
39
46
|
# Create agreement items
|
@@ -47,6 +54,9 @@ class AgreementsServices < ActiveRecord::Migration
|
|
47
54
|
|
48
55
|
t.timestamps
|
49
56
|
end
|
57
|
+
|
58
|
+
add_index :agreement_items, :agreement_id
|
59
|
+
add_index :agreement_items, :agreement_item_type_id
|
50
60
|
end
|
51
61
|
|
52
62
|
# Create agreement item types
|
@@ -65,6 +75,10 @@ class AgreementsServices < ActiveRecord::Migration
|
|
65
75
|
|
66
76
|
t.timestamps
|
67
77
|
end
|
78
|
+
|
79
|
+
add_index :agreement_item_types, :parent_id
|
80
|
+
add_index :agreement_item_types, :lft
|
81
|
+
add_index :agreement_item_types, :rgt
|
68
82
|
end
|
69
83
|
|
70
84
|
# Create agreement_party_roles
|
@@ -79,8 +93,13 @@ class AgreementsServices < ActiveRecord::Migration
|
|
79
93
|
|
80
94
|
t.timestamps
|
81
95
|
end
|
96
|
+
|
97
|
+
add_index :agreement_party_roles, :agreement_id
|
98
|
+
add_index :agreement_party_roles, :party_id
|
99
|
+
add_index :agreement_party_roles, :role_type_id
|
82
100
|
end
|
83
|
-
|
101
|
+
|
102
|
+
# agreement_relationships
|
84
103
|
unless table_exists?(:agreement_relationships)
|
85
104
|
create_table :agreement_relationships do |t|
|
86
105
|
t.column :agreement_reln_type_id, :integer
|
@@ -95,8 +114,12 @@ class AgreementsServices < ActiveRecord::Migration
|
|
95
114
|
|
96
115
|
t.timestamps
|
97
116
|
end
|
117
|
+
|
118
|
+
add_index :agreement_relationships, :agreement_reln_type_id
|
119
|
+
add_index :agreement_relationships, :status_type_id
|
98
120
|
end
|
99
|
-
|
121
|
+
|
122
|
+
# agreement_reln_types
|
100
123
|
unless table_exists?(:agreement_reln_types)
|
101
124
|
create_table :agreement_reln_types do |t|
|
102
125
|
t.column :parent_id, :integer
|
@@ -113,8 +136,13 @@ class AgreementsServices < ActiveRecord::Migration
|
|
113
136
|
|
114
137
|
t.timestamps
|
115
138
|
end
|
139
|
+
|
140
|
+
add_index :agreement_reln_types, :parent_id
|
141
|
+
add_index :agreement_reln_types, :valid_from_role_type_id
|
142
|
+
add_index :agreement_reln_types, :valid_to_role_type_id
|
116
143
|
end
|
117
|
-
|
144
|
+
|
145
|
+
# agreement_role_types
|
118
146
|
unless table_exists?(:agreement_role_types)
|
119
147
|
create_table :agreement_role_types do |t|
|
120
148
|
|
@@ -129,9 +157,14 @@ class AgreementsServices < ActiveRecord::Migration
|
|
129
157
|
t.column :external_id_source, :string
|
130
158
|
|
131
159
|
t.timestamps
|
132
|
-
end
|
160
|
+
end
|
161
|
+
|
162
|
+
add_index :agreement_role_types, :parent_id
|
163
|
+
add_index :agreement_role_types, :lft
|
164
|
+
add_index :agreement_role_types, :rgt
|
133
165
|
end
|
134
|
-
|
166
|
+
|
167
|
+
# loyalty_program_codes
|
135
168
|
unless table_exists?(:loyalty_program_codes)
|
136
169
|
create_table :loyalty_program_codes do |t|
|
137
170
|
t.string :identifier
|
@@ -141,7 +174,7 @@ class AgreementsServices < ActiveRecord::Migration
|
|
141
174
|
t.timestamps
|
142
175
|
end
|
143
176
|
end
|
144
|
-
|
177
|
+
|
145
178
|
end
|
146
179
|
|
147
180
|
def self.down
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: erp_agreements
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rick Koloski, Russell Holmes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: erp_tech_svcs
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '4.
|
19
|
+
version: '4.2'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '4.
|
26
|
+
version: '4.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: erp_dev_svcs
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '4.
|
33
|
+
version: '4.2'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '4.
|
40
|
+
version: '4.2'
|
41
41
|
description: The Agreements Engine implements model classes for storing Contracts
|
42
42
|
and Agreements data, including AgreementItems, which represent the terms of the
|
43
43
|
Agreement. Contracts are a special case of Agreements, specifically Agreements which
|
@@ -65,7 +65,6 @@ files:
|
|
65
65
|
- config/initializers/has_many_polymorphic.rb
|
66
66
|
- config/routes.rb
|
67
67
|
- db/migrate/20080805000070_agreements_services.rb
|
68
|
-
- db/migrate/20080805000071_agreements_services_indexes.rb
|
69
68
|
- lib/erp_agreements.rb
|
70
69
|
- lib/erp_agreements/engine.rb
|
71
70
|
- lib/erp_agreements/version.rb
|
@@ -131,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
131
130
|
version: '0'
|
132
131
|
requirements: []
|
133
132
|
rubyforge_project:
|
134
|
-
rubygems_version: 2.
|
133
|
+
rubygems_version: 2.4.8
|
135
134
|
signing_key:
|
136
135
|
specification_version: 4
|
137
136
|
summary: The Agreements Engine implements model classes for storing Contracts and
|
@@ -1,51 +0,0 @@
|
|
1
|
-
class AgreementsServicesIndexes < ActiveRecord::Migration
|
2
|
-
def self.up
|
3
|
-
add_index :agreements, :agreement_type_id
|
4
|
-
add_index :agreements, :product_id
|
5
|
-
|
6
|
-
add_index :agreement_types, :parent_id
|
7
|
-
|
8
|
-
add_index :agreement_items, :agreement_id
|
9
|
-
add_index :agreement_items, :agreement_item_type_id
|
10
|
-
|
11
|
-
add_index :agreement_item_types, :parent_id
|
12
|
-
|
13
|
-
add_index :agreement_party_roles, :agreement_id
|
14
|
-
add_index :agreement_party_roles, :party_id
|
15
|
-
add_index :agreement_party_roles, :role_type_id
|
16
|
-
|
17
|
-
add_index :agreement_relationships, :agreement_reln_type_id
|
18
|
-
add_index :agreement_relationships, :status_type_id
|
19
|
-
|
20
|
-
add_index :agreement_reln_types, :parent_id
|
21
|
-
add_index :agreement_reln_types, :valid_from_role_type_id
|
22
|
-
add_index :agreement_reln_types, :valid_to_role_type_id
|
23
|
-
|
24
|
-
add_index :agreement_role_types, :parent_id
|
25
|
-
end
|
26
|
-
|
27
|
-
def self.down
|
28
|
-
remove_index :agreements, :agreement_type_id
|
29
|
-
remove_index :agreements, :product_id
|
30
|
-
|
31
|
-
remove_index :agreement_types, :parent_id
|
32
|
-
|
33
|
-
remove_index :agreement_items, :agreement_id
|
34
|
-
remove_index :agreement_items, :agreement_item_type_id
|
35
|
-
|
36
|
-
remove_index :agreement_item_types, :parent_id
|
37
|
-
|
38
|
-
remove_index :agreement_party_roles, :agreement_id
|
39
|
-
remove_index :agreement_party_roles, :party_id
|
40
|
-
remove_index :agreement_party_roles, :role_type_id
|
41
|
-
|
42
|
-
remove_index :agreement_relationships, :agreement_reln_type_id
|
43
|
-
remove_index :agreement_relationships, :status_type_id
|
44
|
-
|
45
|
-
remove_index :agreement_reln_types, :parent_id
|
46
|
-
remove_index :agreement_reln_types, :valid_from_role_type_id
|
47
|
-
remove_index :agreement_reln_types, :valid_to_role_type_id
|
48
|
-
|
49
|
-
remove_index :agreement_role_types, :parent_id
|
50
|
-
end
|
51
|
-
end
|