erp_txns_and_accts 3.0.6 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. data/app/models/base_txn_context.rb +1 -0
  2. data/app/models/biz_acct_txn_task.rb +1 -0
  3. data/app/models/biz_txn_acct_party_role.rb +1 -0
  4. data/app/models/biz_txn_acct_pty_rtype.rb +2 -0
  5. data/app/models/biz_txn_acct_rel_type.rb +1 -1
  6. data/app/models/biz_txn_acct_relationship.rb +1 -0
  7. data/app/models/biz_txn_acct_root.rb +14 -14
  8. data/app/models/biz_txn_acct_status.rb +1 -1
  9. data/app/models/biz_txn_acct_status_type.rb +1 -1
  10. data/app/models/biz_txn_acct_type.rb +2 -0
  11. data/app/models/biz_txn_agreement_role.rb +1 -0
  12. data/app/models/biz_txn_agreement_role_type.rb +2 -0
  13. data/app/models/biz_txn_event.rb +1 -0
  14. data/app/models/biz_txn_event_desc.rb +1 -0
  15. data/app/models/biz_txn_party_role.rb +1 -0
  16. data/app/models/biz_txn_party_role_type.rb +2 -0
  17. data/app/models/biz_txn_rel_type.rb +2 -0
  18. data/app/models/biz_txn_relationship.rb +1 -0
  19. data/app/models/biz_txn_status.rb +1 -1
  20. data/app/models/biz_txn_task.rb +1 -1
  21. data/app/models/biz_txn_task_type.rb +1 -1
  22. data/app/models/biz_txn_type.rb +1 -0
  23. data/app/models/financial_txn.rb +2 -0
  24. data/app/models/financial_txn_account.rb +2 -0
  25. data/lib/erp_txns_and_accts.rb +2 -0
  26. data/lib/erp_txns_and_accts/extensions/active_record/acts_as_biz_txn_account.rb +8 -9
  27. data/lib/erp_txns_and_accts/version.rb +2 -2
  28. data/spec/dummy/config/application.rb +6 -0
  29. data/spec/dummy/config/environments/spec.rb +3 -0
  30. data/spec/dummy/db/data_migrations/20101011152441_payment_gateway_actions.erp_commerce.rb +28 -0
  31. data/spec/dummy/db/data_migrations/20101014142230_financial_txn_types.erp_txns_and_accts.rb +16 -0
  32. data/spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb +15 -0
  33. data/spec/dummy/db/data_migrations/20110324010232_product_role_types.erp_products.rb +24 -0
  34. data/spec/dummy/db/data_migrations/20110525001935_add_usd_currency.erp_base_erp_svcs.rb +12 -0
  35. data/spec/dummy/db/data_migrations/20110527160807_add_default_prod_avail_types.erp_products.rb +27 -0
  36. data/spec/dummy/db/data_migrations/20110605231556_create_order_party_roles.erp_orders.rb +24 -0
  37. data/spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb +19 -0
  38. data/spec/dummy/db/data_migrations/20110728201729_erp_app_setup.erp_app.rb +252 -0
  39. data/spec/dummy/db/data_migrations/20110728201730_create_desktop_app_product_manager.erp_products.rb +26 -0
  40. data/spec/dummy/db/data_migrations/20110728201731_create_desktop_app_order_manager.erp_orders.rb +26 -0
  41. data/spec/dummy/db/data_migrations/20110728201732_create_organizer_app_order_management.erp_orders.rb +15 -0
  42. data/spec/dummy/db/data_migrations/20110728201733_update_preferences.erp_app.rb +53 -0
  43. data/spec/dummy/db/data_migrations/20110802200222_schedule_delete_expired_sessions_job.erp_tech_svcs.rb +16 -0
  44. data/spec/dummy/db/data_migrations/20110816161238_create_desktop_app_audit_log_viewer.erp_app.rb +21 -0
  45. data/spec/dummy/db/data_migrations/20110817160743_add_file_manager_application.erp_app.rb +32 -0
  46. data/spec/dummy/db/data_migrations/20110913145838_setup_compass_ae_instance.erp_base_erp_svcs.rb +12 -0
  47. data/spec/dummy/db/data_migrations/20111108183739_add_default_capabilities.erp_app.rb +23 -0
  48. data/spec/dummy/db/data_migrations/20111108183740_add_new_contact_widgets.erp_app.rb +42 -0
  49. data/spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb +22 -0
  50. data/spec/dummy/db/data_migrations/20120109173616_create_download_capability_type.erp_tech_svcs.rb +14 -0
  51. data/spec/dummy/db/data_migrations/20120229160222_add_userinfo_widget.erp_app.rb +29 -0
  52. data/spec/dummy/db/data_migrations/20120229174343_add_orders_widget.erp_orders.rb +29 -0
  53. data/spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb +11 -0
  54. data/spec/dummy/db/data_migrations/20120411180756_create_user_management_mobile_application.erp_app.rb +19 -0
  55. data/spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb +23 -0
  56. data/spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb +20 -0
  57. data/spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb +16 -0
  58. data/spec/dummy/db/data_migrations/20121130212146_note_capabilities.erp_tech_svcs.rb +24 -0
  59. data/spec/dummy/db/data_migrations/20121218175028_create_security_management_desktop_application.erp_app.rb +23 -0
  60. data/spec/dummy/db/migrate/20130107214858_base_erp_services.erp_base_erp_svcs.rb +461 -0
  61. data/spec/dummy/db/migrate/20130107214859_base_txns_and_accts.erp_txns_and_accts.rb +364 -0
  62. data/spec/dummy/db/migrate/20130107214860_base_tech_services.erp_tech_svcs.rb +271 -0
  63. data/spec/dummy/db/migrate/20130107214861_create_has_attribute_tables.erp_tech_svcs.rb +39 -0
  64. data/spec/dummy/db/migrate/20130107214862_create_groups.erp_tech_svcs.rb +19 -0
  65. data/spec/dummy/db/migrate/20130107214863_upgrade_security.erp_tech_svcs.rb +54 -0
  66. data/spec/dummy/db/migrate/20130107214864_upgrade_security2.erp_tech_svcs.rb +270 -0
  67. data/spec/dummy/db/migrate/20130107214865_agreements_services.erp_agreements.rb +160 -0
  68. data/spec/dummy/db/migrate/20130107214866_agreements_services_indexes.erp_agreements.rb +52 -0
  69. data/spec/dummy/db/migrate/20130107214867_base_app_framework.erp_app.rb +276 -0
  70. data/spec/dummy/db/migrate/20130107214868_base_products.erp_products.rb +234 -0
  71. data/spec/dummy/db/migrate/20130107214869_base_products_indexes.erp_products.rb +59 -0
  72. data/spec/dummy/db/migrate/20130107214870_base_orders.erp_orders.rb +178 -0
  73. data/spec/dummy/db/migrate/20130107214871_erp_commerce_base.erp_commerce.rb +442 -0
  74. data/spec/dummy/db/schema.rb +1821 -0
  75. data/spec/dummy/db/spec.sqlite3 +0 -0
  76. data/spec/dummy/log/spec.log +12768 -0
  77. data/spec/spec_helper.rb +11 -3
  78. metadata +106 -11
  79. data/db/migrate/20110609230152_update_financial_txns.rb +0 -21
  80. data/db/migrate/20130408195119_add_biz_txn_acct_type_id_to_biz_txn_acct_root.rb +0 -5
  81. data/db/migrate/upgrade/20120118135738_add_type_column_to_biz_txn_acct_root.rb +0 -7
  82. data/db/migrate/upgrade/20120118143602_add_apply_date_to_financial_txn.rb +0 -7
  83. data/db/migrate/upgrade/20120515155000_update_financial_txn_acct_due_date.rb +0 -9
