enju_flower 0.1.0.pre14 → 0.1.0.pre15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/lib/enju_flower/version.rb +1 -1
  3. data/spec/dummy/db/migrate/080_create_library_groups.rb +1 -3
  4. data/spec/dummy/db/schema.rb +168 -176
  5. data/spec/dummy/db/test.sqlite3 +0 -0
  6. data/spec/dummy/solr/default/data/index/_96.fdt +0 -0
  7. data/spec/dummy/solr/default/data/index/{_xg.fdx → _96.fdx} +0 -0
  8. data/spec/dummy/solr/default/data/index/{_xg.fnm → _96.fnm} +0 -0
  9. data/spec/dummy/solr/default/data/index/{_xg.nvd → _96.nvd} +0 -0
  10. data/spec/dummy/solr/default/data/index/{_xg.nvm → _96.nvm} +0 -0
  11. data/spec/dummy/solr/default/data/index/_96.si +0 -0
  12. data/spec/dummy/solr/default/data/index/{_xg_Lucene41_0.doc → _96_Lucene41_0.doc} +0 -0
  13. data/spec/dummy/solr/default/data/index/{_xg_Lucene41_0.pos → _96_Lucene41_0.pos} +0 -0
  14. data/spec/dummy/solr/default/data/index/{_xg_Lucene41_0.tim → _96_Lucene41_0.tim} +0 -0
  15. data/spec/dummy/solr/default/data/index/_96_Lucene41_0.tip +0 -0
  16. data/spec/dummy/solr/default/data/index/_97.fdt +0 -0
  17. data/spec/dummy/solr/default/data/index/{_xh.fdx → _97.fdx} +0 -0
  18. data/spec/dummy/solr/default/data/index/{_xh.fnm → _97.fnm} +0 -0
  19. data/spec/dummy/solr/default/data/index/{_xh.nvd → _97.nvd} +0 -0
  20. data/spec/dummy/solr/default/data/index/{_xh.nvm → _97.nvm} +0 -0
  21. data/spec/dummy/solr/default/data/index/_97.si +0 -0
  22. data/spec/dummy/solr/default/data/index/{_xh_Lucene41_0.doc → _97_Lucene41_0.doc} +0 -0
  23. data/spec/dummy/solr/default/data/index/{_xh_Lucene41_0.pos → _97_Lucene41_0.pos} +0 -0
  24. data/spec/dummy/solr/default/data/index/{_xh_Lucene41_0.tim → _97_Lucene41_0.tim} +0 -0
  25. data/spec/dummy/solr/default/data/index/_97_Lucene41_0.tip +0 -0
  26. data/spec/dummy/solr/default/data/index/_98.fdt +0 -0
  27. data/spec/dummy/solr/default/data/index/{_xi.fdx → _98.fdx} +0 -0
  28. data/spec/dummy/solr/default/data/index/{_xi.fnm → _98.fnm} +0 -0
  29. data/spec/dummy/solr/default/data/index/_98.nvd +0 -0
  30. data/spec/dummy/solr/default/data/index/{_xi.nvm → _98.nvm} +0 -0
  31. data/spec/dummy/solr/default/data/index/_98.si +0 -0
  32. data/spec/dummy/solr/default/data/index/_98_Lucene41_0.doc +0 -0
  33. data/spec/dummy/solr/default/data/index/_98_Lucene41_0.pos +0 -0
  34. data/spec/dummy/solr/default/data/index/_98_Lucene41_0.tim +0 -0
  35. data/spec/dummy/solr/default/data/index/_98_Lucene41_0.tip +0 -0
  36. data/spec/dummy/solr/default/data/index/segments.gen +0 -0
  37. data/spec/dummy/solr/default/data/index/segments_bn +0 -0
  38. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000415 +0 -0
  39. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000416 +0 -0
  40. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000417 +0 -0
  41. data/spec/dummy/tmp/cache/4F7/F90/default_role +0 -0
  42. data/spec/dummy/tmp/cache/6E4/420/search_engine_all +0 -0
  43. metadata +79 -79
  44. data/spec/dummy/solr/default/data/index/_xg.fdt +0 -0
  45. data/spec/dummy/solr/default/data/index/_xg.si +0 -0
  46. data/spec/dummy/solr/default/data/index/_xg_Lucene41_0.tip +0 -0
  47. data/spec/dummy/solr/default/data/index/_xh.fdt +0 -0
  48. data/spec/dummy/solr/default/data/index/_xh.si +0 -0
  49. data/spec/dummy/solr/default/data/index/_xh_Lucene41_0.tip +0 -0
  50. data/spec/dummy/solr/default/data/index/_xi.fdt +0 -0
  51. data/spec/dummy/solr/default/data/index/_xi.nvd +0 -0
  52. data/spec/dummy/solr/default/data/index/_xi.si +0 -0
  53. data/spec/dummy/solr/default/data/index/_xi_Lucene41_0.doc +0 -0
  54. data/spec/dummy/solr/default/data/index/_xi_Lucene41_0.pos +0 -0
  55. data/spec/dummy/solr/default/data/index/_xi_Lucene41_0.tim +0 -0
  56. data/spec/dummy/solr/default/data/index/_xi_Lucene41_0.tip +0 -0
  57. data/spec/dummy/solr/default/data/index/segments_178 +0 -0
  58. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001552 +0 -0
  59. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001553 +0 -0
  60. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000001554 +0 -0
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # It's strongly recommended to check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(:version => 20130519065837) do
14
+ ActiveRecord::Schema.define(:version => 20130509185724) do
15
15
 
16
16
  create_table "agent_import_files", :force => true do |t|
