erp_orders 3.0.6 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/charge_line.rb +20 -19
- data/app/models/charge_line_payment_txn.rb +2 -0
- data/app/models/line_item_role_type.rb +2 -0
- data/app/models/order_line_item.rb +1 -0
- data/app/models/order_line_item_pty_role.rb +8 -7
- data/app/models/order_line_item_type.rb +2 -0
- data/app/models/order_txn.rb +2 -0
- data/app/models/order_txn_type.rb +2 -0
- data/db/migrate/20080805000060_base_orders.rb +2 -0
- data/lib/erp_orders.rb +2 -0
- data/lib/erp_orders/version.rb +2 -2
- data/public/javascripts/erp_app/desktop/applications/order_manager/line_items_grid_panel.js +1 -1
- data/public/javascripts/erp_app/desktop/applications/order_manager/payments_grid_panel.js +1 -1
- data/public/javascripts/erp_app/organizer/applications/order_management/line_items_grid_panel.js +1 -1
- data/public/javascripts/erp_app/organizer/applications/order_management/payments_grid_panel.js +1 -1
- data/spec/dummy/config/application.rb +6 -0
- data/spec/dummy/config/environments/spec.rb +3 -0
- data/spec/dummy/db/data_migrations/20101011152441_payment_gateway_actions.erp_commerce.rb +28 -0
- data/spec/dummy/db/data_migrations/20101014142230_financial_txn_types.erp_txns_and_accts.rb +16 -0
- data/spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb +15 -0
- data/spec/dummy/db/data_migrations/20110324010232_product_role_types.erp_products.rb +24 -0
- data/spec/dummy/db/data_migrations/20110525001935_add_usd_currency.erp_base_erp_svcs.rb +12 -0
- data/spec/dummy/db/data_migrations/20110527160807_add_default_prod_avail_types.erp_products.rb +27 -0
- data/spec/dummy/db/data_migrations/20110605231556_create_order_party_roles.erp_orders.rb +24 -0
- data/spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb +19 -0
- data/spec/dummy/db/data_migrations/20110728201729_erp_app_setup.erp_app.rb +252 -0
- data/spec/dummy/db/data_migrations/20110728201730_create_desktop_app_product_manager.erp_products.rb +26 -0
- data/spec/dummy/db/data_migrations/20110728201731_create_desktop_app_order_manager.erp_orders.rb +26 -0
- data/spec/dummy/db/data_migrations/20110728201732_create_organizer_app_order_management.erp_orders.rb +15 -0
- data/spec/dummy/db/data_migrations/20110728201733_update_preferences.erp_app.rb +53 -0
- data/spec/dummy/db/data_migrations/20110802200222_schedule_delete_expired_sessions_job.erp_tech_svcs.rb +16 -0
- data/spec/dummy/db/data_migrations/20110816161238_create_desktop_app_audit_log_viewer.erp_app.rb +21 -0
- data/spec/dummy/db/data_migrations/20110817160743_add_file_manager_application.erp_app.rb +32 -0
- data/spec/dummy/db/data_migrations/20110913145838_setup_compass_ae_instance.erp_base_erp_svcs.rb +12 -0
- data/spec/dummy/db/data_migrations/20111108183739_add_default_capabilities.erp_app.rb +23 -0
- data/spec/dummy/db/data_migrations/20111108183740_add_new_contact_widgets.erp_app.rb +42 -0
- data/spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb +22 -0
- data/spec/dummy/db/data_migrations/20120109173616_create_download_capability_type.erp_tech_svcs.rb +14 -0
- data/spec/dummy/db/data_migrations/20120229160222_add_userinfo_widget.erp_app.rb +29 -0
- data/spec/dummy/db/data_migrations/20120229174343_add_orders_widget.erp_orders.rb +29 -0
- data/spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb +11 -0
- data/spec/dummy/db/data_migrations/20120411180756_create_user_management_mobile_application.erp_app.rb +19 -0
- data/spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb +23 -0
- data/spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb +20 -0
- data/spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb +16 -0
- data/spec/dummy/db/data_migrations/20121130212146_note_capabilities.erp_tech_svcs.rb +24 -0
- data/spec/dummy/db/data_migrations/20121218175028_create_security_management_desktop_application.erp_app.rb +23 -0
- data/spec/dummy/db/migrate/20130107214803_base_erp_services.erp_base_erp_svcs.rb +461 -0
- data/spec/dummy/db/migrate/20130107214804_base_orders.erp_orders.rb +178 -0
- data/spec/dummy/db/migrate/20130107214805_base_tech_services.erp_tech_svcs.rb +271 -0
- data/spec/dummy/db/migrate/20130107214806_create_has_attribute_tables.erp_tech_svcs.rb +39 -0
- data/spec/dummy/db/migrate/20130107214807_create_groups.erp_tech_svcs.rb +19 -0
- data/spec/dummy/db/migrate/20130107214808_upgrade_security.erp_tech_svcs.rb +54 -0
- data/spec/dummy/db/migrate/20130107214809_upgrade_security2.erp_tech_svcs.rb +270 -0
- data/spec/dummy/db/migrate/20130107214810_base_products.erp_products.rb +234 -0
- data/spec/dummy/db/migrate/20130107214811_base_products_indexes.erp_products.rb +59 -0
- data/spec/dummy/db/migrate/20130107214812_base_txns_and_accts.erp_txns_and_accts.rb +364 -0
- data/spec/dummy/db/migrate/20130107214813_agreements_services.erp_agreements.rb +160 -0
- data/spec/dummy/db/migrate/20130107214814_agreements_services_indexes.erp_agreements.rb +52 -0
- data/spec/dummy/db/migrate/20130107214815_base_app_framework.erp_app.rb +276 -0
- data/spec/dummy/db/migrate/20130107214816_erp_commerce_base.erp_commerce.rb +442 -0
- data/spec/dummy/db/schema.rb +1821 -0
- data/spec/dummy/db/spec.sqlite3 +0 -0
- data/spec/dummy/log/spec.log +12158 -0
- data/spec/spec_helper.rb +11 -3
- metadata +128 -14
- data/db/migrate/20110602194707_update_order_txn_ship_to_bill_to.rb +0 -25
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
|
48
|
+
#We have to execute the migratiapp:compass_ae:install:data_migrationsons from dummy app directory
|
47
49
|
Dir.chdir DUMMY_APP_ROOT
|
48
|
-
|
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_orders
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0
|
4
|
+
version: 3.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,41 +9,56 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-01-
|
12
|
+
date: 2013-01-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: erp_products
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: '3.
|
21
|
+
version: '3.1'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '3.1'
|
25
30
|
- !ruby/object:Gem::Dependency
|
26
31
|
name: erp_txns_and_accts
|
27
|
-
requirement:
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
28
33
|
none: false
|
29
34
|
requirements:
|
30
35
|
- - ~>
|
31
36
|
- !ruby/object:Gem::Version
|
32
|
-
version: '3.
|
37
|
+
version: '3.1'
|
33
38
|
type: :runtime
|
34
39
|
prerelease: false
|
35
|
-
version_requirements:
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '3.1'
|
36
46
|
- !ruby/object:Gem::Dependency
|
37
47
|
name: erp_dev_svcs
|
38
|
-
requirement:
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
39
49
|
none: false
|
40
50
|
requirements:
|
41
|
-
- -
|
51
|
+
- - ~>
|
42
52
|
- !ruby/object:Gem::Version
|
43
|
-
version: 3.
|
53
|
+
version: '3.1'
|
44
54
|
type: :development
|
45
55
|
prerelease: false
|
46
|
-
version_requirements:
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.1'
|
47
62
|
description: The Orders Engine in CompassAE implements models for Orders, Order Items
|
48
63
|
and Order status tracking. It also houses models for charge lines associated with
|
49
64
|
Orders (although it could be argued that this functionality should reside in Commerce).
|
@@ -87,7 +102,6 @@ files:
|
|
87
102
|
- db/data_migrations/20110728201732_create_organizer_app_order_management.rb
|
88
103
|
- db/data_migrations/20120229174343_add_orders_widget.rb
|
89
104
|
- db/migrate/20080805000060_base_orders.rb
|
90
|
-
- db/migrate/20110602194707_update_order_txn_ship_to_bill_to.rb
|
91
105
|
- lib/erp_orders/engine.rb
|
92
106
|
- lib/erp_orders/extensions/active_record/acts_as_order_txn.rb
|
93
107
|
- lib/erp_orders/extensions.rb
|
@@ -116,6 +130,53 @@ files:
|
|
116
130
|
- spec/dummy/config/locales/en.yml
|
117
131
|
- spec/dummy/config/routes.rb
|
118
132
|
- spec/dummy/config.ru
|
133
|
+
- spec/dummy/db/data_migrations/20101011152441_payment_gateway_actions.erp_commerce.rb
|
134
|
+
- spec/dummy/db/data_migrations/20101014142230_financial_txn_types.erp_txns_and_accts.rb
|
135
|
+
- spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb
|
136
|
+
- spec/dummy/db/data_migrations/20110324010232_product_role_types.erp_products.rb
|
137
|
+
- spec/dummy/db/data_migrations/20110525001935_add_usd_currency.erp_base_erp_svcs.rb
|
138
|
+
- spec/dummy/db/data_migrations/20110527160807_add_default_prod_avail_types.erp_products.rb
|
139
|
+
- spec/dummy/db/data_migrations/20110605231556_create_order_party_roles.erp_orders.rb
|
140
|
+
- spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb
|
141
|
+
- spec/dummy/db/data_migrations/20110728201729_erp_app_setup.erp_app.rb
|
142
|
+
- spec/dummy/db/data_migrations/20110728201730_create_desktop_app_product_manager.erp_products.rb
|
143
|
+
- spec/dummy/db/data_migrations/20110728201731_create_desktop_app_order_manager.erp_orders.rb
|
144
|
+
- spec/dummy/db/data_migrations/20110728201732_create_organizer_app_order_management.erp_orders.rb
|
145
|
+
- spec/dummy/db/data_migrations/20110728201733_update_preferences.erp_app.rb
|
146
|
+
- spec/dummy/db/data_migrations/20110802200222_schedule_delete_expired_sessions_job.erp_tech_svcs.rb
|
147
|
+
- spec/dummy/db/data_migrations/20110816161238_create_desktop_app_audit_log_viewer.erp_app.rb
|
148
|
+
- spec/dummy/db/data_migrations/20110817160743_add_file_manager_application.erp_app.rb
|
149
|
+
- spec/dummy/db/data_migrations/20110913145838_setup_compass_ae_instance.erp_base_erp_svcs.rb
|
150
|
+
- spec/dummy/db/data_migrations/20111108183739_add_default_capabilities.erp_app.rb
|
151
|
+
- spec/dummy/db/data_migrations/20111108183740_add_new_contact_widgets.erp_app.rb
|
152
|
+
- spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb
|
153
|
+
- spec/dummy/db/data_migrations/20120109173616_create_download_capability_type.erp_tech_svcs.rb
|
154
|
+
- spec/dummy/db/data_migrations/20120229160222_add_userinfo_widget.erp_app.rb
|
155
|
+
- spec/dummy/db/data_migrations/20120229174343_add_orders_widget.erp_orders.rb
|
156
|
+
- spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
|
157
|
+
- spec/dummy/db/data_migrations/20120411180756_create_user_management_mobile_application.erp_app.rb
|
158
|
+
- spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
|
159
|
+
- spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb
|
160
|
+
- spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb
|
161
|
+
- spec/dummy/db/data_migrations/20121130212146_note_capabilities.erp_tech_svcs.rb
|
162
|
+
- spec/dummy/db/data_migrations/20121218175028_create_security_management_desktop_application.erp_app.rb
|
163
|
+
- spec/dummy/db/migrate/20130107214803_base_erp_services.erp_base_erp_svcs.rb
|
164
|
+
- spec/dummy/db/migrate/20130107214804_base_orders.erp_orders.rb
|
165
|
+
- spec/dummy/db/migrate/20130107214805_base_tech_services.erp_tech_svcs.rb
|
166
|
+
- spec/dummy/db/migrate/20130107214806_create_has_attribute_tables.erp_tech_svcs.rb
|
167
|
+
- spec/dummy/db/migrate/20130107214807_create_groups.erp_tech_svcs.rb
|
168
|
+
- spec/dummy/db/migrate/20130107214808_upgrade_security.erp_tech_svcs.rb
|
169
|
+
- spec/dummy/db/migrate/20130107214809_upgrade_security2.erp_tech_svcs.rb
|
170
|
+
- spec/dummy/db/migrate/20130107214810_base_products.erp_products.rb
|
171
|
+
- spec/dummy/db/migrate/20130107214811_base_products_indexes.erp_products.rb
|
172
|
+
- spec/dummy/db/migrate/20130107214812_base_txns_and_accts.erp_txns_and_accts.rb
|
173
|
+
- spec/dummy/db/migrate/20130107214813_agreements_services.erp_agreements.rb
|
174
|
+
- spec/dummy/db/migrate/20130107214814_agreements_services_indexes.erp_agreements.rb
|
175
|
+
- spec/dummy/db/migrate/20130107214815_base_app_framework.erp_app.rb
|
176
|
+
- spec/dummy/db/migrate/20130107214816_erp_commerce_base.erp_commerce.rb
|
177
|
+
- spec/dummy/db/schema.rb
|
178
|
+
- spec/dummy/db/spec.sqlite3
|
179
|
+
- spec/dummy/log/spec.log
|
119
180
|
- spec/dummy/public/404.html
|
120
181
|
- spec/dummy/public/422.html
|
121
182
|
- spec/dummy/public/500.html
|
@@ -143,15 +204,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
143
204
|
- - ! '>='
|
144
205
|
- !ruby/object:Gem::Version
|
145
206
|
version: '0'
|
207
|
+
segments:
|
208
|
+
- 0
|
209
|
+
hash: 3037140453814948402
|
146
210
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
147
211
|
none: false
|
148
212
|
requirements:
|
149
213
|
- - ! '>='
|
150
214
|
- !ruby/object:Gem::Version
|
151
215
|
version: '0'
|
216
|
+
segments:
|
217
|
+
- 0
|
218
|
+
hash: 3037140453814948402
|
152
219
|
requirements: []
|
153
220
|
rubyforge_project:
|
154
|
-
rubygems_version: 1.8.
|
221
|
+
rubygems_version: 1.8.24
|
155
222
|
signing_key:
|
156
223
|
specification_version: 3
|
157
224
|
summary: The Orders Engine in CompassAE implements models for Orders, Order Items
|
@@ -176,6 +243,53 @@ test_files:
|
|
176
243
|
- spec/dummy/config/locales/en.yml
|
177
244
|
- spec/dummy/config/routes.rb
|
178
245
|
- spec/dummy/config.ru
|
246
|
+
- spec/dummy/db/data_migrations/20101011152441_payment_gateway_actions.erp_commerce.rb
|
247
|
+
- spec/dummy/db/data_migrations/20101014142230_financial_txn_types.erp_txns_and_accts.rb
|
248
|
+
- spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb
|
249
|
+
- spec/dummy/db/data_migrations/20110324010232_product_role_types.erp_products.rb
|
250
|
+
- spec/dummy/db/data_migrations/20110525001935_add_usd_currency.erp_base_erp_svcs.rb
|
251
|
+
- spec/dummy/db/data_migrations/20110527160807_add_default_prod_avail_types.erp_products.rb
|
252
|
+
- spec/dummy/db/data_migrations/20110605231556_create_order_party_roles.erp_orders.rb
|
253
|
+
- spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb
|
254
|
+
- spec/dummy/db/data_migrations/20110728201729_erp_app_setup.erp_app.rb
|
255
|
+
- spec/dummy/db/data_migrations/20110728201730_create_desktop_app_product_manager.erp_products.rb
|
256
|
+
- spec/dummy/db/data_migrations/20110728201731_create_desktop_app_order_manager.erp_orders.rb
|
257
|
+
- spec/dummy/db/data_migrations/20110728201732_create_organizer_app_order_management.erp_orders.rb
|
258
|
+
- spec/dummy/db/data_migrations/20110728201733_update_preferences.erp_app.rb
|
259
|
+
- spec/dummy/db/data_migrations/20110802200222_schedule_delete_expired_sessions_job.erp_tech_svcs.rb
|
260
|
+
- spec/dummy/db/data_migrations/20110816161238_create_desktop_app_audit_log_viewer.erp_app.rb
|
261
|
+
- spec/dummy/db/data_migrations/20110817160743_add_file_manager_application.erp_app.rb
|
262
|
+
- spec/dummy/db/data_migrations/20110913145838_setup_compass_ae_instance.erp_base_erp_svcs.rb
|
263
|
+
- spec/dummy/db/data_migrations/20111108183739_add_default_capabilities.erp_app.rb
|
264
|
+
- spec/dummy/db/data_migrations/20111108183740_add_new_contact_widgets.erp_app.rb
|
265
|
+
- spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb
|
266
|
+
- spec/dummy/db/data_migrations/20120109173616_create_download_capability_type.erp_tech_svcs.rb
|
267
|
+
- spec/dummy/db/data_migrations/20120229160222_add_userinfo_widget.erp_app.rb
|
268
|
+
- spec/dummy/db/data_migrations/20120229174343_add_orders_widget.erp_orders.rb
|
269
|
+
- spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
|
270
|
+
- spec/dummy/db/data_migrations/20120411180756_create_user_management_mobile_application.erp_app.rb
|
271
|
+
- spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
|
272
|
+
- spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb
|
273
|
+
- spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb
|
274
|
+
- spec/dummy/db/data_migrations/20121130212146_note_capabilities.erp_tech_svcs.rb
|
275
|
+
- spec/dummy/db/data_migrations/20121218175028_create_security_management_desktop_application.erp_app.rb
|
276
|
+
- spec/dummy/db/migrate/20130107214803_base_erp_services.erp_base_erp_svcs.rb
|
277
|
+
- spec/dummy/db/migrate/20130107214804_base_orders.erp_orders.rb
|
278
|
+
- spec/dummy/db/migrate/20130107214805_base_tech_services.erp_tech_svcs.rb
|
279
|
+
- spec/dummy/db/migrate/20130107214806_create_has_attribute_tables.erp_tech_svcs.rb
|
280
|
+
- spec/dummy/db/migrate/20130107214807_create_groups.erp_tech_svcs.rb
|
281
|
+
- spec/dummy/db/migrate/20130107214808_upgrade_security.erp_tech_svcs.rb
|
282
|
+
- spec/dummy/db/migrate/20130107214809_upgrade_security2.erp_tech_svcs.rb
|
283
|
+
- spec/dummy/db/migrate/20130107214810_base_products.erp_products.rb
|
284
|
+
- spec/dummy/db/migrate/20130107214811_base_products_indexes.erp_products.rb
|
285
|
+
- spec/dummy/db/migrate/20130107214812_base_txns_and_accts.erp_txns_and_accts.rb
|
286
|
+
- spec/dummy/db/migrate/20130107214813_agreements_services.erp_agreements.rb
|
287
|
+
- spec/dummy/db/migrate/20130107214814_agreements_services_indexes.erp_agreements.rb
|
288
|
+
- spec/dummy/db/migrate/20130107214815_base_app_framework.erp_app.rb
|
289
|
+
- spec/dummy/db/migrate/20130107214816_erp_commerce_base.erp_commerce.rb
|
290
|
+
- spec/dummy/db/schema.rb
|
291
|
+
- spec/dummy/db/spec.sqlite3
|
292
|
+
- spec/dummy/log/spec.log
|
179
293
|
- spec/dummy/public/404.html
|
180
294
|
- spec/dummy/public/422.html
|
181
295
|
- spec/dummy/public/500.html
|
@@ -1,25 +0,0 @@
|
|
1
|
-
class UpdateOrderTxnShipToBillTo < ActiveRecord::Migration
|
2
|
-
def self.up
|
3
|
-
unless columns(:order_txns).collect {|c| c.name}.include?('bill_to_address_line_1')
|
4
|
-
rename_column :order_txns, :bill_to_address, :bill_to_address_line_1
|
5
|
-
add_column :order_txns, :bill_to_address_line_2, :string
|
6
|
-
end
|
7
|
-
|
8
|
-
unless columns(:order_txns).collect {|c| c.name}.include?('ship_to_address_line_1')
|
9
|
-
rename_column :order_txns, :ship_to_address, :ship_to_address_line_1
|
10
|
-
add_column :order_txns, :ship_to_address_line_2, :string
|
11
|
-
end
|
12
|
-
end
|
13
|
-
|
14
|
-
def self.down
|
15
|
-
if columns(:order_txns).collect {|c| c.name}.include?('bill_to_address_line_1')
|
16
|
-
rename_column :order_txns, :bill_to_address_line_1, :bill_to_address
|
17
|
-
remove_column :order_txns, :bill_to_address_line_2
|
18
|
-
end
|
19
|
-
|
20
|
-
if columns(:order_txns).collect {|c| c.name}.include?('ship_to_address_line_1')
|
21
|
-
rename_column :order_txns, :ship_to_address_line_1, :ship_to_address
|
22
|
-
remove_column :order_txns, :ship_to_address_line_2
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|