erp_communication_events 3.0.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. data/GPL-3-LICENSE +0 -0
  2. data/app/models/comm_evt_purpose.rb +0 -0
  3. data/app/models/comm_evt_purpose_type.rb +0 -0
  4. data/app/models/comm_evt_status.rb +0 -0
  5. data/app/models/communication_event.rb +5 -2
  6. data/app/models/extensions/email_address.rb +6 -0
  7. data/app/models/extensions/party.rb +0 -0
  8. data/app/models/extensions/phone_number.rb +6 -0
  9. data/app/models/extensions/postal_address.rb +6 -0
  10. data/app/observers/communication_event_observer.rb +7 -2
  11. data/app/observers/email_address_change_event_observer.rb +0 -0
  12. data/app/observers/phone_number_change_event_observer.rb +0 -0
  13. data/app/observers/postal_address_change_event_observer.rb +0 -0
  14. data/db/migrate/20080805000080_communication_events_services.rb +64 -38
  15. data/db/migrate/upgrade/20120203142414_add_external_id_to_comm_events.rb +13 -0
  16. data/db/migrate/upgrade/20120203203450_add_from_to_mechanism_to_cmm_evt.rb +33 -0
  17. data/lib/erp_communication_events/engine.rb +7 -1
  18. data/lib/erp_communication_events/version.rb +7 -1
  19. data/lib/erp_communication_events.rb +1 -0
  20. data/spec/dummy/Rakefile +0 -0
  21. data/spec/dummy/app/assets/javascripts/application.js +0 -0
  22. data/spec/dummy/app/assets/stylesheets/application.css +0 -0
  23. data/spec/dummy/app/controllers/application_controller.rb +0 -0
  24. data/spec/dummy/app/helpers/application_helper.rb +0 -0
  25. data/spec/dummy/app/views/layouts/application.html.erb +0 -0
  26. data/spec/dummy/config/application.rb +0 -0
  27. data/spec/dummy/config/boot.rb +0 -0
  28. data/spec/dummy/config/database.yml +0 -0
  29. data/spec/dummy/config/environment.rb +0 -0
  30. data/spec/dummy/config/environments/spec.rb +0 -0
  31. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -0
  32. data/spec/dummy/config/initializers/inflections.rb +0 -0
  33. data/spec/dummy/config/initializers/mime_types.rb +0 -0
  34. data/spec/dummy/config/initializers/secret_token.rb +0 -0
  35. data/spec/dummy/config/initializers/session_store.rb +0 -0
  36. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -0
  37. data/spec/dummy/config/locales/en.yml +0 -0
  38. data/spec/dummy/config/routes.rb +0 -0
  39. data/spec/dummy/config.ru +0 -0
  40. data/spec/dummy/public/404.html +0 -0
  41. data/spec/dummy/public/422.html +0 -0
  42. data/spec/dummy/public/500.html +0 -0
  43. data/spec/dummy/public/favicon.ico +0 -0
  44. data/spec/dummy/script/rails +0 -0
  45. data/spec/models/comm_evt_purpose_spec.rb +0 -0
  46. data/spec/models/comm_evt_purpose_type_spec.rb +0 -0
  47. data/spec/models/comm_evt_status_spec.rb +0 -0
  48. data/spec/models/comm_evt_status_type_spec.rb +0 -0
  49. data/spec/models/communication_event_spec.rb +0 -0
  50. metadata +65 -73
  51. data/app/models/comm_evt_status_type.rb +0 -3
  52. data/db/migrate/20080805000081_communication_events_services_indexes.rb +0 -25
data/GPL-3-LICENSE CHANGED
File without changes
File without changes
File without changes
File without changes
@@ -5,11 +5,14 @@ class CommunicationEvent < ActiveRecord::Base
5
5
 
6
6
  belongs_to :from_role , :class_name => 'RoleType', :foreign_key => 'role_type_id_from'
7
7
  belongs_to :to_role , :class_name => 'RoleType', :foreign_key => 'role_type_id_to'
8
-
9
- has_and_belongs_to_many :comm_evt_purpose_types,:join_table => 'comm_evt_purposes'
10
8
 
11
9
  belongs_to :comm_evt_status, :class_name => 'CommEvtStatus', :foreign_key => 'status_type_id'
12
10
 
11
+ belongs_to :from_contact_mechanism, :polymorphic => true
12
+ belongs_to :to_contact_mechanism, :polymorphic => true
13
+
14
+ has_and_belongs_to_many :comm_evt_purpose_types, :join_table => 'comm_evt_purposes'
15
+
13
16
  validates_presence_of :from_role