17
17
  t.integer "parent_id"
@@ -25,8 +25,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
25
25
  t.string "agent_import_content_type"
26
26
  t.integer "agent_import_file_size"
27
27
  t.datetime "agent_import_updated_at"
28
- t.datetime "created_at"
29
- t.datetime "updated_at"
28
+ t.datetime "created_at", :null => false
29
+ t.datetime "updated_at", :null => false
30
30
  t.string "agent_import_fingerprint"
31
31
  t.text "error_message"
32
32
  t.string "edit_mode"
@@ -41,8 +41,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
41
41
  t.integer "agent_id"
42
42
  t.integer "user_id"
43
43
  t.text "body"
44
- t.datetime "created_at"
45
- t.datetime "updated_at"
44
+ t.datetime "created_at", :null => false
45
+ t.datetime "updated_at", :null => false
46
46
  end
47
47
 
48
48
  create_table "agent_relationship_types", :force => true do |t|
@@ -50,16 +50,16 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
50
50
  t.text "display_name"
51
51
  t.text "note"
52
52
  t.integer "position"
53
- t.datetime "created_at"
54
- t.datetime "updated_at"
53
+ t.datetime "created_at", :null => false
54
+ t.datetime "updated_at", :null => false
55
55
  end
56
56
 
57
57
  create_table "agent_relationships", :force => true do |t|
58
58
  t.integer "parent_id"
59
59
  t.integer "child_id"
60
60
  t.integer "agent_relationship_type_id"
61
- t.datetime "created_at"
62
- t.datetime "updated_at"
61
+ t.datetime "created_at", :null => false
62
+ t.datetime "updated_at", :null => false
63
63
  t.integer "position"
64
64
  end
65
65
 
@@ -71,8 +71,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
71
71
  t.text "display_name"
72
72
  t.text "note"
73
73
  t.integer "position"
74
- t.datetime "created_at"
75
- t.datetime "updated_at"
74
+ t.datetime "created_at", :null => false
75
+ t.datetime "updated_at", :null => false
76
76
  end
77
77
 
78
78
  create_table "agents", :force => true do |t|
@@ -88,8 +88,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
88
88
  t.string "full_name"
89
89
  t.text "full_name_transcription"
90
90
  t.text "full_name_alternative"
91
- t.datetime "created_at"
92
- t.datetime "updated_at"
91
+ t.datetime "created_at", :null => false
92
+ t.datetime "updated_at", :null => false
93
93
  t.datetime "deleted_at"
94
94
  t.string "zip_code_1"
95
95
  t.string "zip_code_2"
@@ -136,8 +136,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
136
136
  t.integer "user_id"
137
137
  t.text "note"
138
138
  t.integer "lock_version", :default => 0, :null => false
139
- t.datetime "created_at"
140
- t.datetime "updated_at"
139
+ t.datetime "created_at", :null => false
140
+ t.datetime "updated_at", :null => false
141
141
  end
142
142
 
143
143
  add_index "baskets", ["user_id"], :name => "index_baskets_on_user_id"
@@ -146,8 +146,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
146
146
  t.integer "bookmark_stat_id", :null => false
147
147
  t.integer "manifestation_id", :null => false
148
148
  t.integer "bookmarks_count"
149
- t.datetime "created_at"
150
- t.datetime "updated_at"
149
+ t.datetime "created_at", :null => false
150
+ t.datetime "updated_at", :null => false
151
151
  end
152
152
 
153
153
  add_index "bookmark_stat_has_manifestations", ["bookmark_stat_id"], :name => "index_bookmark_stat_has_manifestations_on_bookmark_stat_id"
@@ -160,8 +160,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
160
160
  t.datetime "completed_at"
161
161
  t.text "note"
162
162
  t.string "state"
163
- t.datetime "created_at"
164
- t.datetime "updated_at"
163
+ t.datetime "created_at", :null => false
164
+ t.datetime "updated_at", :null => false
165
165
  end
166
166
 
167
167
  add_index "bookmark_stats", ["state"], :name => "index_bookmark_stats_on_state"
@@ -173,8 +173,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
173
173
  t.string "url"
174
174
  t.text "note"
175
175
  t.boolean "shared"
176
- t.datetime "created_at"
177
- t.datetime "updated_at"
176
+ t.datetime "created_at", :null => false
177
+ t.datetime "updated_at", :null => false
178
178
  end
179
179
 
180
180
  add_index "bookmarks", ["manifestation_id"], :name => "index_bookmarks_on_manifestation_id"
@@ -191,8 +191,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
191
191
  t.string "url"
192
192
  t.integer "position"
193
193
  t.datetime "deleted_at"
194
- t.datetime "created_at"
195
- t.datetime "updated_at"
194
+ t.datetime "created_at", :null => false
195
+ t.datetime "updated_at", :null => false
196
196
  end
197
197
 
198
198
  create_table "budget_types", :force => true do |t|
@@ -200,8 +200,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
200
200
  t.text "display_name"
201
201
  t.text "note"
202
202
  t.integer "position"
203
- t.datetime "created_at"
204
- t.datetime "updated_at"
203
+ t.datetime "created_at", :null => false
204
+ t.datetime "updated_at", :null => false
205
205
  end
206
206
 
207
207
  create_table "carrier_type_has_checkout_types", :force => true do |t|
@@ -209,8 +209,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
209
209
  t.integer "checkout_type_id", :null => false
210
210
  t.text "note"
211
211
  t.integer "position"
212
- t.datetime "created_at"
213
- t.datetime "updated_at"
212
+ t.datetime "created_at", :null => false
213
+ t.datetime "updated_at", :null => false
214
214
  end