data/spec/spec_helper.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'spork'
2
2
  require 'rake'
3
+ require 'factory_girl'
3
4
 
4
5
  Spork.prefork do
5
6
  # Loading more in this block will cause your tests to run faster. However,
@@ -31,6 +32,7 @@ Spork.prefork do
31
32
 
32
33
  RSpec.configure do |config|
33
34
  config.use_transactional_fixtures = true
35
+ config.include FactoryGirl::Syntax::Methods
34
36
  config.include Sorcery::TestHelpers::Rails
35
37
  config.include ErpDevSvcs
36
38
  config.include ErpDevSvcs::ControllerSupport, :type => :controller
@@ -40,12 +42,17 @@ end
40
42
  Spork.each_run do
41
43
  #We have to execute the migrations from dummy app directory
42
44
  Dir.chdir DUMMY_APP_ROOT
43
- `rake db:drop`
45
+ `rake db:drop RAILS_ENV=spec`
44
46
  Dir.chdir ENGINE_RAILS_ROOT
45
47
 
46
- #We have to execute the migrations from dummy app directory
48
+ #We have to execute the migratiapp:compass_ae:install:data_migrationsons from dummy app directory
47
49
  Dir.chdir DUMMY_APP_ROOT
48
- `rake db:migrate`
50
+
51
+
52
+ `rake compass_ae:install:migrations RAILS_ENV=spec`
53
+ `rake compass_ae:install:data_migrations RAILS_ENV=spec`
54
+ `rake db:migrate RAILS_ENV=spec`
55
+ `rake db:migrate_data RAILS_ENV=spec`
49
56
  Dir.chdir ENGINE_RAILS_ROOT
