rails_db_admin 2.1.1 → 2.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. data/app/controllers/rails_db_admin/erp_app/desktop/base_controller.rb +26 -25
  2. data/lib/rails_db_admin/version.rb +1 -1
  3. data/public/javascripts/erp_app/desktop/applications/rails_db_admin/tables_tree_menu.js +94 -75
  4. metadata +3 -85
  5. data/spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb +0 -15
  6. data/spec/dummy/db/data_migrations/20110525001935_add_usd_currency.erp_base_erp_svcs.rb +0 -12
  7. data/spec/dummy/db/data_migrations/20110608185830_create_default_dynamic_models_and_forms.erp_forms.rb +0 -33
  8. data/spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb +0 -19
  9. data/spec/dummy/db/data_migrations/20110728201729_erp_app_setup.erp_app.rb +0 -252
  10. data/spec/dummy/db/data_migrations/20110728201733_update_preferences.erp_app.rb +0 -53
  11. data/spec/dummy/db/data_migrations/20110802200222_schedule_delete_expired_sessions_job.erp_tech_svcs.rb +0 -16
  12. data/spec/dummy/db/data_migrations/20110816005525_rails_db_admin_application.rails_db_admin.rb +0 -32
  13. data/spec/dummy/db/data_migrations/20110816161238_create_desktop_app_audit_log_viewer.erp_app.rb +0 -21
  14. data/spec/dummy/db/data_migrations/20110817160743_add_file_manager_application.erp_app.rb +0 -32
  15. data/spec/dummy/db/data_migrations/20110828190913_create_desktop_app_dynamic_forms.erp_forms.rb +0 -19
  16. data/spec/dummy/db/data_migrations/20110913145838_setup_compass_ae_instance.erp_base_erp_svcs.rb +0 -12
  17. data/spec/dummy/db/data_migrations/20111108183739_add_default_capabilities.erp_app.rb +0 -23
  18. data/spec/dummy/db/data_migrations/20111108183740_add_new_contact_widgets.erp_app.rb +0 -42
  19. data/spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb +0 -22
  20. data/spec/dummy/db/data_migrations/20120109173616_create_download_capability_type.erp_tech_svcs.rb +0 -14
  21. data/spec/dummy/db/data_migrations/20120229160222_add_userinfo_widget.erp_app.rb +0 -29
  22. data/spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb +0 -11
  23. data/spec/dummy/db/data_migrations/20120411180756_create_user_management_mobile_application.erp_app.rb +0 -19
  24. data/spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb +0 -23
  25. data/spec/dummy/db/data_migrations/20120824013449_create_ticket_form.erp_forms.rb +0 -67
  26. data/spec/dummy/db/data_migrations/20121026013449_update_ticket_form.erp_forms.rb +0 -65
  27. data/spec/dummy/db/data_migrations/20121026191738_update_contact_form.erp_forms.rb +0 -27
  28. data/spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb +0 -20
  29. data/spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb +0 -16
  30. data/spec/dummy/db/data_migrations/20121130212146_note_capabilities.erp_tech_svcs.rb +0 -24
  31. data/spec/dummy/db/data_migrations/20121218175028_create_security_management_desktop_application.erp_app.rb +0 -23
  32. data/spec/dummy/db/migrate/20121219201515_base_erp_services.erp_base_erp_svcs.rb +0 -461
  33. data/spec/dummy/db/migrate/20121219201516_base_tech_services.erp_tech_svcs.rb +0 -255
  34. data/spec/dummy/db/migrate/20121219201517_create_has_attribute_tables.erp_tech_svcs.rb +0 -39
  35. data/spec/dummy/db/migrate/20121219201518_base_app_framework.erp_app.rb +0 -276
  36. data/spec/dummy/db/migrate/20121219201519_dynamic_forms.erp_forms.rb +0 -95
  37. data/spec/dummy/db/migrate/20121219201520_create_tickets.erp_forms.rb +0 -19
  38. data/spec/dummy/db/migrate/20121219201521_upgrade_dynamic_forms_table.erp_forms.rb +0 -32
  39. data/spec/dummy/db/migrate/20121227215524_add_reports.rails_db_admin.rb +0 -21
  40. data/spec/dummy/db/migrate/20130107181642_create_groups.erp_tech_svcs.rb +0 -19
  41. data/spec/dummy/db/migrate/20130107181643_upgrade_security.erp_tech_svcs.rb +0 -54
  42. data/spec/dummy/db/migrate/20130107181644_upgrade_security2.erp_tech_svcs.rb +0 -270
  43. data/spec/dummy/db/schema.rb +0 -888
  44. data/spec/dummy/db/spec.sqlite3 +0 -0
  45. data/spec/dummy/log/spec.log +0 -38042