14
17
  validates_presence_of :from_party
15
18
 
@@ -0,0 +1,6 @@
1
+ EmailAddress.class_eval do
2
+
3
+ has_many :from_communication_events, :class_name => 'CommunicationEvent', :as => 'from_contact_mechanism'
4
+ has_many :to_communication_events, :class_name => 'CommunicationEvent', :as => 'to_contact_mechanism'
5
+
6
+ end
File without changes
@@ -0,0 +1,6 @@
1
+ PhoneNumber.class_eval do
2
+
3
+ has_many :from_communication_events, :class_name => 'CommunicationEvent', :as => 'from_contact_mechanism'
4
+ has_many :to_communication_events, :class_name => 'CommunicationEvent', :as => 'to_contact_mechanism'
5
+
6
+ end
@@ -0,0 +1,6 @@
1
+ PostalAddress.class_eval do
2
+
3
+ has_many :from_communication_events, :class_name => 'CommunicationEvent', :as => 'from_contact_mechanism'
4
+ has_many :to_communication_events, :class_name => 'CommunicationEvent', :as => 'to_contact_mechanism'
5
+
6
+ end
@@ -1,9 +1,14 @@
1
1
  class CommunicationEventObserver < ActiveRecord::Observer
2
2
 
3
3
  def after_commit_on_create(comm_event)
4
- ErpTechSvcs::CompassLogger.debug "CommunicationEventObserver - calling after_commit_on_create: outside transaction - #{comm_event.connection.outside_transaction?}"
4
+ Rails.logger.debug "CommunicationEventObserver - calling after_commit_on_create: outside transaction - #{comm_event.connection.outside_transaction?}"
5
5
  unless comm_event.comm_evt_purpose_types.first.description.include?("Change Request")
6
- CommunicationEventMailer.deliver_contact_notification(comm_event)
6
+ begin
7
+ CommunicationEventMailer.contact_notification(comm_event).deliver
8
+ rescue Exception => e
9
+ system_user = Party.find_by_description('Compass AE')
10
+ AuditLog.custom_application_log_message(system_user, e)
11
+ end
7
12
  end
8
13
  end
9
14
 
File without changes
File without changes
@@ -4,74 +4,100 @@ class CommunicationEventsServices < ActiveRecord::Migration
4
4
  # Create communications_events
5
5
  unless table_exists?(:communication_events)
6
6
  create_table :communication_events do |t|
7
- t.column :short_description, :string
8
- t.column :status_type_id, :integer
9
- t.column :case_id, :integer
10
- t.column :contact_mechanism_type, :string
11
- t.column :role_type_id_from, :integer
12
- t.column :role_type_id_to, :integer
13
- t.column :party_id_from, :integer
14
- t.column :party_id_to, :integer
15
- t.column :date_time_started, :datetime
16
- t.column :date_time_ended, :datetime
17
- t.column :notes, :string
7
+ t.integer :from_contact_mechanism_id
8
+ t.string :from_contact_mechanism_type
9
+
10
+ t.integer :to_contact_mechanism_id
11
+ t.string :to_contact_mechanism_type
12
+
13
+ t.integer :role_type_id_from
14
+ t.integer :role_type_id_to
15
+
16
+ t.integer :party_id_from
17
+ t.integer :party_id_to
18
+
19
+ t.string :short_description
20
+ t.integer :status_type_id
21
+ t.integer :case_id
22
+ t.datetime :date_time_started
23
+ t.datetime :date_time_ended
24
+ t.string :notes
25
+ t.string :external_identifier
26
+ t.string :external_id_source
27
+
18
28
  t.timestamps
19
29
  end
30
+
31
+ add_index :communication_events, :status_type_id
32
+ add_index :communication_events, :case_id
33
+ add_index :communication_events, :role_type_id_from
34
+ add_index :communication_events, :role_type_id_to
35
+ add_index :communication_events, :party_id_from
36
+ add_index :communication_events, :party_id_to
37
+ add_index :communication_events, [:to_contact_mechanism_id, :to_contact_mechanism_type], :name => 'to_contact_mech_idx'
38
+ add_index :communication_events, [:from_contact_mechanism_id, :from_contact_mechanism_type], :name => 'from_contact_mech_idx'
20
39
  end
21
40
 
22
41
  # Create comm_evt_purpose_types