50
57
 
51
58
  ErpDevSvcs::FactorySupport.load_engine_factories
@@ -57,4 +64,5 @@ Spork.each_run do
57
64
  #Need to explictly load the files in lib/ until we figure out how to
58
65
  #get rails to autoload them for spec like it used to...
59
66
  Dir[File.join(ENGINE_RAILS_ROOT, "lib/**/*.rb")].each {|f| load f}
67
+ Dir[File.join(ENGINE_RAILS_ROOT, "app/models/extensions/**/*.rb")].each {|f| load f}
60
68
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: erp_txns_and_accts
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.6
4
+ version: 3.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-10 00:00:00.000000000 Z
12
+ date: 2013-01-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: erp_agreements
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: '3.0'
21
+ version: '3.1'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: '3.0'
29
+ version: '3.1'
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: erp_dev_svcs
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -34,7 +34,7 @@ dependencies:
34
34
  requirements:
35
35
  - - ~>
36
36
  - !ruby/object:Gem::Version
37
- version: '3.0'
37
+ version: '3.1'
38
38
  type: :development
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
@@ -42,7 +42,7 @@ dependencies:
42
42
  requirements:
43
43
  - - ~>
44
44
  - !ruby/object:Gem::Version
45
- version: '3.0'
45
+ version: '3.1'
46
46
  description: ! 'The Transactions and Accounts Engine implements the root classes for
47
47
  adding business transactions and accounts to parties. The key marker interface classes
48
48
  here are BizTxnEvent, which represents a common interface for all manner of management
@@ -89,11 +89,6 @@ files:
89
89
  - config/routes.rb
90
90
  - db/data_migrations/20101014142230_financial_txn_types.rb
91
91
  - db/migrate/20080805000030_base_txns_and_accts.rb
92
- - db/migrate/20110609230152_update_financial_txns.rb
93
- - db/migrate/20130408195119_add_biz_txn_acct_type_id_to_biz_txn_acct_root.rb
94
- - db/migrate/upgrade/20120118135738_add_type_column_to_biz_txn_acct_root.rb
95
- - db/migrate/upgrade/20120118143602_add_apply_date_to_financial_txn.rb
96
- - db/migrate/upgrade/20120515155000_update_financial_txn_acct_due_date.rb
97
92
  - lib/erp_txns_and_accts/delayed_jobs/payment_gateway_job.rb
98
93
  - lib/erp_txns_and_accts/engine.rb
99
94
  - lib/erp_txns_and_accts/extensions/active_record/acts_as_biz_txn_account.rb
@@ -125,6 +120,53 @@ files:
125
120
  - spec/dummy/config/locales/en.yml
126
121
  - spec/dummy/config/routes.rb
127
122
  - spec/dummy/config.ru