215
215
 
216
216
  add_index "carrier_type_has_checkout_types", ["carrier_type_id"], :name => "index_carrier_type_has_checkout_types_on_m_form_id"
@@ -221,16 +221,16 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
221
221
  t.text "display_name"
222
222
  t.text "note"
223
223
  t.integer "position"
224
- t.datetime "created_at"
225
- t.datetime "updated_at"
224
+ t.datetime "created_at", :null => false
225
+ t.datetime "updated_at", :null => false
226
226
  end
227
227
 
228
228
  create_table "checked_items", :force => true do |t|
229
229
  t.integer "item_id", :null => false
230
230
  t.integer "basket_id", :null => false
231
231
  t.datetime "due_date", :null => false
232
- t.datetime "created_at"
233
- t.datetime "updated_at"
232
+ t.datetime "created_at", :null => false
233
+ t.datetime "updated_at", :null => false
234
234
  t.integer "librarian_id"
235
235
  end
236
236
 
@@ -238,12 +238,11 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
238
238
  add_index "checked_items", ["item_id"], :name => "index_checked_items_on_item_id"
239
239
 
240
240
  create_table "checkins", :force => true do |t|
241
- t.integer "item_id", :null => false
241
+ t.integer "item_id", :null => false
242
242
  t.integer "librarian_id"
243
243
  t.integer "basket_id"
244
- t.datetime "created_at"
245
- t.datetime "updated_at"
246
- t.integer "lock_version", :default => 0, :null => false
244
+ t.datetime "created_at", :null => false
245
+ t.datetime "updated_at", :null => false
247
246
  end
248
247
 
249
248
  add_index "checkins", ["basket_id"], :name => "index_checkins_on_basket_id"
@@ -254,8 +253,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
254
253
  t.integer "manifestation_checkout_stat_id", :null => false
255
254
  t.integer "manifestation_id", :null => false
256
255
  t.integer "checkouts_count"
257
- t.datetime "created_at"
258
- t.datetime "updated_at"
256
+ t.datetime "created_at", :null => false
257
+ t.datetime "updated_at", :null => false
259
258
  end
260
259
 
261
260
  add_index "checkout_stat_has_manifestations", ["manifestation_checkout_stat_id"], :name => "index_checkout_stat_has_manifestations_on_checkout_stat_id"
@@ -265,8 +264,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
265
264
  t.integer "user_checkout_stat_id", :null => false
266
265
  t.integer "user_id", :null => false
267
266
  t.integer "checkouts_count", :default => 0, :null => false
268
- t.datetime "created_at"
269
- t.datetime "updated_at"
267
+ t.datetime "created_at", :null => false
268
+ t.datetime "updated_at", :null => false
270
269
  end
271
270
 
272
271
  add_index "checkout_stat_has_users", ["user_checkout_stat_id"], :name => "index_checkout_stat_has_users_on_user_checkout_stat_id"
@@ -277,8 +276,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
277
276
  t.text "display_name"
278
277
  t.text "note"
279
278
  t.integer "position"
280
- t.datetime "created_at"
281
- t.datetime "updated_at"
279
+ t.datetime "created_at", :null => false
280
+ t.datetime "updated_at", :null => false
282
281
  end
283
282
 
284
283
  add_index "checkout_types", ["name"], :name => "index_checkout_types_on_name"
@@ -292,8 +291,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
292
291
  t.datetime "due_date"
293
292
  t.integer "checkout_renewal_count", :default => 0, :null => false
294
293
  t.integer "lock_version", :default => 0, :null => false
295
- t.datetime "created_at"
296
- t.datetime "updated_at"
294
+ t.datetime "created_at", :null => false
295
+ t.datetime "updated_at", :null => false
297
296
  end
298
297
 
299
298
  add_index "checkouts", ["basket_id"], :name => "index_checkouts_on_basket_id"
@@ -308,8 +307,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
308
307
  t.text "display_name"
309
308
  t.text "note"
310
309
  t.integer "position"
311
- t.datetime "created_at"
312
- t.datetime "updated_at"
310
+ t.datetime "created_at", :null => false
311
+ t.datetime "updated_at", :null => false
313
312
  end
314
313
 
315
314
  create_table "content_types", :force => true do |t|
@@ -317,8 +316,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
317
316
  t.text "display_name"
318
317
  t.text "note"
319
318
  t.integer "position"
320
- t.datetime "created_at"
321
- t.datetime "updated_at"
319
+ t.datetime "created_at", :null => false
320
+ t.datetime "updated_at", :null => false
322
321
  end
323
322
 
324
323
  create_table "countries", :force => true do |t|
@@ -341,16 +340,16 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
341
340
  t.text "display_name"
342
341
  t.text "note"
343
342
  t.integer "position"
344
- t.datetime "created_at"
345
- t.datetime "updated_at"
343
+ t.datetime "created_at", :null => false
344
+ t.datetime "updated_at", :null => false
346
345
  end
347
346
 
348
347
  create_table "creates", :force => true do |t|
349
348
  t.integer "agent_id", :null => false
350
349
  t.integer "work_id", :null => false
351
350
  t.integer "position"
352
- t.datetime "created_at"
353
- t.datetime "updated_at"
351
+ t.datetime "created_at", :null => false
352
+ t.datetime "updated_at", :null => false
354
353
  t.integer "create_type_id"
355
354
  end
356
355
 
@@ -366,8 +365,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
366
365
  t.datetime "locked_at"
367
366
  t.datetime "failed_at"
368
367
  t.string "locked_by"
