erp_tech_svcs 3.0.5 → 3.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/erp_tech_svcs/file_support/railties/s3_resolver.rb +2 -2
- data/lib/erp_tech_svcs/file_support/s3_manager.rb +1 -1
- data/lib/erp_tech_svcs/version.rb +1 -1
- data/spec/dummy/db/schema.rb +600 -0
- data/spec/dummy/db/spec.sqlite3 +0 -0
- data/spec/dummy/log/adam.log +1 -0
- data/spec/dummy/log/spec.log +80513 -0
- metadata +64 -21
@@ -71,12 +71,12 @@ module ActionView
|
|
71
71
|
protected
|
72
72
|
|
73
73
|
def cache_key(path)
|
74
|
-
path.sub!(%r{^/},'')
|
75
74
|
Thread.current[:tenant_id].nil? ? path : "tenant_#{Thread.current[:tenant_id]}_#{path}"
|
76
75
|
end
|
77
76
|
|
78
77
|
def cache_template(path, file_support)
|
79
78
|
contents, message = file_support.get_contents(path)
|
79
|
+
path = path.sub(%r{^/},'')
|
80
80
|
#Rails.logger.info "creating cache with key: #{path}"
|
81
81
|
Rails.cache.write(cache_key(path), contents, :expires_in => ErpTechSvcs::Config.s3_cache_expires_in_minutes.minutes)
|
82
82
|
return contents, message
|
@@ -84,7 +84,7 @@ module ActionView
|
|
84
84
|
|
85
85
|
def build_template(p, virtual_path, formats, file_support, locals=nil)
|
86
86
|
handler, format = extract_handler_and_format(p, formats)
|
87
|
-
contents = Rails.cache.read(cache_key(p))
|
87
|
+
contents = Rails.cache.read(cache_key(p.sub(%r{^/},'')))
|
88
88
|
if contents.nil?
|
89
89
|
contents, message = cache_template(p, file_support)
|
90
90
|
else
|
@@ -29,7 +29,7 @@ module ErpTechSvcs
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def cache_key
|
32
|
-
|
32
|
+
Thread.current[:tenant_id].nil? ? 'node_tree' : "tenant_#{Thread.current[:tenant_id]}_node_tree"
|
33
33
|
end
|
34
34
|
|
35
35
|
def cache_node_tree(node_tree)
|
@@ -0,0 +1,600 @@
|
|
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 => 20111117183144) do
|
15
|
+
|
16
|
+
create_table "attribute_types", :force => true do |t|
|
17
|
+
t.string "internal_identifier"
|
18
|
+
t.string "description"
|
19
|
+
t.string "data_type"
|
20
|
+
t.datetime "created_at"
|
21
|
+
t.datetime "updated_at"
|
22
|
+
end
|
23
|
+
|
24
|
+
add_index "attribute_types", ["internal_identifier"], :name => ":attribute_types_iid_idx"
|
25
|
+
|
26
|
+
create_table "attribute_values", :force => true do |t|
|
27
|
+
t.integer "attributed_record_id"
|
28
|
+
t.string "attributed_record_type"
|
29
|
+
t.integer "attribute_type_id"
|
30
|
+
t.string "value"
|
31
|
+
t.datetime "created_at"
|
32
|
+
t.datetime "updated_at"
|
33
|
+
end
|
34
|
+
|
35
|
+
add_index "attribute_values", ["attribute_type_id"], :name => "attribute_values_attributed_type_idx"
|
36
|
+
add_index "attribute_values", ["attributed_record_id", "attributed_record_type"], :name => "attribute_values_attributed_record_idx"
|
37
|
+
add_index "attribute_values", ["value"], :name => "attribute_values_value_idx"
|
38
|
+
|
39
|
+
create_table "audit_log_item_types", :force => true do |t|
|
40
|
+
t.string "internal_identifier"
|
41
|
+
t.string "external_identifier"
|
42
|
+
t.string "external_id_source"
|
43
|
+
t.string "description"
|
44
|
+
t.string "comments"
|
45
|
+
t.integer "parent_id"
|
46
|
+
t.integer "lft"
|
47
|
+
t.integer "rgt"
|
48
|
+
t.datetime "created_at"
|
49
|
+
t.datetime "updated_at"
|
50
|
+
end
|
51
|
+
|
52
|
+
create_table "audit_log_items", :force => true do |t|
|
53
|
+
t.integer "audit_log_id"
|
54
|
+
t.integer "audit_log_item_type_id"
|
55
|
+
t.string "audit_log_item_value"
|
56
|
+
t.string "description"
|
57
|
+
t.datetime "created_at"
|
58
|
+
t.datetime "updated_at"
|
59
|
+
end
|
60
|
+
|
61
|
+
create_table "audit_log_types", :force => true do |t|
|
62
|
+
t.string "description"
|
63
|
+
t.string "error_code"
|
64
|
+
t.string "comments"
|
65
|
+
t.string "internal_identifier"
|
66
|
+
t.string "external_identifier"
|
67
|
+
t.string "external_id_source"
|
68
|
+
t.integer "parent_id"
|
69
|
+
t.integer "lft"
|
70
|
+
t.integer "rgt"
|
71
|
+
t.datetime "created_at"
|
72
|
+
t.datetime "updated_at"
|
73
|
+
end
|
74
|
+
|
75
|
+
create_table "audit_logs", :force => true do |t|
|
76
|
+
t.string "application"
|
77
|
+
t.string "description"
|
78
|
+
t.integer "party_id"
|
79
|
+
t.text "additional_info"
|
80
|
+
t.integer "audit_log_type_id"
|
81
|
+
t.integer "event_record_id"
|
82
|
+
t.string "event_record_type"
|
83
|
+
t.datetime "created_at"
|
84
|
+
t.datetime "updated_at"
|
85
|
+
end
|
86
|
+
|
87
|
+
add_index "audit_logs", ["event_record_id", "event_record_type"], :name => "event_record_index"
|
88
|
+
add_index "audit_logs", ["party_id"], :name => "index_audit_logs_on_party_id"
|
89
|
+
|
90
|
+
create_table "capabilities", :force => true do |t|
|
91
|
+
t.string "resource"
|
92
|
+
t.integer "capability_type_id"
|
93
|
+
t.datetime "created_at"
|
94
|
+
t.datetime "updated_at"
|
95
|
+
end
|
96
|
+
|
97
|
+
add_index "capabilities", ["capability_type_id"], :name => "index_capabilities_on_capability_type_id"
|
98
|
+
|
99
|
+
create_table "capabilities_capable_models", :id => false, :force => true do |t|
|
100
|
+
t.integer "capable_model_id"
|
101
|
+
t.integer "capability_id"
|
102
|
+
t.datetime "created_at"
|
103
|
+
t.datetime "updated_at"
|
104
|
+
end
|
105
|
+
|
106
|
+
add_index "capabilities_capable_models", ["capability_id"], :name => "index_capabilities_capable_models_on_capability_id"
|
107
|
+
add_index "capabilities_capable_models", ["capable_model_id"], :name => "index_capabilities_capable_models_on_capable_model_id"
|
108
|
+
|
109
|
+
create_table "capability_types", :force => true do |t|
|
110
|
+
t.string "internal_identifier"
|
111
|
+
t.string "description"
|
112
|
+
t.datetime "created_at"
|
113
|
+
t.datetime "updated_at"
|
114
|
+
end
|
115
|
+
|
116
|
+
create_table "capable_models", :force => true do |t|
|
117
|
+
t.integer "capable_model_record_id"
|
118
|
+
t.string "capable_model_record_type"
|
119
|
+
t.datetime "created_at"
|
120
|
+
t.datetime "updated_at"
|
121
|
+
end
|
122
|
+
|
123
|
+
add_index "capable_models", ["capable_model_record_id", "capable_model_record_type"], :name => "capable_model_record_idx"
|
124
|
+
|
125
|
+
create_table "categories", :force => true do |t|
|
126
|
+
t.string "description"
|
127
|
+
t.string "external_identifier"
|
128
|
+
t.datetime "from_date"
|
129
|
+
t.datetime "to_date"
|
130
|
+
t.string "internal_identifier"
|
131
|
+
t.integer "category_record_id"
|
132
|
+
t.string "category_record_type"
|
133
|
+
t.integer "parent_id"
|
134
|
+
t.integer "lft"
|
135
|
+
t.integer "rgt"
|
136
|
+
t.datetime "created_at"
|
137
|
+
t.datetime "updated_at"
|
138
|
+
end
|
139
|
+
|
140
|
+
add_index "categories", ["category_record_id", "category_record_type"], :name => "category_polymorphic"
|
141
|
+
|
142
|
+
create_table "category_classifications", :force => true do |t|
|
143
|
+
t.integer "category_id"
|
144
|
+
t.string "classification_type"
|
145
|
+
t.integer "classification_id"
|
146
|
+
t.datetime "from_date"
|
147
|
+
t.datetime "to_date"
|
148
|
+
t.datetime "created_at"
|
149
|
+
t.datetime "updated_at"
|
150
|
+
end
|
151
|
+
|
152
|
+
add_index "category_classifications", ["classification_id", "classification_type"], :name => "classification_polymorphic"
|
153
|
+
|
154
|
+
create_table "compass_ae_instances", :force => true do |t|
|
155
|
+
t.decimal "version"
|
156
|
+
t.datetime "created_at"
|
157
|
+
t.datetime "updated_at"
|
158
|
+
end
|
159
|
+
|
160
|
+
create_table "contact_purposes", :force => true do |t|
|
161
|
+
t.integer "parent_id"
|
162
|
+
t.integer "lft"
|
163
|
+
t.integer "rgt"
|
164
|
+
t.string "description"
|
165
|
+
t.string "comments"
|
166
|
+
t.string "internal_identifier"
|
167
|
+
t.string "external_identifier"
|
168
|
+
t.string "external_id_source"
|
169
|
+
t.datetime "created_at"
|
170
|
+
t.datetime "updated_at"
|
171
|
+
end
|
172
|
+
|
173
|
+
add_index "contact_purposes", ["parent_id"], :name => "index_contact_purposes_on_parent_id"
|
174
|
+
|
175
|
+
create_table "contact_purposes_contacts", :id => false, :force => true do |t|
|
176
|
+
t.integer "contact_id"
|
177
|
+
t.integer "contact_purpose_id"
|
178
|
+
end
|
179
|
+
|
180
|
+
add_index "contact_purposes_contacts", ["contact_id", "contact_purpose_id"], :name => "contact_purposes_contacts_index"
|
181
|
+
|
182
|
+
create_table "contact_types", :force => true do |t|
|
183
|
+
t.integer "parent_id"
|
184
|
+
t.integer "lft"
|
185
|
+
t.integer "rgt"
|
186
|
+
t.string "description"
|
187
|
+
t.string "comments"
|
188
|
+
t.string "internal_identifier"
|
189
|
+
t.string "external_identifier"
|
190
|
+
t.string "external_id_source"
|
191
|
+
t.datetime "created_at"
|
192
|
+
t.datetime "updated_at"
|
193
|
+
end
|
194
|
+
|
195
|
+
add_index "contact_types", ["parent_id"], :name => "index_contact_types_on_parent_id"
|
196
|
+
|
197
|
+
create_table "contacts", :force => true do |t|
|
198
|
+
t.integer "party_id"
|
199
|
+
t.integer "contact_mechanism_id"
|
200
|
+
t.string "contact_mechanism_type"
|
201
|
+
t.string "external_identifier"
|
202
|
+
t.string "external_id_source"
|
203
|
+
t.datetime "created_at"
|
204
|
+
t.datetime "updated_at"
|
205
|
+
end
|
206
|
+
|
207
|
+
add_index "contacts", ["contact_mechanism_id", "contact_mechanism_type"], :name => "besi_2"
|
208
|
+
add_index "contacts", ["party_id"], :name => "index_contacts_on_party_id"
|
209
|
+
|
210
|
+
create_table "currencies", :force => true do |t|
|
211
|
+
t.string "name"
|
212
|
+
t.string "definition"
|
213
|
+
t.string "internal_identifier"
|
214
|
+
t.string "numeric_code"
|
215
|
+
t.string "major_unit_symbol"
|
216
|
+
t.string "minor_unit_symbol"
|
217
|
+
t.string "ratio_of_minor_unit_to_major_unit"
|
218
|
+
t.string "postfix_label"
|
219
|
+
t.datetime "introduction_date"
|
220
|
+
t.datetime "expiration_date"
|
221
|
+
t.datetime "created_at"
|
222
|
+
t.datetime "updated_at"
|
223
|
+
end
|
224
|
+
|
225
|
+
add_index "currencies", ["internal_identifier"], :name => "index_currencies_on_internal_identifier"
|
226
|
+
|
227
|
+
create_table "delayed_jobs", :force => true do |t|
|
228
|
+
t.integer "priority", :default => 0
|
229
|
+
t.integer "attempts", :default => 0
|
230
|
+
t.text "handler"
|
231
|
+
t.text "last_error"
|
232
|
+
t.datetime "run_at"
|
233
|
+
t.datetime "locked_at"
|
234
|
+
t.datetime "failed_at"
|
235
|
+
t.string "locked_by"
|
236
|
+
t.string "queue"
|
237
|
+
t.datetime "created_at"
|
238
|
+
t.datetime "updated_at"
|
239
|
+
end
|
240
|
+
|
241
|
+
add_index "delayed_jobs", ["priority", "run_at"], :name => "delayed_jobs_priority"
|
242
|
+
|
243
|
+
create_table "descriptive_assets", :force => true do |t|
|
244
|
+
t.integer "view_type_id"
|
245
|
+
t.string "internal_identifier"
|
246
|
+
t.text "description"
|
247
|
+
t.string "external_identifier"
|
248
|
+
t.string "external_id_source"
|
249
|
+
t.integer "described_record_id"
|
250
|
+
t.string "described_record_type"
|
251
|
+
t.datetime "created_at"
|
252
|
+
t.datetime "updated_at"
|
253
|
+
end
|
254
|
+
|
255
|
+
add_index "descriptive_assets", ["described_record_id", "described_record_type"], :name => "described_record_idx"
|
256
|
+
add_index "descriptive_assets", ["view_type_id"], :name => "index_descriptive_assets_on_view_type_id"
|
257
|
+
|
258
|
+
create_table "email_addresses", :force => true do |t|
|
259
|
+
t.string "email_address"
|
260
|
+
t.string "description"
|
261
|
+
t.datetime "created_at"
|
262
|
+
t.datetime "updated_at"
|
263
|
+
end
|
264
|
+
|
265
|
+
create_table "file_assets", :force => true do |t|
|
266
|
+
t.integer "file_asset_holder_id"
|
267
|
+
t.string "file_asset_holder_type"
|
268
|
+
t.string "type"
|
269
|
+
t.string "name"
|
270
|
+
t.string "directory"
|
271
|
+
t.string "data_file_name"
|
272
|
+
t.string "data_content_type"
|
273
|
+
t.integer "data_file_size"
|
274
|
+
t.datetime "data_updated_at"
|
275
|
+
t.datetime "created_at"
|
276
|
+
t.datetime "updated_at"
|
277
|
+
end
|
278
|
+
|
279
|
+
add_index "file_assets", ["directory"], :name => "index_file_assets_on_directory"
|
280
|
+
add_index "file_assets", ["file_asset_holder_id", "file_asset_holder_type"], :name => "file_asset_holder_idx"
|
281
|
+
add_index "file_assets", ["name"], :name => "index_file_assets_on_name"
|
282
|
+
add_index "file_assets", ["type"], :name => "index_file_assets_on_type"
|
283
|
+
|
284
|
+
create_table "geo_countries", :force => true do |t|
|
285
|
+
t.string "name"
|
286
|
+
t.string "iso_code_2"
|
287
|
+
t.string "iso_code_3"
|
288
|
+
t.boolean "display", :default => true
|
289
|
+
t.integer "external_id"
|
290
|
+
t.datetime "created_at"
|
291
|
+
end
|
292
|
+
|
293
|
+
add_index "geo_countries", ["iso_code_2"], :name => "index_geo_countries_on_iso_code_2"
|
294
|
+
add_index "geo_countries", ["name"], :name => "index_geo_countries_on_name"
|
295
|
+
|
296
|
+
create_table "geo_zones", :force => true do |t|
|
297
|
+
t.integer "geo_country_id"
|
298
|
+
t.string "zone_code", :default => "2"
|
299
|
+
t.string "zone_name"
|
300
|
+
t.datetime "created_at"
|
301
|
+
end
|
302
|
+
|
303
|
+
add_index "geo_zones", ["geo_country_id"], :name => "index_geo_zones_on_geo_country_id"
|
304
|
+
add_index "geo_zones", ["zone_code"], :name => "index_geo_zones_on_zone_code"
|
305
|
+
add_index "geo_zones", ["zone_name"], :name => "index_geo_zones_on_zone_name"
|
306
|
+
|
307
|
+
create_table "individuals", :force => true do |t|
|
308
|
+
t.integer "party_id"
|
309
|
+
t.string "current_last_name"
|
310
|
+
t.string "current_first_name"
|
311
|
+
t.string "current_middle_name"
|
312
|
+
t.string "current_personal_title"
|
313
|
+
t.string "current_suffix"
|
314
|
+
t.string "current_nickname"
|
315
|
+
t.string "gender", :limit => 1
|
316
|
+
t.date "birth_date"
|
317
|
+
t.decimal "height", :precision => 5, :scale => 2
|
318
|
+
t.integer "weight"
|
319
|
+
t.string "mothers_maiden_name"
|
320
|
+
t.string "marital_status", :limit => 1
|
321
|
+
t.string "social_security_number"
|
322
|
+
t.integer "current_passport_number"
|
323
|
+
t.date "current_passport_expire_date"
|
324
|
+
t.integer "total_years_work_experience"
|
325
|
+
t.string "comments"
|
326
|
+
t.string "encrypted_ssn"
|
327
|
+
t.string "temp_ssn"
|
328
|
+
t.string "salt"
|
329
|
+
t.string "ssn_last_four"
|
330
|
+
t.datetime "created_at"
|
331
|
+
t.datetime "updated_at"
|
332
|
+
end
|
333
|
+
|
334
|
+
add_index "individuals", ["party_id"], :name => "index_individuals_on_party_id"
|
335
|
+
|
336
|
+
create_table "money", :force => true do |t|
|
337
|
+
t.string "description"
|
338
|
+
t.float "amount"
|
339
|
+
t.integer "currency_id"
|
340
|
+
t.datetime "created_at"
|
341
|
+
t.datetime "updated_at"
|
342
|
+
end
|
343
|
+
|
344
|
+
add_index "money", ["currency_id"], :name => "index_money_on_currency_id"
|
345
|
+
|
346
|
+
create_table "note_types", :force => true do |t|
|
347
|
+
t.integer "parent_id"
|
348
|
+
t.integer "lft"
|
349
|
+
t.integer "rgt"
|
350
|
+
t.string "description"
|
351
|
+
t.string "internal_identifier"
|
352
|
+
t.string "external_identifier"
|
353
|
+
t.integer "note_type_record_id"
|
354
|
+
t.string "note_type_record_type"
|
355
|
+
t.datetime "created_at"
|
356
|
+
t.datetime "updated_at"
|
357
|
+
end
|
358
|
+
|
359
|
+
add_index "note_types", ["note_type_record_id", "note_type_record_type"], :name => "note_type_record_idx"
|
360
|
+
|
361
|
+
create_table "notes", :force => true do |t|
|
362
|
+
t.integer "created_by_id"
|
363
|
+
t.text "content"
|
364
|
+
t.integer "noted_record_id"
|
365
|
+
t.string "noted_record_type"
|
366
|
+
t.integer "note_type_id"
|
367
|
+
t.datetime "created_at"
|
368
|
+
t.datetime "updated_at"
|
369
|
+
end
|
370
|
+
|
371
|
+
add_index "notes", ["created_by_id"], :name => "index_notes_on_created_by_id"
|
372
|
+
add_index "notes", ["note_type_id"], :name => "index_notes_on_note_type_id"
|
373
|
+
add_index "notes", ["noted_record_id", "noted_record_type"], :name => "index_notes_on_noted_record_id_and_noted_record_type"
|
374
|
+
|
375
|
+
create_table "organizations", :force => true do |t|
|
376
|
+
t.string "description"
|
377
|
+
t.string "tax_id_number"
|
378
|
+
t.datetime "created_at"
|
379
|
+
t.datetime "updated_at"
|
380
|
+
end
|
381
|
+
|
382
|
+
create_table "parties", :force => true do |t|
|
383
|
+
t.string "description"
|
384
|
+
t.integer "business_party_id"
|
385
|
+
t.string "business_party_type"
|
386
|
+
t.integer "list_view_image_id"
|
387
|
+
t.string "enterprise_identifier"
|
388
|
+
t.datetime "created_at"
|
389
|
+
t.datetime "updated_at"
|
390
|
+
end
|
391
|
+
|
392
|
+
add_index "parties", ["business_party_id", "business_party_type"], :name => "besi_1"
|
393
|
+
|
394
|
+
create_table "party_relationships", :force => true do |t|
|
395
|
+
t.string "description"
|
396
|
+
t.integer "party_id_from"
|
397
|
+
t.integer "party_id_to"
|
398
|
+
t.integer "role_type_id_from"
|
399
|
+
t.integer "role_type_id_to"
|
400
|
+
t.integer "status_type_id"
|
401
|
+
t.integer "priority_type_id"
|
402
|
+
t.integer "relationship_type_id"
|
403
|
+
t.date "from_date"
|
404
|
+
t.date "thru_date"
|
405
|
+
t.string "external_identifier"
|
406
|
+
t.string "external_id_source"
|
407
|
+
t.datetime "created_at"
|
408
|
+
t.datetime "updated_at"
|
409
|
+
end
|
410
|
+
|
411
|
+
add_index "party_relationships", ["priority_type_id"], :name => "index_party_relationships_on_priority_type_id"
|
412
|
+
add_index "party_relationships", ["relationship_type_id"], :name => "index_party_relationships_on_relationship_type_id"
|
413
|
+
add_index "party_relationships", ["status_type_id"], :name => "index_party_relationships_on_status_type_id"
|
414
|
+
|
415
|
+
create_table "party_roles", :force => true do |t|
|
416
|
+
t.string "type"
|
417
|
+
t.integer "party_id"
|
418
|
+
t.integer "role_type_id"
|
419
|
+
t.datetime "created_at"
|
420
|
+
t.datetime "updated_at"
|
421
|
+
end
|
422
|
+
|
423
|
+
add_index "party_roles", ["party_id"], :name => "index_party_roles_on_party_id"
|
424
|
+
add_index "party_roles", ["role_type_id"], :name => "index_party_roles_on_role_type_id"
|
425
|
+
|
426
|
+
create_table "party_search_facts", :force => true do |t|
|
427
|
+
t.integer "party_id"
|
428
|
+
t.string "eid"
|
429
|
+
t.string "type"
|
430
|
+
t.text "roles"
|
431
|
+
t.string "party_description"
|
432
|
+
t.string "party_business_party_type"
|
433
|
+
t.string "user_login"
|
434
|
+
t.string "individual_current_last_name"
|
435
|
+
t.string "individual_current_first_name"
|
436
|
+
t.string "individual_current_middle_name"
|
437
|
+
t.string "individual_birth_date"
|
438
|
+
t.string "individual_ssn"
|
439
|
+
t.string "party_phone_number"
|
440
|
+
t.string "party_email_address"
|
441
|
+
t.string "party_address_1"
|
442
|
+
t.string "party_address_2"
|
443
|
+
t.string "party_primary_address_city"
|
444
|
+
t.string "party_primary_address_state"
|
445
|
+
t.string "party_primary_address_zip"
|
446
|
+
t.string "party_primary_address_country"
|
447
|
+
t.boolean "user_enabled"
|
448
|
+
t.string "user_type"
|
449
|
+
t.boolean "reindex"
|
450
|
+
t.datetime "created_at"
|
451
|
+
t.datetime "updated_at"
|
452
|
+
end
|
453
|
+
|
454
|
+
create_table "phone_numbers", :force => true do |t|
|
455
|
+
t.string "phone_number"
|
456
|
+
t.string "description"
|
457
|
+
t.datetime "created_at"
|
458
|
+
t.datetime "updated_at"
|
459
|
+
end
|
460
|
+
|
461
|
+
create_table "postal_addresses", :force => true do |t|
|
462
|
+
t.string "address_line_1"
|
463
|
+
t.string "address_line_2"
|
464
|
+
t.string "city"
|
465
|
+
t.string "state"
|
466
|
+
t.string "zip"
|
467
|
+
t.string "country"
|
468
|
+
t.string "description"
|
469
|
+
t.integer "geo_country_id"
|
470
|
+
t.integer "geo_zone_id"
|
471
|
+
t.datetime "created_at"
|
472
|
+
t.datetime "updated_at"
|
473
|
+
end
|
474
|
+
|
475
|
+
add_index "postal_addresses", ["geo_country_id"], :name => "index_postal_addresses_on_geo_country_id"
|
476
|
+
add_index "postal_addresses", ["geo_zone_id"], :name => "index_postal_addresses_on_geo_zone_id"
|
477
|
+
|
478
|
+
create_table "relationship_types", :force => true do |t|
|
479
|
+
t.integer "parent_id"
|
480
|
+
t.integer "lft"
|
481
|
+
t.integer "rgt"
|
482
|
+
t.integer "valid_from_role_type_id"
|
483
|
+
t.integer "valid_to_role_type_id"
|
484
|
+
t.string "name"
|
485
|
+
t.string "description"
|
486
|
+
t.string "internal_identifier"
|
487
|
+
t.string "external_identifier"
|
488
|
+
t.string "external_id_source"
|
489
|
+
t.datetime "created_at"
|
490
|
+
t.datetime "updated_at"
|
491
|
+
end
|
492
|
+
|
493
|
+
add_index "relationship_types", ["valid_from_role_type_id"], :name => "index_relationship_types_on_valid_from_role_type_id"
|
494
|
+
add_index "relationship_types", ["valid_to_role_type_id"], :name => "index_relationship_types_on_valid_to_role_type_id"
|
495
|
+
|
496
|
+
create_table "role_types", :force => true do |t|
|
497
|
+
t.integer "parent_id"
|
498
|
+
t.integer "lft"
|
499
|
+
t.integer "rgt"
|
500
|
+
t.string "description"
|
501
|
+
t.string "comments"
|
502
|
+
t.string "internal_identifier"
|
503
|
+
t.string "external_identifier"
|
504
|
+
t.string "external_id_source"
|
505
|
+
t.datetime "created_at"
|
506
|
+
t.datetime "updated_at"
|
507
|
+
end
|
508
|
+
|
509
|
+
create_table "roles", :force => true do |t|
|
510
|
+
t.string "description"
|
511
|
+
t.string "internal_identifier"
|
512
|
+
t.string "external_identifier"
|
513
|
+
t.string "external_id_source"
|
514
|
+
t.datetime "created_at"
|
515
|
+
t.datetime "updated_at"
|
516
|
+
end
|
517
|
+
|
518
|
+
create_table "roles_secured_models", :id => false, :force => true do |t|
|
519
|
+
t.integer "secured_model_id"
|
520
|
+
t.integer "role_id"
|
521
|
+
t.datetime "created_at"
|
522
|
+
t.datetime "updated_at"
|
523
|
+
end
|
524
|
+
|
525
|
+
add_index "roles_secured_models", ["role_id"], :name => "index_roles_secured_models_on_role_id"
|
526
|
+
add_index "roles_secured_models", ["secured_model_id"], :name => "index_roles_secured_models_on_secured_model_id"
|
527
|
+
|
528
|
+
create_table "secured_models", :force => true do |t|
|
529
|
+
t.integer "secured_record_id"
|
530
|
+
t.string "secured_record_type"
|
531
|
+
t.datetime "created_at"
|
532
|
+
t.datetime "updated_at"
|
533
|
+
end
|
534
|
+
|
535
|
+
add_index "secured_models", ["secured_record_id", "secured_record_type"], :name => "secured_record_idx"
|
536
|
+
|
537
|
+
create_table "sessions", :force => true do |t|
|
538
|
+
t.string "session_id", :null => false
|
539
|
+
t.text "data"
|
540
|
+
t.datetime "created_at"
|
541
|
+
t.datetime "updated_at"
|
542
|
+
end
|
543
|
+
|
544
|
+
add_index "sessions", ["session_id"], :name => "index_sessions_on_session_id"
|
545
|
+
add_index "sessions", ["updated_at"], :name => "index_sessions_on_updated_at"
|
546
|
+
|
547
|
+
create_table "users", :force => true do |t|
|
548
|
+
t.string "username"
|
549
|
+
t.string "email"
|
550
|
+
t.integer "party_id"
|
551
|
+
t.string "type"
|
552
|
+
t.string "salt"
|
553
|
+
t.string "crypted_password"
|
554
|
+
t.datetime "last_login_at"
|
555
|
+
t.datetime "last_logout_at"
|
556
|
+
t.datetime "last_activity_at"
|
557
|
+
t.integer "failed_logins_count", :default => 0
|
558
|
+
t.datetime "lock_expires_at"
|
559
|
+
t.string "remember_me_token"
|
560
|
+
t.datetime "remember_me_token_expires_at"
|
561
|
+
t.string "reset_password_token"
|
562
|
+
t.datetime "reset_password_token_expires_at"
|
563
|
+
t.datetime "reset_password_email_sent_at"
|
564
|
+
t.string "activation_state"
|
565
|
+
t.string "activation_token"
|
566
|
+
t.datetime "activation_token_expires_at"
|
567
|
+
t.string "security_question_1"
|
568
|
+
t.string "security_answer_1"
|
569
|
+
t.string "security_question_2"
|
570
|
+
t.string "security_answer_2"
|
571
|
+
t.datetime "created_at"
|
572
|
+
t.datetime "updated_at"
|
573
|
+
end
|
574
|
+
|
575
|
+
add_index "users", ["activation_token"], :name => "index_users_on_activation_token"
|
576
|
+
add_index "users", ["email"], :name => "index_users_on_email", :unique => true
|
577
|
+
add_index "users", ["last_logout_at", "last_activity_at"], :name => "activity_idx"
|
578
|
+
add_index "users", ["remember_me_token"], :name => "index_users_on_remember_me_token"
|
579
|
+
add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token"
|
580
|
+
add_index "users", ["username"], :name => "index_users_on_username", :unique => true
|
581
|
+
|
582
|
+
create_table "valid_note_types", :force => true do |t|
|
583
|
+
t.integer "valid_note_type_record_id"
|
584
|
+
t.string "valid_note_type_record_type"
|
585
|
+
t.integer "note_type_id"
|
586
|
+
t.datetime "created_at"
|
587
|
+
t.datetime "updated_at"
|
588
|
+
end
|
589
|
+
|
590
|
+
add_index "valid_note_types", ["note_type_id"], :name => "index_valid_note_types_on_note_type_id"
|
591
|
+
add_index "valid_note_types", ["valid_note_type_record_id", "valid_note_type_record_type"], :name => "valid_note_type_record_idx"
|
592
|
+
|
593
|
+
create_table "view_types", :force => true do |t|
|
594
|
+
t.string "internal_identifier"
|
595
|
+
t.string "description"
|
596
|
+
t.datetime "created_at"
|
597
|
+
t.datetime "updated_at"
|
598
|
+
end
|
599
|
+
|
600
|
+
end
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
Connecting to database specified by database.yml
|