123
+ - spec/dummy/db/data_migrations/20101011152441_payment_gateway_actions.erp_commerce.rb
124
+ - spec/dummy/db/data_migrations/20101014142230_financial_txn_types.erp_txns_and_accts.rb
125
+ - spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb
126
+ - spec/dummy/db/data_migrations/20110324010232_product_role_types.erp_products.rb
127
+ - spec/dummy/db/data_migrations/20110525001935_add_usd_currency.erp_base_erp_svcs.rb
128
+ - spec/dummy/db/data_migrations/20110527160807_add_default_prod_avail_types.erp_products.rb
129
+ - spec/dummy/db/data_migrations/20110605231556_create_order_party_roles.erp_orders.rb
130
+ - spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb
131
+ - spec/dummy/db/data_migrations/20110728201729_erp_app_setup.erp_app.rb
132
+ - spec/dummy/db/data_migrations/20110728201730_create_desktop_app_product_manager.erp_products.rb
133
+ - spec/dummy/db/data_migrations/20110728201731_create_desktop_app_order_manager.erp_orders.rb
134
+ - spec/dummy/db/data_migrations/20110728201732_create_organizer_app_order_management.erp_orders.rb
135
+ - spec/dummy/db/data_migrations/20110728201733_update_preferences.erp_app.rb
136
+ - spec/dummy/db/data_migrations/20110802200222_schedule_delete_expired_sessions_job.erp_tech_svcs.rb
137
+ - spec/dummy/db/data_migrations/20110816161238_create_desktop_app_audit_log_viewer.erp_app.rb
138
+ - spec/dummy/db/data_migrations/20110817160743_add_file_manager_application.erp_app.rb
139
+ - spec/dummy/db/data_migrations/20110913145838_setup_compass_ae_instance.erp_base_erp_svcs.rb
140
+ - spec/dummy/db/data_migrations/20111108183739_add_default_capabilities.erp_app.rb
141
+ - spec/dummy/db/data_migrations/20111108183740_add_new_contact_widgets.erp_app.rb
142
+ - spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb
143
+ - spec/dummy/db/data_migrations/20120109173616_create_download_capability_type.erp_tech_svcs.rb
144
+ - spec/dummy/db/data_migrations/20120229160222_add_userinfo_widget.erp_app.rb
145
+ - spec/dummy/db/data_migrations/20120229174343_add_orders_widget.erp_orders.rb
146
+ - spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
147
+ - spec/dummy/db/data_migrations/20120411180756_create_user_management_mobile_application.erp_app.rb
148
+ - spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
149
+ - spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb
150
+ - spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb
151
+ - spec/dummy/db/data_migrations/20121130212146_note_capabilities.erp_tech_svcs.rb
152
+ - spec/dummy/db/data_migrations/20121218175028_create_security_management_desktop_application.erp_app.rb
153
+ - spec/dummy/db/migrate/20130107214858_base_erp_services.erp_base_erp_svcs.rb
154
+ - spec/dummy/db/migrate/20130107214859_base_txns_and_accts.erp_txns_and_accts.rb
155
+ - spec/dummy/db/migrate/20130107214860_base_tech_services.erp_tech_svcs.rb
156
+ - spec/dummy/db/migrate/20130107214861_create_has_attribute_tables.erp_tech_svcs.rb
157
+ - spec/dummy/db/migrate/20130107214862_create_groups.erp_tech_svcs.rb
158
+ - spec/dummy/db/migrate/20130107214863_upgrade_security.erp_tech_svcs.rb
159
+ - spec/dummy/db/migrate/20130107214864_upgrade_security2.erp_tech_svcs.rb
160
+ - spec/dummy/db/migrate/20130107214865_agreements_services.erp_agreements.rb
161
+ - spec/dummy/db/migrate/20130107214866_agreements_services_indexes.erp_agreements.rb
162
+ - spec/dummy/db/migrate/20130107214867_base_app_framework.erp_app.rb
163
+ - spec/dummy/db/migrate/20130107214868_base_products.erp_products.rb
164
+ - spec/dummy/db/migrate/20130107214869_base_products_indexes.erp_products.rb
165
+ - spec/dummy/db/migrate/20130107214870_base_orders.erp_orders.rb
166
+ - spec/dummy/db/migrate/20130107214871_erp_commerce_base.erp_commerce.rb
167
+ - spec/dummy/db/schema.rb
168
+ - spec/dummy/db/spec.sqlite3
169
+ - spec/dummy/log/spec.log
128
170
  - spec/dummy/public/404.html