369
- t.datetime "created_at"
370
- t.datetime "updated_at"
368
+ t.datetime "created_at", :null => false
369
+ t.datetime "updated_at", :null => false
371
370
  t.string "queue"
372
371
  end
373
372
 
@@ -376,8 +375,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
376
375
  create_table "donates", :force => true do |t|
377
376
  t.integer "agent_id", :null => false
378
377
  t.integer "item_id", :null => false
379
- t.datetime "created_at"
380
- t.datetime "updated_at"
378
+ t.datetime "created_at", :null => false
379
+ t.datetime "updated_at", :null => false
381
380
  end
382
381
 
383
382
  add_index "donates", ["agent_id"], :name => "index_donates_on_agent_id"
@@ -388,8 +387,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
388
387
  t.text "display_name"
389
388
  t.text "note"
390
389
  t.integer "position"
391
- t.datetime "created_at"
392
- t.datetime "updated_at"
390
+ t.datetime "created_at", :null => false
391
+ t.datetime "updated_at", :null => false
393
392
  end
394
393
 
395
394
  create_table "event_import_files", :force => true do |t|
@@ -405,8 +404,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
405
404
  t.integer "event_import_file_size"
406
405
  t.datetime "event_import_updated_at"
407
406
  t.string "edit_mode"
408
- t.datetime "created_at"
409
- t.datetime "updated_at"
407
+ t.datetime "created_at", :null => false
408
+ t.datetime "updated_at", :null => false
410
409
  t.string "event_import_fingerprint"
411
410
  t.text "error_message"
412
411
  end
@@ -419,8 +418,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
419
418
  t.integer "event_import_file_id"
420
419
  t.integer "event_id"
421
420
  t.text "body"
422
- t.datetime "created_at"
423
- t.datetime "updated_at"
421
+ t.datetime "created_at", :null => false
422
+ t.datetime "updated_at", :null => false
424
423
  end
425
424
 
426
425
  create_table "events", :force => true do |t|
@@ -433,8 +432,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
433
432
  t.boolean "all_day", :default => false, :null => false
434
433
  t.datetime "deleted_at"
435
434
  t.text "display_name"
436
- t.datetime "created_at"
437
- t.datetime "updated_at"
435
+ t.datetime "created_at", :null => false
436
+ t.datetime "updated_at", :null => false
438
437
  end
439
438
 
440
439
  add_index "events", ["event_category_id"], :name => "index_events_on_event_category_id"
@@ -444,8 +443,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
444
443
  t.integer "manifestation_id", :null => false
445
444
  t.integer "item_id", :null => false
446
445
  t.integer "position"
447
- t.datetime "created_at"
448
- t.datetime "updated_at"
446
+ t.datetime "created_at", :null => false
447
+ t.datetime "updated_at", :null => false
449
448
  end
450
449
 
451
450
  add_index "exemplifies", ["item_id"], :name => "index_exemplifies_on_item_id", :unique => true
@@ -456,8 +455,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
456
455
  t.text "display_name"
457
456
  t.text "note"
458
457
  t.integer "position"
459
- t.datetime "created_at"
460
- t.datetime "updated_at"
458
+ t.datetime "created_at", :null => false
459
+ t.datetime "updated_at", :null => false
461
460
  end
462
461
 
463
462
  create_table "form_of_works", :force => true do |t|
@@ -465,8 +464,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
465
464
  t.text "display_name"
466
465
  t.text "note"
467
466
  t.integer "position"
468
- t.datetime "created_at"
469
- t.datetime "updated_at"
467
+ t.datetime "created_at", :null => false
468
+ t.datetime "updated_at", :null => false
470
469
  end
471
470
 
472
471
  create_table "frequencies", :force => true do |t|
@@ -474,8 +473,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
474
473
  t.text "display_name"
475
474
  t.text "note"
476
475
  t.integer "position"
477
- t.datetime "created_at"
478
- t.datetime "updated_at"
476
+ t.datetime "created_at", :null => false
477
+ t.datetime "updated_at", :null => false
479
478
  end
480
479
 
481
480
  create_table "identifier_types", :force => true do |t|
@@ -483,8 +482,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
483
482
  t.text "display_name"
484
483
  t.text "note"
485
484
  t.integer "position"
486
- t.datetime "created_at"
487
- t.datetime "updated_at"
485
+ t.datetime "created_at", :null => false
486
+ t.datetime "updated_at", :null => false
488
487
  end
489
488
 
490
489
  create_table "identifiers", :force => true do |t|
@@ -493,8 +492,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
493
492
  t.integer "manifestation_id"
494
493
  t.boolean "primary"
495
494
  t.integer "position"
496
- t.datetime "created_at"
497
- t.datetime "updated_at"
495
+ t.datetime "created_at", :null => false
496
+ t.datetime "updated_at", :null => false
498
497
  end
499
498
 
500
499
  add_index "identifiers", ["body", "identifier_type_id"], :name => "index_identifiers_on_body_and_identifier_type_id"
@@ -505,8 +504,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
505
504
  t.string "state"
506
505
  t.integer "manifestation_id"
507
506
  t.integer "user_id"
508
- t.datetime "created_at"
509
- t.datetime "updated_at"
507
+ t.datetime "created_at", :null => false
508
+ t.datetime "updated_at", :null => false
510
509
  end
511
510
 
512
511
  add_index "import_requests", ["isbn"], :name => "index_import_requests_on_isbn"
@@ -517,8 +516,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
517
516
  t.integer "item_id"
518
517
  t.integer "inventory_file_id"
519
518
  t.text "note"
520
- t.datetime "created_at"
521
- t.datetime "updated_at"
519
+ t.datetime "created_at", :null => false
520
+ t.datetime "updated_at", :null => false
522
521
  end