23
42
  unless table_exists?(:comm_evt_purpose_types)
24
43
  create_table :comm_evt_purpose_types do |t|
25
- t.column :parent_id, :integer
26
- t.column :lft, :integer
27
- t.column :rgt, :integer
44
+ #awesome nested set columns
45
+ t.integer :parent_id
46
+ t.integer :lft
47
+ t.integer :rgt
48
+
28
49
  #custom columns go here
29
- t.column :description, :string
30
- t.column :comments, :string
31
- t.column :internal_identifier, :string
32
- t.column :external_identifier, :string
33
- t.column :external_id_source, :string
50
+ t.string :description
51
+ t.string :comments
52
+ t.string :internal_identifier
53
+ t.string :external_identifier
54
+ t.string :external_id_source
55
+
34
56
  t.timestamps
35
57
  end
58
+
59
+ add_index :comm_evt_purpose_types, :parent_id
36
60
  end
37
61
 
38
62
  # Create comm_evt_purposes
39
63
  unless table_exists?(:comm_evt_purposes)
40
64
  create_table :comm_evt_purposes, :id => false do |t|
41
- t.column :communication_event_id, :integer
42
- t.column :comm_evt_purpose_type_id, :integer
65
+ t.integer :communication_event_id
66
+ t.integer :comm_evt_purpose_type_id
67
+
43
68
  t.timestamps
44
69
  end
70
+
71
+ add_index :comm_evt_purposes, :communication_event_id
72
+ add_index :comm_evt_purposes, :comm_evt_purpose_type_id
45
73
  end
46
74
 
47
75
  # Create comm_evt_statuses
48
76
  unless table_exists?(:comm_evt_statuses)
49
77
  create_table :comm_evt_statuses do |t|
50
- t.column :parent_id, :integer
51
- t.column :lft, :integer
52
- t.column :rgt, :integer
53
- #custom columns go here
54
- t.column :description, :string
55
- t.column :comments, :string
56
- t.column :internal_identifier, :string
57
- t.column :external_identifier, :string
58
- t.column :external_id_source, :string
78
+ #awesome nested set columns
79
+ t.integer :parent_id
80
+ t.integer :lft
81
+ t.integer :rgt
82
+
83
+ #custom columns go here
84
+ t.string :description
85
+ t.string :comments
86
+ t.string :internal_identifier
87
+ t.string :external_identifier
88
+ t.string :external_id_source
89
+
59
90
  t.timestamps
60
91
  end
61
- end
62
-
63
- # Create comm_evt_status_types
64
- unless table_exists?(:comm_evt_status_types)
65
- create_table :comm_evt_status_types do |t|
66
- t.timestamps
67
- end
92
+
93
+ add_index :comm_evt_statuses, :parent_id
68
94
  end
69
95
 
70
96
  end
71
97
 
72
98
  def self.down
73
99
  [
74
- :comm_evt_status_types, :comm_evt_statuses, :comm_evt_purposes,
100
+ :comm_evt_statuses, :comm_evt_purposes,
75
101
  :comm_evt_purpose_types, :communication_events
76
102
  ].each do |tbl|
77
103
  if table_exists?(tbl)
@@ -0,0 +1,13 @@
1
+ class AddExternalIdToCommEvents < ActiveRecord::Migration
2
+ def up
3
+ unless column_exists? :communication_events, :external_identifier
4
+ add_column :communication_events, :external_identifier, :string
5
+ end
6
+ end
7
+
8
+ def down
9
+ if column_exists? :communication_events, :external_identifier
10
+ remove_column :communication_events, :external_identifier
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,33 @@
1
+ class AddFromToNumbersToCmmEvt < ActiveRecord::Migration
2
+ def up
3
+ unless column_exists? :communication_events, :from_contact_mechanism_id
4
+ add_column :communication_events, :from_contact_mechanism_id, :integer
5
+ add_column :communication_events, :from_contact_mechanism_type, :string
6
+
7
+ add_index :communication_events, [:from_contact_mechanism_id, :from_contact_mechanism_type], :name => 'from_contact_mech_idx'
8
+ end
9
+
10
+ unless column_exists? :communication_events, :to_contact_mechanism_id
11
+ add_column :communication_events, :to_contact_mechanism_id, :integer
12
+ add_column :communication_events, :to_contact_mechanism_type, :string
13
+
14
+ add_index :communication_events, [:to_contact_mechanism_id, :to_contact_mechanism_type], :name => 'to_contact_mech_idx'
15
+ end
16
+ end
17
+
18
+ def down
19
+ if column_exists? :communication_events, :from_contact_mechanism_id
20
+ remove_column :communication_events, :from_contact_mechanism_id
21
+ remove_column :communication_events, :from_contact_mechanism_type
22
+
23
+ remove_index :communication_events, 'from_contact_mech_idx'
24
+ end
25
+
26
+ if column_exists? :communication_events, :to_contact_mechanism_id
27
+ remove_column :communication_events, :to_contact_mechanism_id
28
+ remove_column :communication_events, :to_contact_mechanism_type
29
+
30
+ remove_index :communication_events, 'to_contact_mech_idx'
31
+ end
32
+ end
33
+ end
@@ -8,6 +8,12 @@ module ErpCommunicationEvents
8
8
  config.active_record.observers << :email_address_change_event_observer