129
171
  - spec/dummy/public/422.html
130
172
  - spec/dummy/public/500.html
@@ -169,12 +211,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
169
211
  - - ! '>='
170
212
  - !ruby/object:Gem::Version
171
213
  version: '0'
214
+ segments:
215
+ - 0
216
+ hash: -1429728117471209786
172
217
  required_rubygems_version: !ruby/object:Gem::Requirement
173
218
  none: false
174
219
  requirements:
175
220
  - - ! '>='
176
221
  - !ruby/object:Gem::Version
177
222
  version: '0'
223
+ segments:
224
+ - 0
225
+ hash: -1429728117471209786
178
226
  requirements: []
179
227
  rubyforge_project:
180
228
  rubygems_version: 1.8.24
@@ -202,6 +250,53 @@ test_files:
202
250
  - spec/dummy/config/locales/en.yml
203
251
  - spec/dummy/config/routes.rb
204
252
  - spec/dummy/config.ru
253
+ - spec/dummy/db/data_migrations/20101011152441_payment_gateway_actions.erp_commerce.rb
254
+ - spec/dummy/db/data_migrations/20101014142230_financial_txn_types.erp_txns_and_accts.rb
255
+ - spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb
256
+ - spec/dummy/db/data_migrations/20110324010232_product_role_types.erp_products.rb
257
+ - spec/dummy/db/data_migrations/20110525001935_add_usd_currency.erp_base_erp_svcs.rb
258
+ - spec/dummy/db/data_migrations/20110527160807_add_default_prod_avail_types.erp_products.rb
259
+ - spec/dummy/db/data_migrations/20110605231556_create_order_party_roles.erp_orders.rb
260
+ - spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb
261
+ - spec/dummy/db/data_migrations/20110728201729_erp_app_setup.erp_app.rb
262
+ - spec/dummy/db/data_migrations/20110728201730_create_desktop_app_product_manager.erp_products.rb
263
+ - spec/dummy/db/data_migrations/20110728201731_create_desktop_app_order_manager.erp_orders.rb
264
+ - spec/dummy/db/data_migrations/20110728201732_create_organizer_app_order_management.erp_orders.rb
265
+ - spec/dummy/db/data_migrations/20110728201733_update_preferences.erp_app.rb
266
+ - spec/dummy/db/data_migrations/20110802200222_schedule_delete_expired_sessions_job.erp_tech_svcs.rb
267
+ - spec/dummy/db/data_migrations/20110816161238_create_desktop_app_audit_log_viewer.erp_app.rb
268
+ - spec/dummy/db/data_migrations/20110817160743_add_file_manager_application.erp_app.rb
269
+ - spec/dummy/db/data_migrations/20110913145838_setup_compass_ae_instance.erp_base_erp_svcs.rb
270
+ - spec/dummy/db/data_migrations/20111108183739_add_default_capabilities.erp_app.rb
271
+ - spec/dummy/db/data_migrations/20111108183740_add_new_contact_widgets.erp_app.rb
272
+ - spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb
273
+ - spec/dummy/db/data_migrations/20120109173616_create_download_capability_type.erp_tech_svcs.rb
274
+ - spec/dummy/db/data_migrations/20120229160222_add_userinfo_widget.erp_app.rb
275
+ - spec/dummy/db/data_migrations/20120229174343_add_orders_widget.erp_orders.rb
276
+ - spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
277
+ - spec/dummy/db/data_migrations/20120411180756_create_user_management_mobile_application.erp_app.rb
278
+ - spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
279
+ - spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb
280
+ - spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb
281
+ - spec/dummy/db/data_migrations/20121130212146_note_capabilities.erp_tech_svcs.rb
282
+ - spec/dummy/db/data_migrations/20121218175028_create_security_management_desktop_application.erp_app.rb
283
+ - spec/dummy/db/migrate/20130107214858_base_erp_services.erp_base_erp_svcs.rb
284
+ - spec/dummy/db/migrate/20130107214859_base_txns_and_accts.erp_txns_and_accts.rb
285
+ - spec/dummy/db/migrate/20130107214860_base_tech_services.erp_tech_svcs.rb
286
+ - spec/dummy/db/migrate/20130107214861_create_has_attribute_tables.erp_tech_svcs.rb
287
+ - spec/dummy/db/migrate/20130107214862_create_groups.erp_tech_svcs.rb
288
+ - spec/dummy/db/migrate/20130107214863_upgrade_security.erp_tech_svcs.rb
289
+ - spec/dummy/db/migrate/20130107214864_upgrade_security2.erp_tech_svcs.rb
290
+ - spec/dummy/db/migrate/20130107214865_agreements_services.erp_agreements.rb
291
+ - spec/dummy/db/migrate/20130107214866_agreements_services_indexes.erp_agreements.rb
292
+ - spec/dummy/db/migrate/20130107214867_base_app_framework.erp_app.rb
293
+ - spec/dummy/db/migrate/20130107214868_base_products.erp_products.rb
294
+ - spec/dummy/db/migrate/20130107214869_base_products_indexes.erp_products.rb
295
+ - spec/dummy/db/migrate/20130107214870_base_orders.erp_orders.rb
296
+ - spec/dummy/db/migrate/20130107214871_erp_commerce_base.erp_commerce.rb
297
+ - spec/dummy/db/schema.rb
298
+ - spec/dummy/db/spec.sqlite3
299
+ - spec/dummy/log/spec.log
205
300
  - spec/dummy/public/404.html
