erp_communication_events 3.1.0 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/app/models/communication_event.rb +3 -0
- data/app/observers/communication_event_observer.rb +2 -2
- data/db/migrate/20140519144444_add_custom_fields_to_comm_evt.rb +5 -0
- data/lib/erp_communication_events/version.rb +6 -2
- metadata +24 -77
- data/app/assets/javascripts/erp_communication_events/application.js +0 -9
- data/app/assets/stylesheets/erp_communication_events/application.css +0 -7
- data/app/controllers/erp_communication_events/application_controller.rb +0 -4
- data/app/helpers/erp_communication_events/application_helper.rb +0 -4
- data/app/views/layouts/erp_communication_events/application.html.erb +0 -14
- data/spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb +0 -15
- data/spec/dummy/db/data_migrations/20110525001935_add_usd_currency.erp_base_erp_svcs.rb +0 -12
- data/spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb +0 -19
- data/spec/dummy/db/data_migrations/20110802200222_schedule_delete_expired_sessions_job.erp_tech_svcs.rb +0 -16
- data/spec/dummy/db/data_migrations/20110913145838_setup_compass_ae_instance.erp_base_erp_svcs.rb +0 -12
- data/spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb +0 -22
- data/spec/dummy/db/data_migrations/20120109173616_create_download_capability_type.erp_tech_svcs.rb +0 -14
- data/spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb +0 -20
- data/spec/dummy/db/data_migrations/20121130212146_note_capabilities.erp_tech_svcs.rb +0 -24
- data/spec/dummy/db/migrate/20121213233556_base_erp_services.erp_base_erp_svcs.rb +0 -461
- data/spec/dummy/db/migrate/20121213233557_communication_events_services.erp_communication_events.rb +0 -108
- data/spec/dummy/db/migrate/20121213233558_base_tech_services.erp_tech_svcs.rb +0 -255
- data/spec/dummy/db/migrate/20121213233559_create_has_attribute_tables.erp_tech_svcs.rb +0 -39
- data/spec/dummy/db/migrate/20130107180829_create_groups.erp_tech_svcs.rb +0 -19
- data/spec/dummy/db/migrate/20130107180830_upgrade_security.erp_tech_svcs.rb +0 -54
- data/spec/dummy/db/migrate/20130107180831_upgrade_security2.erp_tech_svcs.rb +0 -270
- data/spec/dummy/db/schema.rb +0 -666
- data/spec/dummy/db/spec.sqlite3 +0 -0
- data/spec/dummy/log/spec.log +0 -5407
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 75ad8986950396d04c74347bd7f2e3a178344e05
|
4
|
+
data.tar.gz: 7e49bb69ae38694e31879ac77fe8ef4d1efa77bb
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 3ade5f95c467beaa4a389d5c849dfbff4f3969491041a4235f9a8c50d81ec2f237fea990900d3803ba8c355f9bd42686704b6c8f95e577940228f0e3fb2daca7
|
7
|
+
data.tar.gz: 97060012af7c42a89946239a2253d9365d20b143a9d671bef729d05cbf483a20dd37a84c369a0350f5f046fe47072d71a6c65efc6f2644b337b55e5788300b93
|
@@ -5,9 +5,9 @@ class CommunicationEventObserver < ActiveRecord::Observer
|
|
5
5
|
unless comm_event.comm_evt_purpose_types.first.description.include?("Change Request")
|
6
6
|
begin
|
7
7
|
CommunicationEventMailer.contact_notification(comm_event).deliver
|
8
|
-
rescue
|
8
|
+
rescue => ex
|
9
9
|
system_user = Party.find_by_description('Compass AE')
|
10
|
-
AuditLog.custom_application_log_message(system_user,
|
10
|
+
AuditLog.custom_application_log_message(system_user, ex)
|
11
11
|
end
|
12
12
|
end
|
13
13
|
end
|
@@ -1,9 +1,13 @@
|
|
1
1
|
module ErpCommunicationEvents
|
2
2
|
module VERSION #:nodoc:
|
3
|
-
MAJOR =
|
4
|
-
MINOR =
|
3
|
+
MAJOR = 4
|
4
|
+
MINOR = 0
|
5
5
|
TINY = 0
|
6
6
|
|
7
7
|
STRING = [MAJOR, MINOR, TINY].compact.join('.')
|
8
8
|
end
|
9
|
+
|
10
|
+
def self.version
|
11
|
+
ErpCommunicationEvents::VERSION::STRING
|
12
|
+
end
|
9
13
|
end
|
metadata
CHANGED
@@ -1,48 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: erp_communication_events
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
5
|
-
prerelease:
|
4
|
+
version: 4.0.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Rick Koloski, Russell Holmes
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-11-19 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: erp_tech_svcs
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- - ~>
|
17
|
+
- - "~>"
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version: '
|
19
|
+
version: '4.0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- - ~>
|
24
|
+
- - "~>"
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: '
|
26
|
+
version: '4.0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: erp_dev_svcs
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- - ~>
|
31
|
+
- - "~>"
|
36
32
|
- !ruby/object:Gem::Version
|
37
|
-
version: '
|
33
|
+
version: '4.0'
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- - ~>
|
38
|
+
- - "~>"
|
44
39
|
- !ruby/object:Gem::Version
|
45
|
-
version: '
|
40
|
+
version: '4.0'
|
46
41
|
description: ErpCommunicationEvents add models and services to CompassAE's ERP core
|
47
42
|
to handle contacts between Business Parties. For example, tracking inbound or outbound
|
48
43
|
emails, customer contact events, support requests, etc. These models would be used
|
@@ -55,10 +50,9 @@ executables: []
|
|
55
50
|
extensions: []
|
56
51
|
extra_rdoc_files: []
|
57
52
|
files:
|
58
|
-
-
|
59
|
-
-
|
60
|
-
-
|
61
|
-
- app/helpers/erp_communication_events/application_helper.rb
|
53
|
+
- GPL-3-LICENSE
|
54
|
+
- README.rdoc
|
55
|
+
- Rakefile
|
62
56
|
- app/models/comm_evt_purpose.rb
|
63
57
|
- app/models/comm_evt_purpose_type.rb
|
64
58
|
- app/models/comm_evt_status.rb
|
@@ -71,21 +65,20 @@ files:
|
|
71
65
|
- app/observers/email_address_change_event_observer.rb
|
72
66
|
- app/observers/phone_number_change_event_observer.rb
|
73
67
|
- app/observers/postal_address_change_event_observer.rb
|
74
|
-
- app/views/layouts/erp_communication_events/application.html.erb
|
75
68
|
- config/routes.rb
|
76
69
|
- db/migrate/20080805000080_communication_events_services.rb
|
70
|
+
- db/migrate/20140519144444_add_custom_fields_to_comm_evt.rb
|
71
|
+
- lib/erp_communication_events.rb
|
77
72
|
- lib/erp_communication_events/engine.rb
|
78
73
|
- lib/erp_communication_events/version.rb
|
79
|
-
- lib/erp_communication_events.rb
|
80
74
|
- lib/tasks/erp_communication_events_tasks.rake
|
81
|
-
-
|
82
|
-
- Rakefile
|
83
|
-
- README.rdoc
|
75
|
+
- spec/dummy/Rakefile
|
84
76
|
- spec/dummy/app/assets/javascripts/application.js
|
85
77
|
- spec/dummy/app/assets/stylesheets/application.css
|
86
78
|
- spec/dummy/app/controllers/application_controller.rb
|
87
79
|
- spec/dummy/app/helpers/application_helper.rb
|
88
80
|
- spec/dummy/app/views/layouts/application.html.erb
|
81
|
+
- spec/dummy/config.ru
|
89
82
|
- spec/dummy/config/application.rb
|
90
83
|
- spec/dummy/config/boot.rb
|
91
84
|
- spec/dummy/config/database.yml
|
@@ -99,31 +92,10 @@ files:
|
|
99
92
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
100
93
|
- spec/dummy/config/locales/en.yml
|
101
94
|
- spec/dummy/config/routes.rb
|
102
|
-
- spec/dummy/config.ru
|
103
|
-
- spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb
|
104
|
-
- spec/dummy/db/data_migrations/20110525001935_add_usd_currency.erp_base_erp_svcs.rb
|
105
|
-
- spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb
|
106
|
-
- spec/dummy/db/data_migrations/20110802200222_schedule_delete_expired_sessions_job.erp_tech_svcs.rb
|
107
|
-
- spec/dummy/db/data_migrations/20110913145838_setup_compass_ae_instance.erp_base_erp_svcs.rb
|
108
|
-
- spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb
|
109
|
-
- spec/dummy/db/data_migrations/20120109173616_create_download_capability_type.erp_tech_svcs.rb
|
110
|
-
- spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb
|
111
|
-
- spec/dummy/db/data_migrations/20121130212146_note_capabilities.erp_tech_svcs.rb
|
112
|
-
- spec/dummy/db/migrate/20121213233556_base_erp_services.erp_base_erp_svcs.rb
|
113
|
-
- spec/dummy/db/migrate/20121213233557_communication_events_services.erp_communication_events.rb
|
114
|
-
- spec/dummy/db/migrate/20121213233558_base_tech_services.erp_tech_svcs.rb
|
115
|
-
- spec/dummy/db/migrate/20121213233559_create_has_attribute_tables.erp_tech_svcs.rb
|
116
|
-
- spec/dummy/db/migrate/20130107180829_create_groups.erp_tech_svcs.rb
|
117
|
-
- spec/dummy/db/migrate/20130107180830_upgrade_security.erp_tech_svcs.rb
|
118
|
-
- spec/dummy/db/migrate/20130107180831_upgrade_security2.erp_tech_svcs.rb
|
119
|
-
- spec/dummy/db/schema.rb
|
120
|
-
- spec/dummy/db/spec.sqlite3
|
121
|
-
- spec/dummy/log/spec.log
|
122
95
|
- spec/dummy/public/404.html
|
123
96
|
- spec/dummy/public/422.html
|
124
97
|
- spec/dummy/public/500.html
|
125
98
|
- spec/dummy/public/favicon.ico
|
126
|
-
- spec/dummy/Rakefile
|
127
99
|
- spec/dummy/script/rails
|
128
100
|
- spec/models/comm_evt_purpose_spec.rb
|
129
101
|
- spec/models/comm_evt_purpose_type_spec.rb
|
@@ -131,34 +103,28 @@ files:
|
|
131
103
|
- spec/models/communication_event_spec.rb
|
132
104
|
- spec/spec_helper.rb
|
133
105
|
homepage: http://development.compassagile.com
|
134
|
-
licenses:
|
106
|
+
licenses:
|
107
|
+
- GPL-3-LICENSE
|
108
|
+
metadata: {}
|
135
109
|
post_install_message:
|
136
110
|
rdoc_options: []
|
137
111
|
require_paths:
|
138
112
|
- lib
|
139
113
|
required_ruby_version: !ruby/object:Gem::Requirement
|
140
|
-
none: false
|
141
114
|
requirements:
|
142
|
-
- -
|
115
|
+
- - ">="
|
143
116
|
- !ruby/object:Gem::Version
|
144
117
|
version: '0'
|
145
|
-
segments:
|
146
|
-
- 0
|
147
|
-
hash: -3975129084745360356
|
148
118
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
149
|
-
none: false
|
150
119
|
requirements:
|
151
|
-
- -
|
120
|
+
- - ">="
|
152
121
|
- !ruby/object:Gem::Version
|
153
122
|
version: '0'
|
154
|
-
segments:
|
155
|
-
- 0
|
156
|
-
hash: -3975129084745360356
|
157
123
|
requirements: []
|
158
124
|
rubyforge_project:
|
159
|
-
rubygems_version:
|
125
|
+
rubygems_version: 2.2.2
|
160
126
|
signing_key:
|
161
|
-
specification_version:
|
127
|
+
specification_version: 4
|
162
128
|
summary: ErpCommunicationEvents add models and services to CompassAE's ERP core to
|
163
129
|
handle contacts between Business Parties.
|
164
130
|
test_files:
|
@@ -181,25 +147,6 @@ test_files:
|
|
181
147
|
- spec/dummy/config/locales/en.yml
|
182
148
|
- spec/dummy/config/routes.rb
|
183
149
|
- spec/dummy/config.ru
|
184
|
-
- spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb
|
185
|
-
- spec/dummy/db/data_migrations/20110525001935_add_usd_currency.erp_base_erp_svcs.rb
|
186
|
-
- spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb
|
187
|
-
- spec/dummy/db/data_migrations/20110802200222_schedule_delete_expired_sessions_job.erp_tech_svcs.rb
|
188
|
-
- spec/dummy/db/data_migrations/20110913145838_setup_compass_ae_instance.erp_base_erp_svcs.rb
|
189
|
-
- spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb
|
190
|
-
- spec/dummy/db/data_migrations/20120109173616_create_download_capability_type.erp_tech_svcs.rb
|
191
|
-
- spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb
|
192
|
-
- spec/dummy/db/data_migrations/20121130212146_note_capabilities.erp_tech_svcs.rb
|
193
|
-
- spec/dummy/db/migrate/20121213233556_base_erp_services.erp_base_erp_svcs.rb
|
194
|
-
- spec/dummy/db/migrate/20121213233557_communication_events_services.erp_communication_events.rb
|
195
|
-
- spec/dummy/db/migrate/20121213233558_base_tech_services.erp_tech_svcs.rb
|
196
|
-
- spec/dummy/db/migrate/20121213233559_create_has_attribute_tables.erp_tech_svcs.rb
|
197
|
-
- spec/dummy/db/migrate/20130107180829_create_groups.erp_tech_svcs.rb
|
198
|
-
- spec/dummy/db/migrate/20130107180830_upgrade_security.erp_tech_svcs.rb
|
199
|
-
- spec/dummy/db/migrate/20130107180831_upgrade_security2.erp_tech_svcs.rb
|
200
|
-
- spec/dummy/db/schema.rb
|
201
|
-
- spec/dummy/db/spec.sqlite3
|
202
|
-
- spec/dummy/log/spec.log
|
203
150
|
- spec/dummy/public/404.html
|
204
151
|
- spec/dummy/public/422.html
|
205
152
|
- spec/dummy/public/500.html
|
@@ -1,9 +0,0 @@
|
|
1
|
-
// This is a manifest file that'll be compiled into including all the files listed below.
|
2
|
-
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
|
3
|
-
// be included in the compiled file accessible from http://example.com/assets/application.js
|
4
|
-
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
5
|
-
// the compiled file.
|
6
|
-
//
|
7
|
-
//= require jquery
|
8
|
-
//= require jquery_ujs
|
9
|
-
//= require_tree .
|
@@ -1,7 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* This is a manifest file that'll automatically include all the stylesheets available in this directory
|
3
|
-
* and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
|
4
|
-
* the top of the compiled file, but it's generally better to create a new file per style scope.
|
5
|
-
*= require_self
|
6
|
-
*= require_tree .
|
7
|
-
*/
|
@@ -1,14 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>ErpCommunicationEvents</title>
|
5
|
-
<%= stylesheet_link_tag "erp_communication_events/application" %>
|
6
|
-
<%= javascript_include_tag "erp_communication_events/application" %>
|
7
|
-
<%= csrf_meta_tags %>
|
8
|
-
</head>
|
9
|
-
<body>
|
10
|
-
|
11
|
-
<%= yield %>
|
12
|
-
|
13
|
-
</body>
|
14
|
-
</html>
|
data/spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
# This migration comes from erp_tech_svcs (originally 20110109173616)
|
2
|
-
class CreateCapabilityScopeTypes
|
3
|
-
|
4
|
-
def self.up
|
5
|
-
CapabilityType.create(:internal_identifier => 'download', :description => 'Download') if CapabilityType.where("internal_identifier = 'download'").first.nil?
|
6
|
-
|
7
|
-
ScopeType.create(:description => 'Instance', :internal_identifier => 'instance') if ScopeType.where("internal_identifier = 'instance'").first.nil?
|
8
|
-
ScopeType.create(:description => 'Class', :internal_identifier => 'class') if ScopeType.where("internal_identifier = 'class'").first.nil?
|
9
|
-
ScopeType.create(:description => 'Query', :internal_identifier => 'query') if ScopeType.where("internal_identifier = 'query'").first.nil?
|
10
|
-
end
|
11
|
-
|
12
|
-
def self.down
|
13
|
-
end
|
14
|
-
|
15
|
-
end
|
@@ -1,12 +0,0 @@
|
|
1
|
-
# This migration comes from erp_base_erp_svcs (originally 20110525001935)
|
2
|
-
class AddUsdCurrency
|
3
|
-
|
4
|
-
def self.up
|
5
|
-
Currency.create(:name => 'US Dollar', :internal_identifier => 'USD', :major_unit_symbol => "$")
|
6
|
-
end
|
7
|
-
|
8
|
-
def self.down
|
9
|
-
Currency.usd.destroy
|
10
|
-
end
|
11
|
-
|
12
|
-
end
|
@@ -1,19 +0,0 @@
|
|
1
|
-
# This migration comes from erp_base_erp_svcs (originally 20110609150135)
|
2
|
-
require 'yaml'
|
3
|
-
|
4
|
-
class AddIsoCodes
|
5
|
-
|
6
|
-
def self.up
|
7
|
-
#find the erp_base_erp_svcs engine
|
8
|
-
engine_path = Rails::Application::Railties.engines.find{|item| item.engine_name == 'erp_base_erp_svcs'}.config.root.to_s
|
9
|
-
|
10
|
-
GeoCountry.load_from_file(File.join(engine_path,'db/data_sets/geo_countries.yml'))
|
11
|
-
GeoZone.load_from_file(File.join(engine_path,'db/data_sets/geo_zones.yml'))
|
12
|
-
end
|
13
|
-
|
14
|
-
def self.down
|
15
|
-
GeoCountry.delete_all
|
16
|
-
GeoZone.delete_all
|
17
|
-
end
|
18
|
-
|
19
|
-
end
|
@@ -1,16 +0,0 @@
|
|
1
|
-
# This migration comes from erp_tech_svcs (originally 20110802200222)
|
2
|
-
class ScheduleDeleteExpiredSessionsJob
|
3
|
-
|
4
|
-
def self.up
|
5
|
-
#insert data here
|
6
|
-
date = Date.tomorrow
|
7
|
-
start_time = DateTime.civil(date.year, date.month, date.day, 2, 0, 1, -(5.0/24.0))
|
8
|
-
|
9
|
-
ErpTechSvcs::Sessions::DeleteExpiredSessionsJob.schedule_job(start_time)
|
10
|
-
end
|
11
|
-
|
12
|
-
def self.down
|
13
|
-
#remove data here
|
14
|
-
end
|
15
|
-
|
16
|
-
end
|
@@ -1,22 +0,0 @@
|
|
1
|
-
# This migration comes from erp_tech_svcs (originally 20111111144706)
|
2
|
-
class SetupAuditLogTypes
|
3
|
-
|
4
|
-
def self.up
|
5
|
-
application_alt = AuditLogType.create(:description => 'Application', :internal_identifier => 'application')
|
6
|
-
|
7
|
-
[
|
8
|
-
{:description => 'Custom Message', :internal_identifier => 'custom_message'},
|
9
|
-
{:description => 'Successful Logout', :internal_identifier => 'successful_logout'},
|
10
|
-
{:description => 'Successful Login', :internal_identifier => 'successful_login'},
|
11
|
-
{:description => 'Accessed Area', :internal_identifier => 'accessed_area'},
|
12
|
-
{:description => 'Session Timeout', :internal_identifier => 'session_timeout'}
|
13
|
-
].each do |alt_hash|
|
14
|
-
AuditLogType.create(alt_hash).move_to_child_of(application_alt)
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
def self.down
|
19
|
-
AuditLogType.destroy_all
|
20
|
-
end
|
21
|
-
|
22
|
-
end
|
data/spec/dummy/db/data_migrations/20120109173616_create_download_capability_type.erp_tech_svcs.rb
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
# This migration comes from erp_tech_svcs (originally 20120109173616)
|
2
|
-
class CreateDownloadCapabilityType
|
3
|
-
|
4
|
-
def self.up
|
5
|
-
CapabilityType.create(:internal_identifier => 'download', :description => 'Download')
|
6
|
-
Role.create(:description => 'File Downloader', :internal_identifier => 'file_downloader')
|
7
|
-
end
|
8
|
-
|
9
|
-
def self.down
|
10
|
-
CapabilityType.where("internal_identifier = 'download'").first.destroy unless Role.where("internal_identifier = 'download'").first.nil?
|
11
|
-
Role.where("internal_identifier = 'file_downloader'").first.destroy unless Role.where("internal_identifier = 'file_downloader'").first.nil?
|
12
|
-
end
|
13
|
-
|
14
|
-
end
|
@@ -1,20 +0,0 @@
|
|
1
|
-
# This migration comes from erp_tech_svcs (originally 20121116155018)
|
2
|
-
class CreateGroupRelationshipAndRoleTypes
|
3
|
-
|
4
|
-
def self.up
|
5
|
-
#insert data here
|
6
|
-
to_role = RoleType.create(:description => 'Security Group', :internal_identifier => 'group')
|
7
|
-
from_role = RoleType.create(:description => 'Security Group Member', :internal_identifier => 'group_member')
|
8
|
-
RelationshipType.create(:description => 'Security Group Membership',
|
9
|
-
:name => 'Group Membership',
|
10
|
-
:internal_identifier => 'group_membership',
|
11
|
-
:valid_from_role => from_role,
|
12
|
-
:valid_to_role => to_role
|
13
|
-
)
|
14
|
-
end
|
15
|
-
|
16
|
-
def self.down
|
17
|
-
#remove data here
|
18
|
-
end
|
19
|
-
|
20
|
-
end
|