9
9
  config.active_record.observers << :phone_number_change_event_observer
10
10
  config.active_record.observers << :phone_number_change_event_observer
11
-
11
+
12
+ #TODO
13
+ #this will be removed once rails 3.2 adds the ability to set the order of engine loading
14
+ engine = self
15
+ config.to_prepare do
16
+ ErpBaseErpSvcs.register_compass_ae_engine(engine)
17
+ end
12
18
  end
13
19
  end
@@ -1,3 +1,9 @@
1
1
  module ErpCommunicationEvents
2
- VERSION = "3.0.0"
2
+ module VERSION #:nodoc:
3
+ MAJOR = 3
4
+ MINOR = 0
5
+ TINY = 1
6
+
7
+ STRING = [MAJOR, MINOR, TINY].compact.join('.')
8
+ end
3
9
  end
@@ -1,3 +1,4 @@
1
+ require "erp_communication_events/version"
1
2
  require "erp_communication_events/engine"
2
3
 
3
4
  module ErpCommunicationEvents
data/spec/dummy/Rakefile CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
data/spec/dummy/config.ru CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: erp_communication_events
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,41 +9,30 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-06 00:00:00.000000000Z
12
+ date: 2012-05-17 00:00:00.000000000 Z
13
13
  dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: erp_base_erp_svcs
16
- requirement: &2161001540 !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
22
- type: :runtime
23
- prerelease: false
24
- version_requirements: *2161001540
25
14
  - !ruby/object:Gem::Dependency
26
15
  name: erp_tech_svcs
27
- requirement: &2161001020 !ruby/object:Gem::Requirement
16
+ requirement: &69537110 !ruby/object:Gem::Requirement
28
17
  none: false
29
18
  requirements:
30
- - - ! '>='
19
+ - - =
31
20
  - !ruby/object:Gem::Version
32
- version: '0'
21
+ version: 3.0.1
33
22
  type: :runtime
34
23
  prerelease: false
35
- version_requirements: *2161001020
24
+ version_requirements: *69537110
36
25
  - !ruby/object:Gem::Dependency
37
26
  name: erp_dev_svcs
38
- requirement: &2161000200 !ruby/object:Gem::Requirement
27
+ requirement: &69559550 !ruby/object:Gem::Requirement
39
28
  none: false
40
29
  requirements:
41
- - - ! '>='
30
+ - - =
42
31
  - !ruby/object:Gem::Version
43
- version: '0'
32
+ version: 3.0.1
44
33
  type: :development
45
34
  prerelease: false
46
- version_requirements: *2161000200
35
+ version_requirements: *69559550
47
36
  description: ErpCommunicationEvents add models and services to CompassAE's ERP core
48
37
  to handle contacts between Business Parties. For example, tracking inbound or outbound
49
38
  emails, customer contact events, support requests, etc. These models would be used
@@ -56,24 +45,27 @@ executables: []
56
45
  extensions: []
57
46
  extra_rdoc_files: []
58
47
  files:
59
- - app/assets/javascripts/erp_communication_events/application.js
60
48
  - app/assets/stylesheets/erp_communication_events/application.css
61
- - app/controllers/erp_communication_events/application_controller.rb
62
- - app/helpers/erp_communication_events/application_helper.rb
49
+ - app/assets/javascripts/erp_communication_events/application.js
50
+ - app/views/layouts/erp_communication_events/application.html.erb
63
51
  - app/models/comm_evt_purpose.rb
64
52
  - app/models/comm_evt_purpose_type.rb
65
- - app/models/comm_evt_status.rb
66
- - app/models/comm_evt_status_type.rb
67
53
  - app/models/communication_event.rb