523
522
 
524
523
  add_index "inventories", ["inventory_file_id"], :name => "index_inventories_on_inventory_file_id"
@@ -530,8 +529,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
530
529
  t.integer "size"
531
530
  t.integer "user_id"
532
531
  t.text "note"
533
- t.datetime "created_at"
534
- t.datetime "updated_at"
532
+ t.datetime "created_at", :null => false
533
+ t.datetime "updated_at", :null => false
535
534
  t.string "inventory_file_name"
536
535
  t.string "inventory_content_type"
537
536
  t.integer "inventory_file_size"
@@ -544,19 +543,18 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
544
543
  create_table "item_has_use_restrictions", :force => true do |t|
545
544
  t.integer "item_id", :null => false
546
545
  t.integer "use_restriction_id", :null => false
547
- t.datetime "created_at"
548
- t.datetime "updated_at"
546
+ t.datetime "created_at", :null => false
547
+ t.datetime "updated_at", :null => false
549
548
  end
550
549
 
551
550
  add_index "item_has_use_restrictions", ["item_id"], :name => "index_item_has_use_restrictions_on_item_id"
552
551
  add_index "item_has_use_restrictions", ["use_restriction_id"], :name => "index_item_has_use_restrictions_on_use_restriction_id"
553
552
 
554
553
  create_table "items", :force => true do |t|
555
- t.integer "manifestation_id"
556
554
  t.string "call_number"
557
555
  t.string "item_identifier"
558
- t.datetime "created_at"
559
- t.datetime "updated_at"
556
+ t.datetime "created_at", :null => false
557
+ t.datetime "updated_at", :null => false
560
558
  t.datetime "deleted_at"
561
559
  t.integer "shelf_id", :default => 1, :null => false
562
560
  t.boolean "include_supplements", :default => false, :null => false
@@ -578,7 +576,6 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
578
576
  add_index "items", ["checkout_type_id"], :name => "index_items_on_checkout_type_id"
579
577
  add_index "items", ["circulation_status_id"], :name => "index_items_on_circulation_status_id"
580
578
  add_index "items", ["item_identifier"], :name => "index_items_on_item_identifier"
581
- add_index "items", ["manifestation_id"], :name => "index_items_on_manifestation_id"
582
579
  add_index "items", ["required_role_id"], :name => "index_items_on_required_role_id"
583
580
  add_index "items", ["shelf_id"], :name => "index_items_on_shelf_id"
584
581
 
@@ -607,8 +604,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
607
604
  t.integer "fine", :default => 0, :null => false
608
605
  t.text "note"
609
606
  t.integer "position"
610
- t.datetime "created_at"
611
- t.datetime "updated_at"
607
+ t.datetime "created_at", :null => false
608
+ t.datetime "updated_at", :null => false
612
609
  end
613
610
 
614
611
  add_index "lending_policies", ["item_id", "user_group_id"], :name => "index_lending_policies_on_item_id_and_user_group_id", :unique => true
@@ -631,8 +628,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
631
628
  t.integer "users_count", :default => 0, :null => false
632
629
  t.integer "position"
633
630
  t.integer "country_id"
634
- t.datetime "created_at"
635
- t.datetime "updated_at"
631
+ t.datetime "created_at", :null => false
632
+ t.datetime "updated_at", :null => false
636
633
  t.datetime "deleted_at"
637
634
  t.string "isil"
638
635
  end
@@ -646,13 +643,12 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
646
643
  t.string "short_name", :null => false
647
644
  t.string "email"
648
645
  t.text "my_networks"
649
- t.boolean "use_dsbl", :default => false, :null => false
650
- t.text "dsbl_list"
651
646
  t.text "login_banner"
652
647
  t.text "note"
653
648
  t.integer "country_id"
654
- t.datetime "created_at"
655
- t.datetime "updated_at"
649
+ t.integer "position"
650
+ t.datetime "created_at", :null => false
651
+ t.datetime "updated_at", :null => false
656
652
  t.text "admin_networks"
657
653
  t.boolean "allow_bookmark_external_url", :default => false, :null => false
658
654
  t.string "url", :default => "http://localhost:3000/"
@@ -665,8 +661,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
665
661
  t.string "display_name"
666
662
  t.text "note"
667
663
  t.integer "position"
668
- t.datetime "created_at"
669
- t.datetime "updated_at"
664
+ t.datetime "created_at", :null => false
665
+ t.datetime "updated_at", :null => false
670
666
  end
671
667
 
672
668
  create_table "manifestation_checkout_stats", :force => true do |t|
@@ -674,8 +670,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
674
670
  t.datetime "end_date"
675
671
  t.text "note"
676
672
  t.string "state"
677
- t.datetime "created_at"
678
- t.datetime "updated_at"
673
+ t.datetime "created_at", :null => false
674
+ t.datetime "updated_at", :null => false
679
675
  t.datetime "started_at"
680
676
  t.datetime "completed_at"
681
677
  end
@@ -687,16 +683,16 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
687
683
  t.text "display_name"
688
684
  t.text "note"
689
685
  t.integer "position"
690
- t.datetime "created_at"
691
- t.datetime "updated_at"
686
+ t.datetime "created_at", :null => false
687
+ t.datetime "updated_at", :null => false
692
688
  end
693
689
 
694
690
  create_table "manifestation_relationships", :force => true do |t|
695
691
  t.integer "parent_id"
696
692
  t.integer "child_id"
697
693
  t.integer "manifestation_relationship_type_id"