206
301
  - spec/dummy/public/422.html
207
302
  - spec/dummy/public/500.html
@@ -1,21 +0,0 @@
1
- class UpdateFinancialTxns < ActiveRecord::Migration
2
- def self.up
3
- if columns(:financial_txns).collect {|c| c.name}.include?('payment_type')
4
- remove_column :financial_txns, :payment_type
5
- end
6
-
7
- if columns(:financial_txns).collect {|c| c.name}.include?('amount_id')
8
- rename_column :financial_txns, :amount_id, :money_id
9
- end
10
- end
11
-
12
- def self.down
13
- unless columns(:financial_txns).collect {|c| c.name}.include?('payment_type')
14
- add_column :financial_txns, :payment_type, :string
15
- end
16
-
17
- if columns(:financial_txns).collect {|c| c.name}.include?('money_id')
18
- rename_column :financial_txns, :money_id, :amount_id
19
- end
20
- end
21
- end
@@ -1,5 +0,0 @@
1
- class AddBizTxnAcctTypeIdToBizTxnAcctRoot < ActiveRecord::Migration
2
- def change
3
- add_column :biz_txn_acct_roots, :biz_txn_acct_type_id, :integer
4
- end
5
- end
@@ -1,7 +0,0 @@
1
- class AddTypeColumnToBizTxnAcctRoot < ActiveRecord::Migration
2
- def change
3
- unless columns(:biz_txn_acct_roots).collect {|c| c.name}.include?('type')
4
- add_column :biz_txn_acct_roots, :type, :string
5
- end
6
- end
7
- end
@@ -1,7 +0,0 @@
1
- class AddApplyDateToFinancialTxn < ActiveRecord::Migration
2
- def change
3
- unless columns(:financial_txns).collect {|c| c.name}.include?('apply_date')
4
- add_column :financial_txns, :apply_date, :date
5
- end
6
- end
7
- end
@@ -1,9 +0,0 @@
1
- class UpdateFinancialTxnAcctDueDate < ActiveRecord::Migration
2
- def up
3
- change_column(:financial_txn_accounts, :due_date, :date)
4
- end
5
-
6
- def down
7
- change_column(:financial_txn_accounts, :due_date, :datetime)
8
- end
9
- end