54
+ - app/models/comm_evt_status.rb
55
+ - app/models/extensions/postal_address.rb
68
56
  - app/models/extensions/party.rb
57
+ - app/models/extensions/email_address.rb
58
+ - app/models/extensions/phone_number.rb
69
59
  - app/observers/communication_event_observer.rb
60
+ - app/observers/postal_address_change_event_observer.rb
70
61
  - app/observers/email_address_change_event_observer.rb
71
62
  - app/observers/phone_number_change_event_observer.rb
72
- - app/observers/postal_address_change_event_observer.rb
73
- - app/views/layouts/erp_communication_events/application.html.erb
63
+ - app/helpers/erp_communication_events/application_helper.rb
64
+ - app/controllers/erp_communication_events/application_controller.rb
74
65
  - config/routes.rb
75
66
  - db/migrate/20080805000080_communication_events_services.rb
76
- - db/migrate/20080805000081_communication_events_services_indexes.rb
67
+ - db/migrate/upgrade/20120203142414_add_external_id_to_comm_events.rb
68
+ - db/migrate/upgrade/20120203203450_add_from_to_mechanism_to_cmm_evt.rb
77
69
  - lib/erp_communication_events/engine.rb
78
70
  - lib/erp_communication_events/version.rb
79
71
  - lib/erp_communication_events.rb
@@ -81,37 +73,37 @@ files:
81
73
  - GPL-3-LICENSE
82
74
  - Rakefile
83
75
  - README.rdoc
84
- - spec/dummy/app/assets/javascripts/application.js
76
+ - spec/spec_helper.rb
77
+ - spec/models/comm_evt_status_type_spec.rb
78
+ - spec/models/comm_evt_status_spec.rb
79
+ - spec/models/communication_event_spec.rb
80
+ - spec/models/comm_evt_purpose_spec.rb
81
+ - spec/models/comm_evt_purpose_type_spec.rb
82
+ - spec/dummy/public/422.html
83
+ - spec/dummy/public/404.html
84
+ - spec/dummy/public/500.html
85
+ - spec/dummy/public/favicon.ico
86
+ - spec/dummy/config.ru
85
87
  - spec/dummy/app/assets/stylesheets/application.css
86
- - spec/dummy/app/controllers/application_controller.rb
87
- - spec/dummy/app/helpers/application_helper.rb
88
+ - spec/dummy/app/assets/javascripts/application.js
88
89
  - spec/dummy/app/views/layouts/application.html.erb
89
- - spec/dummy/config/application.rb
90
+ - spec/dummy/app/helpers/application_helper.rb
91
+ - spec/dummy/app/controllers/application_controller.rb
92
+ - spec/dummy/config/routes.rb
93
+ - spec/dummy/config/locales/en.yml
90
94
  - spec/dummy/config/boot.rb
91
- - spec/dummy/config/database.yml
92
- - spec/dummy/config/environment.rb
95
+ - spec/dummy/config/application.rb
93
96
  - spec/dummy/config/environments/spec.rb
94
- - spec/dummy/config/initializers/backtrace_silencers.rb
95
- - spec/dummy/config/initializers/inflections.rb
96
97
  - spec/dummy/config/initializers/mime_types.rb
97
- - spec/dummy/config/initializers/secret_token.rb
98
98
  - spec/dummy/config/initializers/session_store.rb
99
+ - spec/dummy/config/initializers/backtrace_silencers.rb
99
100
  - spec/dummy/config/initializers/wrap_parameters.rb
100
- - spec/dummy/config/locales/en.yml
101
- - spec/dummy/config/routes.rb
102
- - spec/dummy/config.ru
103
- - spec/dummy/public/404.html
104
- - spec/dummy/public/422.html
105
- - spec/dummy/public/500.html
106
- - spec/dummy/public/favicon.ico
101
+ - spec/dummy/config/initializers/inflections.rb
102
+ - spec/dummy/config/initializers/secret_token.rb
103
+ - spec/dummy/config/environment.rb
104
+ - spec/dummy/config/database.yml
107
105
  - spec/dummy/Rakefile
108
106
  - spec/dummy/script/rails
109
- - spec/models/comm_evt_purpose_spec.rb
110
- - spec/models/comm_evt_purpose_type_spec.rb
111
- - spec/models/comm_evt_status_spec.rb
112
- - spec/models/comm_evt_status_type_spec.rb
113
- - spec/models/communication_event_spec.rb
114
- - spec/spec_helper.rb
115
107
  homepage: http://development.compassagile.com