698
- t.datetime "created_at"
699
- t.datetime "updated_at"
694
+ t.datetime "created_at", :null => false
695
+ t.datetime "updated_at", :null => false
700
696
  t.integer "position"
701
697
  end
702
698
 
@@ -708,8 +704,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
708
704
  t.datetime "end_date"
709
705
  t.text "note"
710
706
  t.string "state"
711
- t.datetime "created_at"
712
- t.datetime "updated_at"
707
+ t.datetime "created_at", :null => false
708
+ t.datetime "updated_at", :null => false
713
709
  t.datetime "started_at"
714
710
  t.datetime "completed_at"
715
711
  end
@@ -724,8 +720,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
724
720
  t.string "manifestation_identifier"
725
721
  t.datetime "date_of_publication"
726
722
  t.datetime "date_copyrighted"
727
- t.datetime "created_at"
728
- t.datetime "updated_at"
723
+ t.datetime "created_at", :null => false
724
+ t.datetime "updated_at", :null => false
729
725
  t.datetime "deleted_at"
730
726
  t.string "access_address"
731
727
  t.integer "language_id", :default => 1, :null => false
@@ -800,8 +796,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
800
796
  t.text "display_name"
801
797
  t.text "note"
802
798
  t.integer "position"
803
- t.datetime "created_at"
804
- t.datetime "updated_at"
799
+ t.datetime "created_at", :null => false
800
+ t.datetime "updated_at", :null => false
805
801
  end
806
802
 
807
803
  create_table "message_requests", :force => true do |t|
@@ -812,8 +808,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
812
808
  t.datetime "deleted_at"
813
809
  t.text "body"
814
810
  t.string "state"
815
- t.datetime "created_at"
816
- t.datetime "updated_at"
811
+ t.datetime "created_at", :null => false
812
+ t.datetime "updated_at", :null => false
817
813
  end
818
814
 
819
815
  add_index "message_requests", ["state"], :name => "index_message_requests_on_state"
@@ -824,8 +820,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
824
820
  t.text "body", :null => false
825
821
  t.integer "position"
826
822
  t.string "locale", :default => "ja"
827
- t.datetime "created_at"
828
- t.datetime "updated_at"
823
+ t.datetime "created_at", :null => false
824
+ t.datetime "updated_at", :null => false
829
825
  end
830
826
 
831
827
  add_index "message_templates", ["status"], :name => "index_message_templates_on_status", :unique => true
@@ -839,8 +835,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
839
835
  t.integer "message_request_id"
840
836
  t.string "state"
841
837
  t.integer "parent_id"
842
- t.datetime "created_at"
843
- t.datetime "updated_at"
838
+ t.datetime "created_at", :null => false
839
+ t.datetime "updated_at", :null => false
844
840
  t.integer "lft"
845
841
  t.integer "rgt"
846
842
  t.integer "depth"
@@ -855,8 +851,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
855
851
  t.integer "agent_id", :null => false
856
852
  t.integer "item_id", :null => false
857
853
  t.integer "position"
858
- t.datetime "created_at"
859
- t.datetime "updated_at"
854
+ t.datetime "created_at", :null => false
855
+ t.datetime "updated_at", :null => false
860
856
  end
861
857
 
862
858
  add_index "owns", ["agent_id"], :name => "index_owns_on_agent_id"
@@ -866,8 +862,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
866
862
  t.integer "agent_id", :null => false
867
863
  t.integer "event_id", :null => false
868
864
  t.integer "position"
869
- t.datetime "created_at"
870
- t.datetime "updated_at"
865
+ t.datetime "created_at", :null => false
866
+ t.datetime "updated_at", :null => false
871
867
  end
872
868
 
873
869
  add_index "participates", ["agent_id"], :name => "index_participates_on_agent_id"
@@ -880,8 +876,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
880
876
  t.text "title"
881
877
  t.string "thumbnail"
882
878
  t.integer "position"
883
- t.datetime "created_at"
884
- t.datetime "updated_at"
879
+ t.datetime "created_at", :null => false
880
+ t.datetime "updated_at", :null => false
885
881
  t.string "picture_file_name"
886
882
  t.string "picture_content_type"
887
883
  t.integer "picture_file_size"
@@ -897,16 +893,16 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
897
893
  t.text "display_name"
898
894
  t.text "note"
899
895
  t.integer "position"
900
- t.datetime "created_at"
901
- t.datetime "updated_at"
896
+ t.datetime "created_at", :null => false
897
+ t.datetime "updated_at", :null => false
902
898
  end
903
899
 
904
900
  create_table "produces", :force => true do |t|
905
901
  t.integer "agent_id", :null => false
906
902
  t.integer "manifestation_id", :null => false
907
903
  t.integer "position"
908
- t.datetime "created_at"
909
- t.datetime "updated_at"
904
+ t.datetime "created_at", :null => false
905
+ t.datetime "updated_at", :null => false
910
906
  t.integer "produce_type_id"
911
907
  end
912
908
 
@@ -918,16 +914,16 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
918
914
  t.text "display_name"
919
915
  t.text "note"
920
916
  t.integer "position"
921
- t.datetime "created_at"
922
- t.datetime "updated_at"
917
+ t.datetime "created_at", :null => false
918
+ t.datetime "updated_at", :null => false
923
919
  end
924
920
 
925
921
  create_table "realizes", :force => true do |t|
926
922
  t.integer "agent_id", :null => false
927
923
  t.integer "expression_id", :null => false
928
924
  t.integer "position"
929
- t.datetime "created_at"
930
- t.datetime "updated_at"
925
+ t.datetime "created_at", :null => false
926
+ t.datetime "updated_at", :null => false
931
927
  t.integer "realize_type_id"