@@ -1,888 +0,0 @@
1
- # encoding: UTF-8
2
- # This file is auto-generated from the current state of the database. Instead
3
- # of editing this file, please use the migrations feature of Active Record to
4
- # incrementally modify your database, and then regenerate this schema definition.
5
- #
6
- # Note that this schema.rb definition is the authoritative source for your
7
- # database schema. If you need to create the application database on another
8
- # system, you should be using db:schema:load, not running all the migrations
9
- # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
- # you'll amass, the slower it'll run and the greater likelihood for issues).
11
- #
12
- # It's strongly recommended to check this file into your version control system.
13
-
14
- ActiveRecord::Schema.define(:version => 20121227215524) do
15
-
16
- create_table "app_containers", :force => true do |t|
17
- t.integer "user_id"
18
- t.string "description"
19
- t.string "internal_identifier"
20
- t.string "type"
21
- t.datetime "created_at", :null => false
22
- t.datetime "updated_at", :null => false
23
- end
24
-
25
- add_index "app_containers", ["type"], :name => "index_app_containers_on_type"
26
- add_index "app_containers", ["user_id"], :name => "index_app_containers_on_user_id"
27
-
28
- create_table "app_containers_applications", :id => false, :force => true do |t|
29
- t.integer "app_container_id"
30
- t.integer "application_id"
31
- end
32
-
33
- add_index "app_containers_applications", ["app_container_id"], :name => "index_app_containers_applications_on_app_container_id"
34
- add_index "app_containers_applications", ["application_id"], :name => "index_app_containers_applications_on_application_id"
35
-
36
- create_table "applications", :force => true do |t|
37
- t.string "description"
38
- t.string "icon"
39
- t.string "internal_identifier"
40
- t.string "javascript_class_name"
41
- t.string "shortcut_id"
42
- t.string "base_url"
43
- t.string "type"
44
- t.datetime "created_at", :null => false
45
- t.datetime "updated_at", :null => false
46
- end
47
-
48
- create_table "applications_widgets", :id => false, :force => true do |t|
49
- t.integer "application_id"
50
- t.integer "widget_id"
51
- end
52
-
53
- add_index "applications_widgets", ["application_id"], :name => "index_applications_widgets_on_application_id"
54
- add_index "applications_widgets", ["widget_id"], :name => "index_applications_widgets_on_widget_id"
55
-
56
- create_table "attribute_types", :force => true do |t|
57
- t.string "internal_identifier"
58
- t.string "description"
59
- t.string "data_type"
60
- t.datetime "created_at", :null => false
61
- t.datetime "updated_at", :null => false
62
- end
63
-
64
- add_index "attribute_types", ["internal_identifier"], :name => ":attribute_types_iid_idx"
65
-
66
- create_table "attribute_values", :force => true do |t|
67
- t.integer "attributed_record_id"
68
- t.string "attributed_record_type"
69
- t.integer "attribute_type_id"
70
- t.string "value"
71
- t.datetime "created_at", :null => false
72
- t.datetime "updated_at", :null => false
73
- end
74
-
75
- add_index "attribute_values", ["attribute_type_id"], :name => "attribute_values_attributed_type_idx"
76
- add_index "attribute_values", ["attributed_record_id", "attributed_record_type"], :name => "attribute_values_attributed_record_idx"
77
- add_index "attribute_values", ["value"], :name => "attribute_values_value_idx"
78
-
79
- create_table "audit_log_item_types", :force => true do |t|
80
- t.string "internal_identifier"
81
- t.string "external_identifier"
82
- t.string "external_id_source"
83
- t.string "description"
84
- t.string "comments"
85
- t.integer "parent_id"
86
- t.integer "lft"
87
- t.integer "rgt"
88
- t.datetime "created_at", :null => false
89
- t.datetime "updated_at", :null => false
90
- end
91
-
92
- create_table "audit_log_items", :force => true do |t|
93
- t.integer "audit_log_id"
94
- t.integer "audit_log_item_type_id"
95
- t.string "audit_log_item_value"
96
- t.string "description"
97
- t.datetime "created_at", :null => false
98
- t.datetime "updated_at", :null => false
99
- end
100
-
101
- create_table "audit_log_types", :force => true do |t|
102
- t.string "description"
103
- t.string "error_code"
104
- t.string "comments"
105
- t.string "internal_identifier"
106
- t.string "external_identifier"
107
- t.string "external_id_source"
108
- t.integer "parent_id"
109
- t.integer "lft"
110
- t.integer "rgt"
111
- t.datetime "created_at", :null => false
112
- t.datetime "updated_at", :null => false
113
- end
114
-
115
- create_table "audit_logs", :force => true do |t|
116
- t.string "application"
117
- t.string "description"
118
- t.integer "party_id"
119
- t.text "additional_info"
120
- t.integer "audit_log_type_id"
121
- t.integer "event_record_id"
122
- t.string "event_record_type"
123
- t.datetime "created_at", :null => false
124
- t.datetime "updated_at", :null => false
125
- end
126
-
127
- add_index "audit_logs", ["event_record_id", "event_record_type"], :name => "event_record_index"
128
- add_index "audit_logs", ["party_id"], :name => "index_audit_logs_on_party_id"
129
-
130
- create_table "capabilities", :force => true do |t|
131
- t.string "resource"
132
- t.integer "capability_type_id"
133
- t.datetime "created_at", :null => false
134
- t.datetime "updated_at", :null => false
135
- end
136
-
137
- add_index "capabilities", ["capability_type_id"], :name => "index_capabilities_on_capability_type_id"
138
-
139
- create_table "capabilities_capable_models", :id => false, :force => true do |t|
140
- t.integer "capable_model_id"
141
- t.integer "capability_id"
142
- end
143
-
144
- add_index "capabilities_capable_models", ["capability_id"], :name => "index_capabilities_capable_models_on_capability_id"
145
- add_index "capabilities_capable_models", ["capable_model_id"], :name => "index_capabilities_capable_models_on_capable_model_id"
146
-
147
- create_table "capability_types", :force => true do |t|
148
- t.string "internal_identifier"
149
- t.string "description"
150
- t.datetime "created_at", :null => false
151
- t.datetime "updated_at", :null => false
152
- end
153
-
154
- create_table "capable_models", :force => true do |t|
155
- t.integer "capable_model_record_id"
156
- t.string "capable_model_record_type"
157
- t.datetime "created_at", :null => false
158
- t.datetime "updated_at", :null => false
159
- end
160
-
161
- add_index "capable_models", ["capable_model_record_id", "capable_model_record_type"], :name => "capable_model_record_idx"
162
-
163
- create_table "categories", :force => true do |t|
164
- t.string "description"
165
- t.string "external_identifier"
166
- t.datetime "from_date"
167
- t.datetime "to_date"
168
- t.string "internal_identifier"
169
- t.integer "category_record_id"
170
- t.string "category_record_type"
171
- t.integer "parent_id"
172
- t.integer "lft"
173
- t.integer "rgt"
174
- t.datetime "created_at", :null => false
175
- t.datetime "updated_at", :null => false
176
- end
177
-
178
- add_index "categories", ["category_record_id", "category_record_type"], :name => "category_polymorphic"
179
-
180
- create_table "category_classifications", :force => true do |t|
181
- t.integer "category_id"
182
- t.string "classification_type"
183
- t.integer "classification_id"
184
- t.datetime "from_date"
185
- t.datetime "to_date"
186
- t.datetime "created_at", :null => false
187
- t.datetime "updated_at", :null => false
188
- end
189
-
190
- add_index "category_classifications", ["classification_id", "classification_type"], :name => "classification_polymorphic"
191
-
192
- create_table "compass_ae_instances", :force => true do |t|
193
- t.decimal "version", :precision => 3, :scale => 8
194
- t.datetime "created_at", :null => false
195
- t.datetime "updated_at", :null => false
196
- end
197
-
198
- create_table "configuration_item_types", :force => true do |t|
199
- t.integer "parent_id"
200
- t.integer "lft"
201
- t.integer "rgt"
202
- t.string "description"
203
- t.string "internal_identifier"
204
- t.boolean "allow_user_defined_options", :default => false
205
- t.boolean "is_multi_optional", :default => false
206
- t.datetime "created_at", :null => false
207
- t.datetime "updated_at", :null => false
208
- end
209
-
210
- create_table "configuration_item_types_configuration_options", :force => true do |t|
211
- t.integer "configuration_item_type_id"
212
- t.integer "configuration_option_id"
213
- t.boolean "is_default", :default => false
214
- t.datetime "created_at", :null => false
215
- t.datetime "updated_at", :null => false
216
- end
217
-
218
- add_index "configuration_item_types_configuration_options", ["configuration_item_type_id"], :name => "conf_item_type_conf_opt_id_item_idx"
219
- add_index "configuration_item_types_configuration_options", ["configuration_option_id"], :name => "conf_item_type_conf_opt_id_opt_idx"
220
-
221
- create_table "configuration_item_types_configurations", :id => false, :force => true do |t|
222
- t.integer "configuration_item_type_id"
223
- t.integer "configuration_id"
224
- end
225
-
226
- add_index "configuration_item_types_configurations", ["configuration_id"], :name => "conf_id_idx"
227
- add_index "configuration_item_types_configurations", ["configuration_item_type_id", "configuration_id"], :name => "conf_config_type_uniq_idx", :unique => true
228
- add_index "configuration_item_types_configurations", ["configuration_item_type_id"], :name => "conf_conf_type_id_item_idx"
229
-
230
- create_table "configuration_items", :force => true do |t|
231
- t.integer "configuration_id"
232
- t.integer "configuration_item_type_id"
233
- t.integer "configuration_option_id"
234
- t.datetime "created_at", :null => false
235
- t.datetime "updated_at", :null => false
236
- end
237
-
238
- add_index "configuration_items", ["configuration_id"], :name => "index_configuration_items_on_configuration_id"
239
- add_index "configuration_items", ["configuration_item_type_id"], :name => "index_configuration_items_on_configuration_item_type_id"
240
- add_index "configuration_items", ["configuration_option_id"], :name => "index_configuration_items_on_configuration_option_id"
241
-
242
- create_table "configuration_items_configuration_options", :id => false, :force => true do |t|
243
- t.integer "configuration_item_id"
244
- t.integer "configuration_option_id"
245
- end
246
-
247
- add_index "configuration_items_configuration_options", ["configuration_item_id"], :name => "conf_item_conf_opt_id_item_idx"
248
- add_index "configuration_items_configuration_options", ["configuration_option_id"], :name => "conf_item_conf_opt_id_opt_idx"
249
-
250
- create_table "configuration_options", :force => true do |t|
251
- t.string "description"
252
- t.string "internal_identifier"
253
- t.string "value"
254
- t.text "comment"
255
- t.boolean "user_defined", :default => false
256
- t.datetime "created_at", :null => false
257
- t.datetime "updated_at", :null => false
258
- end
259
-
260
- add_index "configuration_options", ["internal_identifier"], :name => "index_configuration_options_on_internal_identifier"
261
- add_index "configuration_options", ["user_defined"], :name => "index_configuration_options_on_user_defined"
262
- add_index "configuration_options", ["value"], :name => "index_configuration_options_on_value"
263
-
264
- create_table "configurations", :force => true do |t|
265
- t.string "description"
266
- t.string "internal_identifier"
267
- t.boolean "active"
268
- t.boolean "is_template", :default => false
269
- t.datetime "created_at", :null => false
270
- t.datetime "updated_at", :null => false
271
- end
272
-
273
- add_index "configurations", ["is_template"], :name => "index_configurations_on_is_template"
274
-
275
- create_table "contact_purposes", :force => true do |t|
276
- t.integer "parent_id"
277
- t.integer "lft"
278
- t.integer "rgt"
279
- t.string "description"
280
- t.string "comments"
281
- t.string "internal_identifier"
282
- t.string "external_identifier"
283
- t.string "external_id_source"
284
- t.datetime "created_at", :null => false
285
- t.datetime "updated_at", :null => false
286
- end
287
-
288
- add_index "contact_purposes", ["parent_id"], :name => "index_contact_purposes_on_parent_id"
289
-
290
- create_table "contact_purposes_contacts", :id => false, :force => true do |t|
291
- t.integer "contact_id"
292
- t.integer "contact_purpose_id"
293
- end
294
-
295
- add_index "contact_purposes_contacts", ["contact_id", "contact_purpose_id"], :name => "contact_purposes_contacts_index"
296
-
297
- create_table "contact_types", :force => true do |t|
298
- t.integer "parent_id"
299
- t.integer "lft"
300
- t.integer "rgt"
301
- t.string "description"
302
- t.string "comments"
303
- t.string "internal_identifier"
304
- t.string "external_identifier"
305
- t.string "external_id_source"
306
- t.datetime "created_at", :null => false
307
- t.datetime "updated_at", :null => false
308
- end
309
-
310
- add_index "contact_types", ["parent_id"], :name => "index_contact_types_on_parent_id"
311
-
312
- create_table "contacts", :force => true do |t|
313
- t.integer "party_id"
314
- t.integer "contact_mechanism_id"
315
- t.string "contact_mechanism_type"
316
- t.string "external_identifier"
317
- t.string "external_id_source"
318
- t.datetime "created_at", :null => false
319
- t.datetime "updated_at", :null => false
320
- end
321
-
322
- add_index "contacts", ["contact_mechanism_id", "contact_mechanism_type"], :name => "besi_2"
323
- add_index "contacts", ["party_id"], :name => "index_contacts_on_party_id"
324
-
325
- create_table "currencies", :force => true do |t|
326
- t.string "name"
327
- t.string "definition"
328
- t.string "internal_identifier"
329
- t.string "numeric_code"
330
- t.string "major_unit_symbol"
331
- t.string "minor_unit_symbol"
332
- t.string "ratio_of_minor_unit_to_major_unit"
333
- t.string "postfix_label"
334
- t.datetime "introduction_date"
335
- t.datetime "expiration_date"
336
- t.datetime "created_at", :null => false
337
- t.datetime "updated_at", :null => false
338
- end
339
-
340
- add_index "currencies", ["internal_identifier"], :name => "index_currencies_on_internal_identifier"
341
-
342
- create_table "delayed_jobs", :force => true do |t|
343
- t.integer "priority", :default => 0
344
- t.integer "attempts", :default => 0
345
- t.text "handler"
346
- t.text "last_error"
347
- t.datetime "run_at"
348
- t.datetime "locked_at"
349
- t.datetime "failed_at"
350
- t.string "locked_by"
351
- t.string "queue"
352
- t.datetime "created_at", :null => false
353
- t.datetime "updated_at", :null => false
354
- end
355
-
356
- add_index "delayed_jobs", ["priority", "run_at"], :name => "delayed_jobs_priority"
357
-
358
- create_table "descriptive_assets", :force => true do |t|
359
- t.integer "view_type_id"
360
- t.string "internal_identifier"
361
- t.text "description"
362
- t.string "external_identifier"
363
- t.string "external_id_source"
364
- t.integer "described_record_id"
365
- t.string "described_record_type"
366
- t.datetime "created_at", :null => false
367
- t.datetime "updated_at", :null => false
368
- end
369
-
370
- add_index "descriptive_assets", ["described_record_id", "described_record_type"], :name => "described_record_idx"
371
- add_index "descriptive_assets", ["view_type_id"], :name => "index_descriptive_assets_on_view_type_id"
372
-
373
- create_table "dynamic_data", :force => true do |t|
374
- t.string "reference_type"
375
- t.integer "reference_id"
376
- t.text "dynamic_attributes"
377
- t.integer "created_with_form_id"
378
- t.integer "updated_with_form_id"
379
- t.integer "created_by_id"
380
- t.integer "updated_by_id"
381
- t.datetime "created_at", :null => false
382
- t.datetime "updated_at", :null => false
383
- end
384
-
385
- add_index "dynamic_data", ["created_by_id"], :name => "index_dynamic_data_on_created_by_id"
386
- add_index "dynamic_data", ["created_with_form_id"], :name => "index_dynamic_data_on_created_with_form_id"
387
- add_index "dynamic_data", ["reference_id"], :name => "index_dynamic_data_on_reference_id"
388
- add_index "dynamic_data", ["reference_type"], :name => "index_dynamic_data_on_reference_type"
389
- add_index "dynamic_data", ["updated_by_id"], :name => "index_dynamic_data_on_updated_by_id"
390
- add_index "dynamic_data", ["updated_with_form_id"], :name => "index_dynamic_data_on_updated_with_form_id"
391
-
392
- create_table "dynamic_form_documents", :force => true do |t|
393
- t.integer "dynamic_form_model_id"
394
- t.string "type"
395
- t.datetime "created_at", :null => false
396
- t.datetime "updated_at", :null => false
397
- end
398
-
399
- add_index "dynamic_form_documents", ["dynamic_form_model_id"], :name => "index_dynamic_form_documents_on_dynamic_form_model_id"
400
- add_index "dynamic_form_documents", ["type"], :name => "index_dynamic_form_documents_on_type"
401
-
402
- create_table "dynamic_form_models", :force => true do |t|
403
- t.string "model_name"
404
- t.boolean "show_in_multitask", :default => false
405
- t.boolean "allow_comments", :default => true
406
- t.boolean "allow_files", :default => true
407
- t.string "file_security_default", :default => "private"
408
- t.datetime "created_at", :null => false
409
- t.datetime "updated_at", :null => false
410
- end
411
-
412
- create_table "dynamic_forms", :force => true do |t|
413
- t.string "description"
414
- t.text "definition"
415
- t.integer "dynamic_form_model_id"
416
- t.string "model_name"
417
- t.string "internal_identifier"
418
- t.boolean "default"
419
- t.string "widget_action", :default => "save"
420
- t.string "widget_email_recipients"
421
- t.boolean "focus_first_field", :default => true
422
- t.boolean "submit_empty_text", :default => false
423
- t.string "msg_target", :default => "qtip"
424
- t.string "submit_button_label", :default => "Submit"
425
- t.string "cancel_button_label", :default => "Cancel"
426
- t.text "comment"
427
- t.integer "created_by_id"
428
- t.integer "updated_by_id"
429
- t.datetime "created_at", :null => false
430
- t.datetime "updated_at", :null => false
431
- end
432
-
433
- add_index "dynamic_forms", ["created_by_id"], :name => "index_dynamic_forms_on_created_by_id"
434
- add_index "dynamic_forms", ["dynamic_form_model_id"], :name => "index_dynamic_forms_on_dynamic_form_model_id"
435
- add_index "dynamic_forms", ["internal_identifier"], :name => "index_dynamic_forms_on_internal_identifier"
436
- add_index "dynamic_forms", ["model_name"], :name => "index_dynamic_forms_on_model_name"
437
- add_index "dynamic_forms", ["updated_by_id"], :name => "index_dynamic_forms_on_updated_by_id"
438
-
439
- create_table "email_addresses", :force => true do |t|
440
- t.string "email_address"
441
- t.string "description"
442
- t.datetime "created_at", :null => false
443
- t.datetime "updated_at", :null => false
444
- end
445
-
446
- create_table "file_assets", :force => true do |t|
447
- t.integer "file_asset_holder_id"
448
- t.string "file_asset_holder_type"
449
- t.string "type"
450
- t.string "name"
451
- t.string "directory"
452
- t.string "data_file_name"
453
- t.string "data_content_type"
454
- t.integer "data_file_size"
455
- t.datetime "data_updated_at"
456
- t.string "width"
457
- t.string "height"
458
- t.datetime "created_at", :null => false
459
- t.datetime "updated_at", :null => false
460
- end
461
-
462
- add_index "file_assets", ["directory"], :name => "index_file_assets_on_directory"
463
- add_index "file_assets", ["file_asset_holder_id", "file_asset_holder_type"], :name => "file_asset_holder_idx"
464
- add_index "file_assets", ["name"], :name => "index_file_assets_on_name"
465
- add_index "file_assets", ["type"], :name => "index_file_assets_on_type"
466
-
467
- create_table "geo_countries", :force => true do |t|
468
- t.string "name"
469
- t.string "iso_code_2"
470
- t.string "iso_code_3"
471
- t.boolean "display", :default => true
472
- t.integer "external_id"
473
- t.datetime "created_at"
474
- end
475
-
476
- add_index "geo_countries", ["iso_code_2"], :name => "index_geo_countries_on_iso_code_2"
477
- add_index "geo_countries", ["name"], :name => "index_geo_countries_on_name"
478
-
479
- create_table "geo_zones", :force => true do |t|
480
- t.integer "geo_country_id"
481
- t.string "zone_code", :default => "2"
482
- t.string "zone_name"
483
- t.datetime "created_at"
484
- end
485
-
486
- add_index "geo_zones", ["geo_country_id"], :name => "index_geo_zones_on_geo_country_id"
487
- add_index "geo_zones", ["zone_code"], :name => "index_geo_zones_on_zone_code"
488
- add_index "geo_zones", ["zone_name"], :name => "index_geo_zones_on_zone_name"
489
-
490
- create_table "individuals", :force => true do |t|
491
- t.integer "party_id"
492
- t.string "current_last_name"
493
- t.string "current_first_name"
494
- t.string "current_middle_name"
495
- t.string "current_personal_title"
496
- t.string "current_suffix"
497
- t.string "current_nickname"
498
- t.string "gender", :limit => 1
499
- t.date "birth_date"
500
- t.decimal "height", :precision => 5, :scale => 2
501
- t.integer "weight"
502
- t.string "mothers_maiden_name"
503
- t.string "marital_status", :limit => 1
504
- t.string "social_security_number"
505
- t.integer "current_passport_number"
506
- t.date "current_passport_expire_date"
507
- t.integer "total_years_work_experience"
508
- t.string "comments"
509
- t.string "encrypted_ssn"
510
- t.string "temp_ssn"
511
- t.string "salt"
512
- t.string "ssn_last_four"
513
- t.datetime "created_at", :null => false
514
- t.datetime "updated_at", :null => false
515
- end
516
-
517
- add_index "individuals", ["party_id"], :name => "index_individuals_on_party_id"
518
-
519
- create_table "money", :force => true do |t|
520
- t.string "description"
521
- t.decimal "amount", :precision => 8, :scale => 2
522
- t.integer "currency_id"
523
- t.datetime "created_at", :null => false
524
- t.datetime "updated_at", :null => false
525
- end
526
-
527
- add_index "money", ["currency_id"], :name => "index_money_on_currency_id"
528
-
529
- create_table "note_types", :force => true do |t|
530
- t.integer "parent_id"
531
- t.integer "lft"
532
- t.integer "rgt"
533
- t.string "description"
534
- t.string "internal_identifier"
535
- t.string "external_identifier"
536
- t.integer "note_type_record_id"
537
- t.string "note_type_record_type"
538
- t.datetime "created_at", :null => false
539
- t.datetime "updated_at", :null => false
540
- end
541
-
542
- add_index "note_types", ["note_type_record_id", "note_type_record_type"], :name => "note_type_record_idx"
543
-
544
- create_table "notes", :force => true do |t|
545
- t.integer "created_by_id"
546
- t.text "content"
547
- t.integer "noted_record_id"
548
- t.string "noted_record_type"
549
- t.integer "note_type_id"
550
- t.datetime "created_at", :null => false
551
- t.datetime "updated_at", :null => false
552
- end
553
-
554
- add_index "notes", ["created_by_id"], :name => "index_notes_on_created_by_id"
555
- add_index "notes", ["note_type_id"], :name => "index_notes_on_note_type_id"
556
- add_index "notes", ["noted_record_id", "noted_record_type"], :name => "index_notes_on_noted_record_id_and_noted_record_type"
557
-
558
- create_table "organizations", :force => true do |t|
559
- t.string "description"
560
- t.string "tax_id_number"
561
- t.datetime "created_at", :null => false
562
- t.datetime "updated_at", :null => false
563
- end
564
-
565
- create_table "parties", :force => true do |t|
566
- t.string "description"
567
- t.integer "business_party_id"
568
- t.string "business_party_type"
569
- t.integer "list_view_image_id"
570
- t.string "enterprise_identifier"
571
- t.datetime "created_at", :null => false
572
- t.datetime "updated_at", :null => false
573
- end
574
-
575
- add_index "parties", ["business_party_id", "business_party_type"], :name => "besi_1"
576
-
577
- create_table "party_relationships", :force => true do |t|
578
- t.string "description"
579
- t.integer "party_id_from"
580
- t.integer "party_id_to"
581
- t.integer "role_type_id_from"
582
- t.integer "role_type_id_to"
583
- t.integer "status_type_id"
584
- t.integer "priority_type_id"
585
- t.integer "relationship_type_id"
586
- t.date "from_date"
587
- t.date "thru_date"
588
- t.string "external_identifier"
589
- t.string "external_id_source"
590
- t.datetime "created_at", :null => false
591
- t.datetime "updated_at", :null => false
592
- end
593
-
594
- add_index "party_relationships", ["priority_type_id"], :name => "index_party_relationships_on_priority_type_id"
595
- add_index "party_relationships", ["relationship_type_id"], :name => "index_party_relationships_on_relationship_type_id"
596
- add_index "party_relationships", ["status_type_id"], :name => "index_party_relationships_on_status_type_id"
597
-
598
- create_table "party_roles", :force => true do |t|
599
- t.string "type"
600
- t.integer "party_id"
601
- t.integer "role_type_id"
602
- t.datetime "created_at", :null => false
603
- t.datetime "updated_at", :null => false
604
- end
605
-
606
- add_index "party_roles", ["party_id"], :name => "index_party_roles_on_party_id"
607
- add_index "party_roles", ["role_type_id"], :name => "index_party_roles_on_role_type_id"
608
-
609
- create_table "party_search_facts", :force => true do |t|
610
- t.integer "party_id"
611
- t.string "eid"
612
- t.string "type"
613
- t.text "roles"
614
- t.string "party_description"
615
- t.string "party_business_party_type"
616
- t.string "user_login"
617
- t.string "individual_current_last_name"
618
- t.string "individual_current_first_name"
619
- t.string "individual_current_middle_name"
620
- t.string "individual_birth_date"
621
- t.string "individual_ssn"
622
- t.string "party_phone_number"
623
- t.string "party_email_address"
624
- t.string "party_address_1"
625
- t.string "party_address_2"
626
- t.string "party_primary_address_city"
627
- t.string "party_primary_address_state"
628
- t.string "party_primary_address_zip"
629
- t.string "party_primary_address_country"
630
- t.boolean "user_enabled"
631
- t.string "user_type"
632
- t.boolean "reindex"
633
- t.datetime "created_at", :null => false
634
- t.datetime "updated_at", :null => false
635
- end
636
-
637
- create_table "phone_numbers", :force => true do |t|
638
- t.string "phone_number"
639
- t.string "description"
640
- t.datetime "created_at", :null => false
641
- t.datetime "updated_at", :null => false
642
- end
643
-
644
- create_table "postal_addresses", :force => true do |t|
645
- t.string "address_line_1"
646
- t.string "address_line_2"
647
- t.string "city"
648
- t.string "state"
649
- t.string "zip"
650
- t.string "country"
651
- t.string "description"
652
- t.integer "geo_country_id"
653
- t.integer "geo_zone_id"
654
- t.datetime "created_at", :null => false
655
- t.datetime "updated_at", :null => false
656
- end
657
-
658
- add_index "postal_addresses", ["geo_country_id"], :name => "index_postal_addresses_on_geo_country_id"
659
- add_index "postal_addresses", ["geo_zone_id"], :name => "index_postal_addresses_on_geo_zone_id"
660
-
661
- create_table "preference_options", :force => true do |t|
662
- t.string "description"
663
- t.string "internal_identifier"
664
- t.string "value"
665
- t.datetime "created_at", :null => false
666
- t.datetime "updated_at", :null => false
667
- end
668
-
669
- create_table "preference_options_preference_types", :id => false, :force => true do |t|
670
- t.integer "preference_type_id"
671
- t.integer "preference_option_id"
672
- end
673
-
674
- add_index "preference_options_preference_types", ["preference_option_id"], :name => "pref_opt_pref_type_pref_opt_id_idx"
675
- add_index "preference_options_preference_types", ["preference_type_id"], :name => "pref_opt_pref_type_pref_type_id_idx"
676
-
677
- create_table "preference_types", :force => true do |t|
678
- t.string "description"
679
- t.string "internal_identifier"
680
- t.integer "default_pref_option_id"
681
- t.datetime "created_at", :null => false
682
- t.datetime "updated_at", :null => false
683
- end
684
-
685
- add_index "preference_types", ["default_pref_option_id"], :name => "index_preference_types_on_default_pref_option_id"
686
-
687
- create_table "preferences", :force => true do |t|
688
- t.integer "preference_option_id"
689
- t.integer "preference_type_id"
690
- t.datetime "created_at", :null => false
691
- t.datetime "updated_at", :null => false
692
- end
693
-
694
- add_index "preferences", ["preference_option_id"], :name => "index_preferences_on_preference_option_id"
695
- add_index "preferences", ["preference_type_id"], :name => "index_preferences_on_preference_type_id"
696
-
697
- create_table "relationship_types", :force => true do |t|
698
- t.integer "parent_id"
699
- t.integer "lft"
700
- t.integer "rgt"
701
- t.integer "valid_from_role_type_id"
702
- t.integer "valid_to_role_type_id"
703
- t.string "name"
704
- t.string "description"
705
- t.string "internal_identifier"
706
- t.string "external_identifier"
707
- t.string "external_id_source"
708
- t.datetime "created_at", :null => false
709
- t.datetime "updated_at", :null => false
710
- end
711
-
712
- add_index "relationship_types", ["valid_from_role_type_id"], :name => "index_relationship_types_on_valid_from_role_type_id"
713
- add_index "relationship_types", ["valid_to_role_type_id"], :name => "index_relationship_types_on_valid_to_role_type_id"
714
-
715
- create_table "reports", :force => true do |t|
716
- t.string "name"
717
- t.string "internal_identifier"
718
- t.text "template"
719
- t.text "query"
720
- t.datetime "created_at", :null => false
721
- t.datetime "updated_at", :null => false
722
- end
723
-
724
- create_table "role_types", :force => true do |t|
725
- t.integer "parent_id"
726
- t.integer "lft"
727
- t.integer "rgt"
728
- t.string "description"
729
- t.string "comments"
730
- t.string "internal_identifier"
731
- t.string "external_identifier"
732
- t.string "external_id_source"
733
- t.datetime "created_at", :null => false
734
- t.datetime "updated_at", :null => false
735
- end
736
-
737
- create_table "roles", :force => true do |t|
738
- t.string "description"
739
- t.string "internal_identifier"
740
- t.string "external_identifier"
741
- t.string "external_id_source"
742
- t.datetime "created_at", :null => false
743
- t.datetime "updated_at", :null => false
744
- end
745
-
746
- create_table "roles_secured_models", :id => false, :force => true do |t|
747
- t.integer "secured_model_id"
748
- t.integer "role_id"
749
- end
750
-
751
- add_index "roles_secured_models", ["role_id"], :name => "index_roles_secured_models_on_role_id"
752
- add_index "roles_secured_models", ["secured_model_id"], :name => "index_roles_secured_models_on_secured_model_id"
753
-
754
- create_table "secured_models", :force => true do |t|
755
- t.integer "secured_record_id"
756
- t.string "secured_record_type"
757
- t.datetime "created_at", :null => false
758
- t.datetime "updated_at", :null => false
759
- end
760
-
761
- add_index "secured_models", ["secured_record_id", "secured_record_type"], :name => "secured_record_idx"
762
-
763
- create_table "sessions", :force => true do |t|
764
- t.string "session_id", :null => false
765
- t.text "data"
766
- t.datetime "created_at", :null => false
767
- t.datetime "updated_at", :null => false
768
- end
769
-
770
- add_index "sessions", ["session_id"], :name => "index_sessions_on_session_id"
771
- add_index "sessions", ["updated_at"], :name => "index_sessions_on_updated_at"
772
-
773
- create_table "tickets", :force => true do |t|
774
- t.datetime "created_at", :null => false
775
- t.datetime "updated_at", :null => false
776
- end
777
-
778
- create_table "tree_menu_node_defs", :force => true do |t|
779
- t.string "node_type"
780
- t.integer "parent_id"
781
- t.integer "lft"
782
- t.integer "rgt"
783
- t.string "menu_short_name"
784
- t.string "menu_description"
785
- t.string "text"
786
- t.string "icon_url"
787
- t.string "target_url"
788
- t.string "resource_class"
789
- t.datetime "created_at", :null => false
790
- t.datetime "updated_at", :null => false
791
- end
792
-
793
- add_index "tree_menu_node_defs", ["parent_id"], :name => "index_tree_menu_node_defs_on_parent_id"
794
-
795
- create_table "user_preferences", :force => true do |t|
796
- t.integer "user_id"
797
- t.integer "preference_id"
798
- t.integer "preferenced_record_id"
799
- t.string "preferenced_record_type"
800
- t.datetime "created_at", :null => false
801
- t.datetime "updated_at", :null => false
802
- end
803
-
804
- add_index "user_preferences", ["preference_id"], :name => "index_user_preferences_on_preference_id"
805
- add_index "user_preferences", ["preferenced_record_id"], :name => "index_user_preferences_on_preferenced_record_id"
806
- add_index "user_preferences", ["preferenced_record_type"], :name => "index_user_preferences_on_preferenced_record_type"
807
- add_index "user_preferences", ["user_id"], :name => "index_user_preferences_on_user_id"
808
-
809
- create_table "users", :force => true do |t|
810
- t.string "username"
811
- t.string "email"
812
- t.integer "party_id"
813
- t.string "type"
814
- t.string "salt"
815
- t.string "crypted_password"
816
- t.datetime "last_login_at"
817
- t.datetime "last_logout_at"
818
- t.datetime "last_activity_at"
819
- t.integer "failed_logins_count", :default => 0
820
- t.datetime "lock_expires_at"
821
- t.string "remember_me_token"
822
- t.datetime "remember_me_token_expires_at"
823
- t.string "reset_password_token"
824
- t.datetime "reset_password_token_expires_at"
825
- t.datetime "reset_password_email_sent_at"
826
- t.string "activation_state"
827
- t.string "activation_token"
828
- t.datetime "activation_token_expires_at"
829
- t.string "security_question_1"
830
- t.string "security_answer_1"
831
- t.string "security_question_2"
832
- t.string "security_answer_2"
833
- t.datetime "created_at", :null => false
834
- t.datetime "updated_at", :null => false
835
- end
836
-
837
- add_index "users", ["activation_token"], :name => "index_users_on_activation_token"
838
- add_index "users", ["email"], :name => "index_users_on_email", :unique => true
839
- add_index "users", ["last_logout_at", "last_activity_at"], :name => "activity_idx"
840
- add_index "users", ["remember_me_token"], :name => "index_users_on_remember_me_token"
841
- add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token"
842
- add_index "users", ["username"], :name => "index_users_on_username", :unique => true
843
-
844
- create_table "valid_configurations", :force => true do |t|
845
- t.integer "configured_item_id"
846
- t.string "configured_item_type"
847
- t.integer "configuration_id"
848
- t.datetime "created_at", :null => false
849
- t.datetime "updated_at", :null => false
850
- end
851
-
852
- add_index "valid_configurations", ["configuration_id"], :name => "index_valid_configurations_on_configuration_id"
853
- add_index "valid_configurations", ["configured_item_id", "configured_item_type"], :name => "configured_item_poly_idx"
854
-
855
- create_table "valid_note_types", :force => true do |t|
856
- t.integer "valid_note_type_record_id"
857
- t.string "valid_note_type_record_type"
858
- t.integer "note_type_id"
859
- t.datetime "created_at", :null => false
860
- t.datetime "updated_at", :null => false
861
- end
862
-
863
- add_index "valid_note_types", ["note_type_id"], :name => "index_valid_note_types_on_note_type_id"
864
- add_index "valid_note_types", ["valid_note_type_record_id", "valid_note_type_record_type"], :name => "valid_note_type_record_idx"
865
-
866
- create_table "valid_preference_types", :force => true do |t|
867
- t.integer "preference_type_id"
868
- t.integer "preferenced_record_id"
869
- t.string "preferenced_record_type"
870
- end
871
-
872
- create_table "view_types", :force => true do |t|
873
- t.string "internal_identifier"
874
- t.string "description"
875
- t.datetime "created_at", :null => false
876
- t.datetime "updated_at", :null => false
877
- end
878
-
879
- create_table "widgets", :force => true do |t|
880
- t.string "description"
881
- t.string "internal_identifier"
882
- t.string "icon"
883
- t.string "xtype"
884
- t.datetime "created_at", :null => false
885
- t.datetime "updated_at", :null => false
886
- end
887
-
888
- end