116
108
  licenses: []
117
109
  post_install_message:
@@ -138,34 +130,34 @@ specification_version: 3
138
130
  summary: ErpCommunicationEvents add models and services to CompassAE's ERP core to
139
131
  handle contacts between Business Parties.
140
132
  test_files:
141
- - spec/dummy/app/assets/javascripts/application.js
133
+ - spec/spec_helper.rb
134
+ - spec/models/comm_evt_status_type_spec.rb
135
+ - spec/models/comm_evt_status_spec.rb
136
+ - spec/models/communication_event_spec.rb
137
+ - spec/models/comm_evt_purpose_spec.rb
138
+ - spec/models/comm_evt_purpose_type_spec.rb
139
+ - spec/dummy/public/422.html
140
+ - spec/dummy/public/404.html
141
+ - spec/dummy/public/500.html
142
+ - spec/dummy/public/favicon.ico
143
+ - spec/dummy/config.ru
142
144
  - spec/dummy/app/assets/stylesheets/application.css
143
- - spec/dummy/app/controllers/application_controller.rb
144
- - spec/dummy/app/helpers/application_helper.rb
145
+ - spec/dummy/app/assets/javascripts/application.js
145
146
  - spec/dummy/app/views/layouts/application.html.erb
146
- - spec/dummy/config/application.rb
147
+ - spec/dummy/app/helpers/application_helper.rb
148
+ - spec/dummy/app/controllers/application_controller.rb
149
+ - spec/dummy/config/routes.rb
150
+ - spec/dummy/config/locales/en.yml
147
151
  - spec/dummy/config/boot.rb
148
- - spec/dummy/config/database.yml
149
- - spec/dummy/config/environment.rb
152
+ - spec/dummy/config/application.rb
150
153
  - spec/dummy/config/environments/spec.rb
151
- - spec/dummy/config/initializers/backtrace_silencers.rb
152
- - spec/dummy/config/initializers/inflections.rb
153
154
  - spec/dummy/config/initializers/mime_types.rb
154
- - spec/dummy/config/initializers/secret_token.rb
155
155
  - spec/dummy/config/initializers/session_store.rb
156
+ - spec/dummy/config/initializers/backtrace_silencers.rb
156
157
  - spec/dummy/config/initializers/wrap_parameters.rb
157
- - spec/dummy/config/locales/en.yml
158
- - spec/dummy/config/routes.rb
159
- - spec/dummy/config.ru
160
- - spec/dummy/public/404.html
161
- - spec/dummy/public/422.html
162
- - spec/dummy/public/500.html
163
- - spec/dummy/public/favicon.ico
158
+ - spec/dummy/config/initializers/inflections.rb
159
+ - spec/dummy/config/initializers/secret_token.rb
160
+ - spec/dummy/config/environment.rb
161
+ - spec/dummy/config/database.yml
164
162
  - spec/dummy/Rakefile
165
163
  - spec/dummy/script/rails
166
- - spec/models/comm_evt_purpose_spec.rb
167
- - spec/models/comm_evt_purpose_type_spec.rb
168
- - spec/models/comm_evt_status_spec.rb
169
- - spec/models/comm_evt_status_type_spec.rb
170
- - spec/models/communication_event_spec.rb
171
- - spec/spec_helper.rb
@@ -1,3 +0,0 @@
1
- class CommEvtStatusType < ActiveRecord::Base
2
-
3
- end
@@ -1,25 +0,0 @@
1
- class CommunicationEventsServicesIndexes < ActiveRecord::Migration
2
- def self.up
3
- add_index :communication_events, :status_type_id
4
- add_index :communication_events, :case_id
5
-
6
- add_index :comm_evt_purpose_types, :parent_id
7
-
8
- add_index :comm_evt_purposes, :communication_event_id
9
- add_index :comm_evt_purposes, :comm_evt_purpose_type_id
10
-
11
- add_index :comm_evt_statuses, :parent_id
12
- end
13
-
14
- def self.down
15
- remove_index :communication_events, :status_type_id
16
- remove_index :communication_events, :case_id
17
-
18
- remove_index :comm_evt_purpose_types, :parent_id
19
-
20
- remove_index :comm_evt_purposes, :communication_event_id
21
- remove_index :comm_evt_purposes, :comm_evt_purpose_type_id
22
-
23
- remove_index :comm_evt_statuses, :parent_id
24
- end
25
- end