932
928
  end
933
929
 
@@ -939,8 +935,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
939
935
  t.text "display_name"
940
936
  t.text "note"
941
937
  t.integer "position"
942
- t.datetime "created_at"
943
- t.datetime "updated_at"
938
+ t.datetime "created_at", :null => false
939
+ t.datetime "updated_at", :null => false
944
940
  end
945
941
 
946
942
  create_table "request_types", :force => true do |t|
@@ -948,16 +944,16 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
948
944
  t.text "display_name"
949
945
  t.text "note"
950
946
  t.integer "position"
951
- t.datetime "created_at"
952
- t.datetime "updated_at"
947
+ t.datetime "created_at", :null => false
948
+ t.datetime "updated_at", :null => false
953
949
  end
954
950
 
955
951
  create_table "reserve_stat_has_manifestations", :force => true do |t|
956
952
  t.integer "manifestation_reserve_stat_id", :null => false
957
953
  t.integer "manifestation_id", :null => false
958
954
  t.integer "reserves_count"
959
- t.datetime "created_at"
960
- t.datetime "updated_at"
955
+ t.datetime "created_at", :null => false
956
+ t.datetime "updated_at", :null => false
961
957
  end
962
958
 
963
959
  add_index "reserve_stat_has_manifestations", ["manifestation_id"], :name => "index_reserve_stat_has_manifestations_on_manifestation_id"
@@ -967,8 +963,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
967
963
  t.integer "user_reserve_stat_id", :null => false
968
964
  t.integer "user_id", :null => false
969
965
  t.integer "reserves_count"
970
- t.datetime "created_at"
971
- t.datetime "updated_at"
966
+ t.datetime "created_at", :null => false
967
+ t.datetime "updated_at", :null => false
972
968
  end
973
969
 
974
970
  add_index "reserve_stat_has_users", ["user_id"], :name => "index_reserve_stat_has_users_on_user_id"
@@ -980,23 +976,19 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
980
976
  t.integer "item_id"
981
977
  t.integer "request_status_type_id", :null => false
982
978
  t.datetime "checked_out_at"
983
- t.datetime "created_at"
984
- t.datetime "updated_at"
979
+ t.datetime "created_at", :null => false
980
+ t.datetime "updated_at", :null => false
985
981
  t.datetime "canceled_at"
986
982
  t.datetime "expired_at"
987
983
  t.datetime "deleted_at"
988
984
  t.string "state"
989
985
  t.boolean "expiration_notice_to_agent", :default => false
990
986
  t.boolean "expiration_notice_to_library", :default => false
991
- t.datetime "retained_at"
992
- t.datetime "postponed_at"
993
- t.integer "lock_version", :default => 0, :null => false
994
987
  end
995
988
 
996
989
  add_index "reserves", ["item_id"], :name => "index_reserves_on_item_id"
997
990
  add_index "reserves", ["manifestation_id"], :name => "index_reserves_on_manifestation_id"
998
991
  add_index "reserves", ["request_status_type_id"], :name => "index_reserves_on_request_status_type_id"
999
- add_index "reserves", ["state"], :name => "index_reserves_on_state"
1000
992
  add_index "reserves", ["user_id"], :name => "index_reserves_on_user_id"
1001
993
 
1002
994
  create_table "resource_import_files", :force => true do |t|
@@ -1011,8 +1003,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
1011
1003
  t.string "resource_import_content_type"
1012
1004
  t.integer "resource_import_file_size"
1013
1005
  t.datetime "resource_import_updated_at"
1014
- t.datetime "created_at"
1015
- t.datetime "updated_at"
1006
+ t.datetime "created_at", :null => false
1007
+ t.datetime "updated_at", :null => false
1016
1008
  t.string "edit_mode"
1017
1009
  t.string "resource_import_fingerprint"
1018
1010
  t.text "error_message"
@@ -1027,8 +1019,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
1027
1019
  t.integer "manifestation_id"
1028
1020
  t.integer "item_id"
1029
1021
  t.text "body"
1030
- t.datetime "created_at"
1031
- t.datetime "updated_at"
1022
+ t.datetime "created_at", :null => false
1023
+ t.datetime "updated_at", :null => false
1032
1024
  end
1033
1025
 
1034
1026
  add_index "resource_import_results", ["item_id"], :name => "index_resource_import_results_on_item_id"
@@ -1040,8 +1032,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
1040
1032
  t.text "display_name"
1041
1033
  t.text "note"
1042
1034
  t.integer "position"
1043
- t.datetime "created_at"
1044
- t.datetime "updated_at"
1035
+ t.datetime "created_at", :null => false
1036
+ t.datetime "updated_at", :null => false
1045
1037
  end
1046
1038
 
1047
1039
  create_table "search_engines", :force => true do |t|
@@ -1054,16 +1046,16 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
1054
1046
  t.text "additional_param"
1055
1047
  t.text "note"
1056
1048
  t.integer "position"
1057
- t.datetime "created_at"
1058
- t.datetime "updated_at"
1049
+ t.datetime "created_at", :null => false
1050
+ t.datetime "updated_at", :null => false
1059
1051
  end
1060
1052
 
1061
1053
  create_table "series_has_manifestations", :force => true do |t|
1062
1054
  t.integer "series_statement_id"
1063
1055
  t.integer "manifestation_id"
1064
1056
  t.integer "position"
1065
- t.datetime "created_at"
1066
- t.datetime "updated_at"
1057
+ t.datetime "created_at", :null => false
1058
+ t.datetime "updated_at", :null => false
1067
1059
  end
1068
1060
 
1069
1061
  add_index "series_has_manifestations", ["manifestation_id"], :name => "index_series_has_manifestations_on_manifestation_id"
@@ -1073,8 +1065,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
1073
1065
  t.integer "parent_id"
1074
1066
  t.integer "child_id"
1075
1067
  t.integer "position"
1076
- t.datetime "created_at"
1077
- t.datetime "updated_at"
1068
+ t.datetime "created_at", :null => false
1069
+ t.datetime "updated_at", :null => false
1078
1070
  end
1079
1071
 
1080
1072
  create_table "series_statements", :force => true do |t|
@@ -1083,8 +1075,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
1083
1075
  t.text "title_subseries"
1084
1076
  t.text "numbering_subseries"
1085
1077
  t.integer "position"
1086
- t.datetime "created_at"
1087
- t.datetime "updated_at"
1078
+ t.datetime "created_at", :null => false
1079
+ t.datetime "updated_at", :null => false
1088
1080
  t.text "title_transcription"
1089
1081
  t.text "title_alternative"
1090
1082
  t.string "series_statement_identifier"
@@ -1111,8 +1103,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
1111
1103
  t.integer "library_id", :default => 1, :null => false
1112
1104
  t.integer "items_count", :default => 0, :null => false
1113
1105
  t.integer "position"
1114
- t.datetime "created_at"
1115
- t.datetime "updated_at"
1106
+ t.datetime "created_at", :null => false
1107
+ t.datetime "updated_at", :null => false
1116
1108
  t.datetime "deleted_at"
1117
1109
  t.boolean "closed", :default => false, :null => false
1118
1110
  end
@@ -1135,8 +1127,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
1135
1127
  create_table "tags", :force => true do |t|
1136
1128
  t.string "name"
1137
1129
  t.string "name_transcription"
1138
- t.datetime "created_at"
1139
- t.datetime "updated_at"
1130
+ t.datetime "created_at", :null => false
1131
+ t.datetime "updated_at", :null => false
1140
1132
  end
1141
1133
 
1142
1134
  create_table "use_restrictions", :force => true do |t|
@@ -1144,8 +1136,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
1144
1136
  t.text "display_name"
1145
1137
  t.text "note"
1146
1138
  t.integer "position"
1147
- t.datetime "created_at"
1148
- t.datetime "updated_at"
1139
+ t.datetime "created_at", :null => false
1140
+ t.datetime "updated_at", :null => false
1149
1141
  end
1150
1142
 
1151
1143
  create_table "user_checkout_stats", :force => true do |t|
@@ -1153,8 +1145,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
1153
1145
  t.datetime "end_date"
1154
1146
  t.text "note"
1155
1147
  t.string "state"
1156
- t.datetime "created_at"
1157
- t.datetime "updated_at"
1148
+ t.datetime "created_at", :null => false
1149
+ t.datetime "updated_at", :null => false
1158
1150
  t.datetime "started_at"
1159
1151
  t.datetime "completed_at"
1160
1152
  end
@@ -1173,8 +1165,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
1173
1165
  t.datetime "fixed_due_date"
1174
1166
  t.text "note"
1175
1167
  t.integer "position"
1176
- t.datetime "created_at"
1177
- t.datetime "updated_at"
1168
+ t.datetime "created_at", :null => false
1169
+ t.datetime "updated_at", :null => false
1178
1170
  t.integer "current_checkout_count"
1179
1171
  end
1180
1172
 
@@ -1183,12 +1175,12 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
1183
1175
 
1184
1176
  create_table "user_groups", :force => true do |t|
1185
1177
  t.string "name"
1186
- t.text "string"
1178
+ t.string "string"
1187
1179
  t.text "display_name"
1188
1180
  t.text "note"
1189
1181
  t.integer "position"
1190
- t.datetime "created_at"
1191
- t.datetime "updated_at"
1182
+ t.datetime "created_at", :null => false
1183
+ t.datetime "updated_at", :null => false
1192
1184
  t.datetime "deleted_at"
1193
1185
  t.integer "valid_period_for_new_user", :default => 0, :null => false
1194
1186
  t.datetime "expired_at"
@@ -1200,8 +1192,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
1200
1192
  create_table "user_has_roles", :force => true do |t|
1201
1193
  t.integer "user_id"
1202
1194
  t.integer "role_id"
1203
- t.datetime "created_at"
1204
- t.datetime "updated_at"
1195
+ t.datetime "created_at", :null => false
1196
+ t.datetime "updated_at", :null => false
1205
1197
  end
1206
1198
 
1207
1199
  create_table "user_reserve_stats", :force => true do |t|
@@ -1209,8 +1201,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
1209
1201
  t.datetime "end_date"
1210
1202
  t.text "note"
1211
1203
  t.string "state"
1212
- t.datetime "created_at"
1213
- t.datetime "updated_at"
1204
+ t.datetime "created_at", :null => false
1205
+ t.datetime "updated_at", :null => false
1214
1206
  t.datetime "started_at"
1215
1207
  t.datetime "completed_at"
1216
1208
  end
@@ -1218,8 +1210,8 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
1218
1210
  add_index "user_reserve_stats", ["state"], :name => "index_user_reserve_stats_on_state"
1219
1211
 
1220
1212
  create_table "users", :force => true do |t|
1221
- t.datetime "created_at"
1222
- t.datetime "updated_at"
1213
+ t.datetime "created_at", :null => false
1214
+ t.datetime "updated_at", :null => false
1223
1215
  t.string "email", :default => "", :null => false
1224
1216
  t.string "encrypted_password", :default => "", :null => false
1225
1217
  t.string "reset_password_token"