enju_question 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.
@@ -13,7 +13,7 @@
13
13
 
14
14
  ActiveRecord::Schema.define(version: 20140812093836) do
15
15
 
16
- create_table "accepts", force: true do |t|
16
+ create_table "accepts", force: :cascade do |t|
17
17
  t.integer "basket_id"
18
18
  t.integer "item_id"
19
19
  t.integer "librarian_id"
@@ -24,7 +24,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
24
24
  add_index "accepts", ["basket_id"], name: "index_accepts_on_basket_id"
25
25
  add_index "accepts", ["item_id"], name: "index_accepts_on_item_id"
26
26
 
27
- create_table "agent_import_file_transitions", force: true do |t|
27
+ create_table "agent_import_file_transitions", force: :cascade do |t|
28
28
  t.string "to_state"
29
29
  t.text "metadata", default: "{}"
30
30
  t.integer "sort_key"
@@ -36,7 +36,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
36
36
  add_index "agent_import_file_transitions", ["agent_import_file_id"], name: "index_agent_import_file_transitions_on_agent_import_file_id"
37
37
  add_index "agent_import_file_transitions", ["sort_key", "agent_import_file_id"], name: "index_agent_import_file_transitions_on_sort_key_and_file_id", unique: true
38
38
 
39
- create_table "agent_import_files", force: true do |t|
39
+ create_table "agent_import_files", force: :cascade do |t|
40
40
  t.integer "parent_id"
41
41
  t.string "content_type"
42
42
  t.integer "size"
@@ -58,7 +58,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
58
58
  add_index "agent_import_files", ["parent_id"], name: "index_agent_import_files_on_parent_id"
59
59
  add_index "agent_import_files", ["user_id"], name: "index_agent_import_files_on_user_id"
60
60
 
61
- create_table "agent_import_results", force: true do |t|
61
+ create_table "agent_import_results", force: :cascade do |t|
62
62
  t.integer "agent_import_file_id"
63
63
  t.integer "agent_id"
64
64
  t.integer "user_id"
@@ -67,13 +67,13 @@ ActiveRecord::Schema.define(version: 20140812093836) do
67
67
  t.datetime "updated_at"
68
68
  end
69
69
 
70
- create_table "agent_merge_lists", force: true do |t|
70
+ create_table "agent_merge_lists", force: :cascade do |t|
71
71
  t.string "title"
72
72
  t.datetime "created_at"
73
73
  t.datetime "updated_at"
74
74
  end
75
75
 
76
- create_table "agent_merges", force: true do |t|
76
+ create_table "agent_merges", force: :cascade do |t|
77
77
  t.integer "agent_id", null: false
78
78
  t.integer "agent_merge_list_id", null: false
79
79
  t.datetime "created_at"
@@ -83,7 +83,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
83
83
  add_index "agent_merges", ["agent_id"], name: "index_agent_merges_on_agent_id"
84
84
  add_index "agent_merges", ["agent_merge_list_id"], name: "index_agent_merges_on_agent_merge_list_id"
85
85
 
86
- create_table "agent_relationship_types", force: true do |t|
86
+ create_table "agent_relationship_types", force: :cascade do |t|
87
87
  t.string "name", null: false
88
88
  t.text "display_name"
89
89
  t.text "note"
@@ -92,7 +92,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
92
92
  t.datetime "updated_at"
93
93
  end
94
94
 
95
- create_table "agent_relationships", force: true do |t|
95
+ create_table "agent_relationships", force: :cascade do |t|
96
96
  t.integer "parent_id"
97
97
  t.integer "child_id"
98
98
  t.integer "agent_relationship_type_id"
@@ -104,7 +104,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
104
104
  add_index "agent_relationships", ["child_id"], name: "index_agent_relationships_on_child_id"
105
105
  add_index "agent_relationships", ["parent_id"], name: "index_agent_relationships_on_parent_id"
106
106
 
107
- create_table "agent_types", force: true do |t|
107
+ create_table "agent_types", force: :cascade do |t|
108
108
  t.string "name", null: false
109
109
  t.text "display_name"
110
110
  t.text "note"
@@ -113,7 +113,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
113
113
  t.datetime "updated_at"
114
114
  end
115
115
 
116
- create_table "agents", force: true do |t|
116
+ create_table "agents", force: :cascade do |t|
117
117
  t.integer "user_id"
118
118
  t.string "last_name"
119
119
  t.string "middle_name"
@@ -169,7 +169,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
169
169
  add_index "agents", ["required_role_id"], name: "index_agents_on_required_role_id"
170
170
  add_index "agents", ["user_id"], name: "index_agents_on_user_id", unique: true
171
171
 
172
- create_table "answer_has_items", force: true do |t|
172
+ create_table "answer_has_items", force: :cascade do |t|
173
173
  t.integer "answer_id"
174
174
  t.integer "item_id"
175
175
  t.integer "position"
@@ -180,7 +180,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
180
180
  add_index "answer_has_items", ["answer_id"], name: "index_answer_has_items_on_answer_id"
181
181
  add_index "answer_has_items", ["item_id"], name: "index_answer_has_items_on_item_id"
182
182
 
183
- create_table "answers", force: true do |t|
183
+ create_table "answers", force: :cascade do |t|
184
184
  t.integer "user_id", null: false
185
185
  t.integer "question_id", null: false
186
186
  t.text "body"
@@ -196,7 +196,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
196
196
  add_index "answers", ["question_id"], name: "index_answers_on_question_id"
197
197
  add_index "answers", ["user_id"], name: "index_answers_on_user_id"
198
198
 
199
- create_table "baskets", force: true do |t|
199
+ create_table "baskets", force: :cascade do |t|
200
200
  t.integer "user_id"
201
201
  t.text "note"
202
202
  t.integer "lock_version", default: 0, null: false
@@ -206,7 +206,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
206
206
 
207
207
  add_index "baskets", ["user_id"], name: "index_baskets_on_user_id"
208
208
 
209
- create_table "bookmark_stat_has_manifestations", force: true do |t|
209
+ create_table "bookmark_stat_has_manifestations", force: :cascade do |t|
210
210
  t.integer "bookmark_stat_id", null: false
211
211
  t.integer "manifestation_id", null: false
212
212
  t.integer "bookmarks_count"
@@ -217,7 +217,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
217
217
  add_index "bookmark_stat_has_manifestations", ["bookmark_stat_id"], name: "index_bookmark_stat_has_manifestations_on_bookmark_stat_id"
218
218
  add_index "bookmark_stat_has_manifestations", ["manifestation_id"], name: "index_bookmark_stat_has_manifestations_on_manifestation_id"
219
219
 
220
- create_table "bookmark_stat_transitions", force: true do |t|
220
+ create_table "bookmark_stat_transitions", force: :cascade do |t|
221
221
  t.string "to_state"
222
222
  t.text "metadata", default: "{}"
223
223
  t.integer "sort_key"
@@ -229,7 +229,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
229
229
  add_index "bookmark_stat_transitions", ["bookmark_stat_id"], name: "index_bookmark_stat_transitions_on_bookmark_stat_id"
230
230
  add_index "bookmark_stat_transitions", ["sort_key", "bookmark_stat_id"], name: "index_bookmark_stat_transitions_on_sort_key_and_stat_id", unique: true
231
231
 
232
- create_table "bookmark_stats", force: true do |t|
232
+ create_table "bookmark_stats", force: :cascade do |t|
233
233
  t.datetime "start_date"
234
234
  t.datetime "end_date"
235
235
  t.datetime "started_at"
@@ -242,7 +242,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
242
242
 
243
243
  add_index "bookmark_stats", ["state"], name: "index_bookmark_stats_on_state"
244
244
 
245
- create_table "bookmarks", force: true do |t|
245
+ create_table "bookmarks", force: :cascade do |t|
246
246
  t.integer "user_id", null: false
247
247
  t.integer "manifestation_id"
248
248
  t.text "title"
@@ -257,7 +257,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
257
257
  add_index "bookmarks", ["url"], name: "index_bookmarks_on_url"
258
258
  add_index "bookmarks", ["user_id"], name: "index_bookmarks_on_user_id"
259
259
 
260
- create_table "bookstores", force: true do |t|
260
+ create_table "bookstores", force: :cascade do |t|
261
261
  t.text "name", null: false
262
262
  t.string "zip_code"
263
263
  t.text "address"
@@ -271,7 +271,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
271
271
  t.datetime "updated_at"
272
272
  end
273
273
 
274
- create_table "budget_types", force: true do |t|
274
+ create_table "budget_types", force: :cascade do |t|
275
275
  t.string "name"
276
276
  t.text "display_name"
277
277
  t.text "note"
@@ -280,7 +280,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
280
280
  t.datetime "updated_at"
281
281
  end
282
282
 
283
- create_table "carrier_types", force: true do |t|
283
+ create_table "carrier_types", force: :cascade do |t|
284
284
  t.string "name", null: false
285
285
  t.text "display_name"
286
286
  t.text "note"
@@ -289,7 +289,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
289
289
  t.datetime "updated_at"
290
290
  end
291
291
 
292
- create_table "content_types", force: true do |t|
292
+ create_table "content_types", force: :cascade do |t|
293
293
  t.string "name", null: false
294
294
  t.text "display_name"
295
295
  t.text "note"
@@ -298,7 +298,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
298
298
  t.datetime "updated_at"
299
299
  end
300
300
 
301
- create_table "countries", force: true do |t|
301
+ create_table "countries", force: :cascade do |t|
302
302
  t.string "name", null: false
303
303
  t.text "display_name"
304
304
  t.string "alpha_2"
@@ -313,7 +313,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
313
313
  add_index "countries", ["name"], name: "index_countries_on_name"
314
314
  add_index "countries", ["numeric_3"], name: "index_countries_on_numeric_3"
315
315
 
316
- create_table "create_types", force: true do |t|
316
+ create_table "create_types", force: :cascade do |t|
317
317
  t.string "name"
318
318
  t.text "display_name"
319
319
  t.text "note"
@@ -322,7 +322,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
322
322
  t.datetime "updated_at"
323
323
  end
324
324
 
325
- create_table "creates", force: true do |t|
325
+ create_table "creates", force: :cascade do |t|
326
326
  t.integer "agent_id", null: false
327
327
  t.integer "work_id", null: false
328
328
  t.integer "position"
@@ -334,7 +334,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
334
334
  add_index "creates", ["agent_id"], name: "index_creates_on_agent_id"
335
335
  add_index "creates", ["work_id"], name: "index_creates_on_work_id"
336
336
 
337
- create_table "donates", force: true do |t|
337
+ create_table "donates", force: :cascade do |t|
338
338
  t.integer "agent_id", null: false
339
339
  t.integer "item_id", null: false
340
340
  t.datetime "created_at"
@@ -344,7 +344,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
344
344
  add_index "donates", ["agent_id"], name: "index_donates_on_agent_id"
345
345
  add_index "donates", ["item_id"], name: "index_donates_on_item_id"
346
346
 
347
- create_table "exemplifies", force: true do |t|
347
+ create_table "exemplifies", force: :cascade do |t|
348
348
  t.integer "manifestation_id", null: false
349
349
  t.integer "item_id", null: false
350
350
  t.integer "position"
@@ -355,7 +355,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
355
355
  add_index "exemplifies", ["item_id"], name: "index_exemplifies_on_item_id", unique: true
356
356
  add_index "exemplifies", ["manifestation_id"], name: "index_exemplifies_on_manifestation_id"
357
357
 
358
- create_table "extents", force: true do |t|
358
+ create_table "extents", force: :cascade do |t|
359
359
  t.string "name", null: false
360
360
  t.text "display_name"
361
361
  t.text "note"
@@ -364,7 +364,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
364
364
  t.datetime "updated_at"
365
365
  end
366
366
 
367
- create_table "form_of_works", force: true do |t|
367
+ create_table "form_of_works", force: :cascade do |t|
368
368
  t.string "name", null: false
369
369
  t.text "display_name"
370
370
  t.text "note"
@@ -373,7 +373,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
373
373
  t.datetime "updated_at"
374
374
  end
375
375
 
376
- create_table "frequencies", force: true do |t|
376
+ create_table "frequencies", force: :cascade do |t|
377
377
  t.string "name", null: false
378
378
  t.text "display_name"
379
379
  t.text "note"
@@ -382,7 +382,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
382
382
  t.datetime "updated_at"
383
383
  end
384
384
 
385
- create_table "identifier_types", force: true do |t|
385
+ create_table "identifier_types", force: :cascade do |t|
386
386
  t.string "name"
387
387
  t.text "display_name"
388
388
  t.text "note"
@@ -391,7 +391,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
391
391
  t.datetime "updated_at"
392
392
  end
393
393
 
394
- create_table "identifiers", force: true do |t|
394
+ create_table "identifiers", force: :cascade do |t|
395
395
  t.string "body", null: false
396
396
  t.integer "identifier_type_id", null: false
397
397
  t.integer "manifestation_id"
@@ -404,7 +404,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
404
404
  add_index "identifiers", ["body", "identifier_type_id"], name: "index_identifiers_on_body_and_identifier_type_id"
405
405
  add_index "identifiers", ["manifestation_id"], name: "index_identifiers_on_manifestation_id"
406
406
 
407
- create_table "import_request_transitions", force: true do |t|
407
+ create_table "import_request_transitions", force: :cascade do |t|
408
408
  t.string "to_state"
409
409
  t.text "metadata", default: "{}"
410
410
  t.integer "sort_key"
@@ -416,7 +416,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
416
416
  add_index "import_request_transitions", ["import_request_id"], name: "index_import_request_transitions_on_import_request_id"
417
417
  add_index "import_request_transitions", ["sort_key", "import_request_id"], name: "index_import_request_transitions_on_sort_key_and_request_id", unique: true
418
418
 
419
- create_table "import_requests", force: true do |t|
419
+ create_table "import_requests", force: :cascade do |t|
420
420
  t.string "isbn"
421
421
  t.integer "manifestation_id"
422
422
  t.integer "user_id"
@@ -428,7 +428,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
428
428
  add_index "import_requests", ["manifestation_id"], name: "index_import_requests_on_manifestation_id"
429
429
  add_index "import_requests", ["user_id"], name: "index_import_requests_on_user_id"
430
430
 
431
- create_table "items", force: true do |t|
431
+ create_table "items", force: :cascade do |t|
432
432
  t.string "call_number"
433
433
  t.string "item_identifier"
434
434
  t.datetime "created_at"
@@ -458,7 +458,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
458
458
  add_index "items", ["required_role_id"], name: "index_items_on_required_role_id"
459
459
  add_index "items", ["shelf_id"], name: "index_items_on_shelf_id"
460
460
 
461
- create_table "languages", force: true do |t|
461
+ create_table "languages", force: :cascade do |t|
462
462
  t.string "name", null: false
463
463
  t.string "native_name"
464
464
  t.text "display_name"
@@ -474,7 +474,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
474
474
  add_index "languages", ["iso_639_3"], name: "index_languages_on_iso_639_3"
475
475
  add_index "languages", ["name"], name: "index_languages_on_name", unique: true
476
476
 
477
- create_table "libraries", force: true do |t|
477
+ create_table "libraries", force: :cascade do |t|
478
478
  t.string "name", null: false
479
479
  t.text "display_name"
480
480
  t.string "short_display_name", null: false
@@ -504,7 +504,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
504
504
  add_index "libraries", ["library_group_id"], name: "index_libraries_on_library_group_id"
505
505
  add_index "libraries", ["name"], name: "index_libraries_on_name", unique: true
506
506
 
507
- create_table "library_groups", force: true do |t|
507
+ create_table "library_groups", force: :cascade do |t|
508
508
  t.string "name", null: false
509
509
  t.text "display_name"
510
510
  t.string "short_name", null: false
@@ -522,7 +522,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
522
522
 
523
523
  add_index "library_groups", ["short_name"], name: "index_library_groups_on_short_name"
524
524
 
525
- create_table "licenses", force: true do |t|
525
+ create_table "licenses", force: :cascade do |t|
526
526
  t.string "name", null: false
527
527
  t.string "display_name"
528
528
  t.text "note"
@@ -531,7 +531,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
531
531
  t.datetime "updated_at"
532
532
  end
533
533
 
534
- create_table "manifestation_relationship_types", force: true do |t|
534
+ create_table "manifestation_relationship_types", force: :cascade do |t|
535
535
  t.string "name", null: false
536
536
  t.text "display_name"
537
537
  t.text "note"
@@ -540,7 +540,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
540
540
  t.datetime "updated_at"
541
541
  end
542
542
 
543
- create_table "manifestation_relationships", force: true do |t|
543
+ create_table "manifestation_relationships", force: :cascade do |t|
544
544
  t.integer "parent_id"
545
545
  t.integer "child_id"
546
546
  t.integer "manifestation_relationship_type_id"
@@ -552,7 +552,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
552
552
  add_index "manifestation_relationships", ["child_id"], name: "index_manifestation_relationships_on_child_id"
553
553
  add_index "manifestation_relationships", ["parent_id"], name: "index_manifestation_relationships_on_parent_id"
554
554
 
555
- create_table "manifestations", force: true do |t|
555
+ create_table "manifestations", force: :cascade do |t|
556
556
  t.text "original_title", null: false
557
557
  t.text "title_alternative"
558
558
  t.text "title_transcription"
@@ -618,7 +618,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
618
618
  add_index "manifestations", ["manifestation_identifier"], name: "index_manifestations_on_manifestation_identifier"
619
619
  add_index "manifestations", ["updated_at"], name: "index_manifestations_on_updated_at"
620
620
 
621
- create_table "medium_of_performances", force: true do |t|
621
+ create_table "medium_of_performances", force: :cascade do |t|
622
622
  t.string "name", null: false
623
623
  t.text "display_name"
624
624
  t.text "note"
@@ -627,7 +627,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
627
627
  t.datetime "updated_at"
628
628
  end
629
629
 
630
- create_table "owns", force: true do |t|
630
+ create_table "owns", force: :cascade do |t|
631
631
  t.integer "agent_id", null: false
632
632
  t.integer "item_id", null: false
633
633
  t.integer "position"
@@ -638,7 +638,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
638
638
  add_index "owns", ["agent_id"], name: "index_owns_on_agent_id"
639
639
  add_index "owns", ["item_id"], name: "index_owns_on_item_id"
640
640
 
641
- create_table "picture_files", force: true do |t|
641
+ create_table "picture_files", force: :cascade do |t|
642
642
  t.integer "picture_attachable_id"
643
643
  t.string "picture_attachable_type"
644
644
  t.string "content_type"
@@ -657,7 +657,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
657
657
 
658
658
  add_index "picture_files", ["picture_attachable_id", "picture_attachable_type"], name: "index_picture_files_on_picture_attachable_id_and_type"
659
659
 
660
- create_table "produce_types", force: true do |t|
660
+ create_table "produce_types", force: :cascade do |t|
661
661
  t.string "name"
662
662
  t.text "display_name"
663
663
  t.text "note"
@@ -666,7 +666,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
666
666
  t.datetime "updated_at"
667
667
  end
668
668
 
669
- create_table "produces", force: true do |t|
669
+ create_table "produces", force: :cascade do |t|
670
670
  t.integer "agent_id", null: false
671
671
  t.integer "manifestation_id", null: false
672
672
  t.integer "position"
@@ -678,7 +678,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
678
678
  add_index "produces", ["agent_id"], name: "index_produces_on_agent_id"
679
679
  add_index "produces", ["manifestation_id"], name: "index_produces_on_manifestation_id"
680
680
 
681
- create_table "profiles", force: true do |t|
681
+ create_table "profiles", force: :cascade do |t|
682
682
  t.integer "user_id"
683
683
  t.integer "user_group_id"
684
684
  t.integer "library_id"
@@ -697,7 +697,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
697
697
  add_index "profiles", ["user_id"], name: "index_profiles_on_user_id"
698
698
  add_index "profiles", ["user_number"], name: "index_profiles_on_user_number", unique: true
699
699
 
700
- create_table "questions", force: true do |t|
700
+ create_table "questions", force: :cascade do |t|
701
701
  t.integer "user_id", null: false
702
702
  t.text "body"
703
703
  t.boolean "shared", default: true, null: false
@@ -712,7 +712,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
712
712
 
713
713
  add_index "questions", ["user_id"], name: "index_questions_on_user_id"
714
714
 
715
- create_table "realize_types", force: true do |t|
715
+ create_table "realize_types", force: :cascade do |t|
716
716
  t.string "name"
717
717
  t.text "display_name"
718
718
  t.text "note"
@@ -721,7 +721,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
721
721
  t.datetime "updated_at"
722
722
  end
723
723
 
724
- create_table "realizes", force: true do |t|
724
+ create_table "realizes", force: :cascade do |t|
725
725
  t.integer "agent_id", null: false
726
726
  t.integer "expression_id", null: false
727
727
  t.integer "position"
@@ -733,7 +733,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
733
733
  add_index "realizes", ["agent_id"], name: "index_realizes_on_agent_id"
734
734
  add_index "realizes", ["expression_id"], name: "index_realizes_on_expression_id"
735
735
 
736
- create_table "request_status_types", force: true do |t|
736
+ create_table "request_status_types", force: :cascade do |t|
737
737
  t.string "name", null: false
738
738
  t.text "display_name"
739
739
  t.text "note"
@@ -742,7 +742,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
742
742
  t.datetime "updated_at"
743
743
  end
744
744
 
745
- create_table "request_types", force: true do |t|
745
+ create_table "request_types", force: :cascade do |t|
746
746
  t.string "name", null: false
747
747
  t.text "display_name"
748
748
  t.text "note"
@@ -751,7 +751,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
751
751
  t.datetime "updated_at"
752
752
  end
753
753
 
754
- create_table "resource_export_file_transitions", force: true do |t|
754
+ create_table "resource_export_file_transitions", force: :cascade do |t|
755
755
  t.string "to_state"
756
756
  t.text "metadata", default: "{}"
757
757
  t.integer "sort_key"
@@ -763,7 +763,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
763
763
  add_index "resource_export_file_transitions", ["resource_export_file_id"], name: "index_resource_export_file_transitions_on_file_id"
764
764
  add_index "resource_export_file_transitions", ["sort_key", "resource_export_file_id"], name: "index_resource_export_file_transitions_on_sort_key_and_file_id", unique: true
765
765
 
766
- create_table "resource_export_files", force: true do |t|
766
+ create_table "resource_export_files", force: :cascade do |t|
767
767
  t.integer "user_id"
768
768
  t.string "resource_export_file_name"
769
769
  t.string "resource_export_content_type"
@@ -774,7 +774,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
774
774
  t.datetime "updated_at"
775
775
  end
776
776
 
777
- create_table "resource_import_file_transitions", force: true do |t|
777
+ create_table "resource_import_file_transitions", force: :cascade do |t|
778
778
  t.string "to_state"
779
779
  t.text "metadata", default: "{}"
780
780
  t.integer "sort_key"
@@ -786,7 +786,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
786
786
  add_index "resource_import_file_transitions", ["resource_import_file_id"], name: "index_resource_import_file_transitions_on_file_id"
787
787
  add_index "resource_import_file_transitions", ["sort_key", "resource_import_file_id"], name: "index_resource_import_file_transitions_on_sort_key_and_file_id", unique: true
788
788
 
789
- create_table "resource_import_files", force: true do |t|
789
+ create_table "resource_import_files", force: :cascade do |t|
790
790
  t.integer "parent_id"
791
791
  t.string "content_type"
792
792
  t.integer "size"
@@ -809,7 +809,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
809
809
  add_index "resource_import_files", ["parent_id"], name: "index_resource_import_files_on_parent_id"
810
810
  add_index "resource_import_files", ["user_id"], name: "index_resource_import_files_on_user_id"
811
811
 
812
- create_table "resource_import_results", force: true do |t|
812
+ create_table "resource_import_results", force: :cascade do |t|
813
813
  t.integer "resource_import_file_id"
814
814
  t.integer "manifestation_id"
815
815
  t.integer "item_id"
@@ -822,7 +822,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
822
822
  add_index "resource_import_results", ["manifestation_id"], name: "index_resource_import_results_on_manifestation_id"
823
823
  add_index "resource_import_results", ["resource_import_file_id"], name: "index_resource_import_results_on_resource_import_file_id"
824
824
 
825
- create_table "roles", force: true do |t|
825
+ create_table "roles", force: :cascade do |t|
826
826
  t.string "name", null: false
827
827
  t.string "display_name"
828
828
  t.text "note"
@@ -832,7 +832,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
832
832
  t.integer "position"
833
833
  end
834
834
 
835
- create_table "search_engines", force: true do |t|
835
+ create_table "search_engines", force: :cascade do |t|
836
836
  t.string "name", null: false
837
837
  t.text "display_name"
838
838
  t.string "url", null: false
@@ -846,13 +846,13 @@ ActiveRecord::Schema.define(version: 20140812093836) do
846
846
  t.datetime "updated_at"
847
847
  end
848
848
 
849
- create_table "series_statement_merge_lists", force: true do |t|
849
+ create_table "series_statement_merge_lists", force: :cascade do |t|
850
850
  t.string "title"
851
851
  t.datetime "created_at"
852
852
  t.datetime "updated_at"
853
853
  end
854
854
 
855
- create_table "series_statement_merges", force: true do |t|
855
+ create_table "series_statement_merges", force: :cascade do |t|
856
856
  t.integer "series_statement_id", null: false
857
857
  t.integer "series_statement_merge_list_id", null: false
858
858
  t.datetime "created_at"
@@ -862,7 +862,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
862
862
  add_index "series_statement_merges", ["series_statement_id"], name: "index_series_statement_merges_on_series_statement_id"
863
863
  add_index "series_statement_merges", ["series_statement_merge_list_id"], name: "index_series_statement_merges_on_list_id"
864
864
 
865
- create_table "series_statements", force: true do |t|
865
+ create_table "series_statements", force: :cascade do |t|
866
866
  t.text "original_title"
867
867
  t.text "numbering"
868
868
  t.text "title_subseries"
@@ -887,7 +887,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
887
887
  add_index "series_statements", ["root_manifestation_id"], name: "index_series_statements_on_root_manifestation_id"
888
888
  add_index "series_statements", ["series_statement_identifier"], name: "index_series_statements_on_series_statement_identifier"
889
889
 
890
- create_table "shelves", force: true do |t|
890
+ create_table "shelves", force: :cascade do |t|
891
891
  t.string "name", null: false
892
892
  t.text "display_name"
893
893
  t.text "note"
@@ -902,7 +902,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
902
902
 
903
903
  add_index "shelves", ["library_id"], name: "index_shelves_on_library_id"
904
904
 
905
- create_table "subscribes", force: true do |t|
905
+ create_table "subscribes", force: :cascade do |t|
906
906
  t.integer "subscription_id", null: false
907
907
  t.integer "work_id", null: false
908
908
  t.datetime "start_at", null: false
@@ -914,7 +914,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
914
914
  add_index "subscribes", ["subscription_id"], name: "index_subscribes_on_subscription_id"
915
915
  add_index "subscribes", ["work_id"], name: "index_subscribes_on_work_id"
916
916
 
917
- create_table "subscriptions", force: true do |t|
917
+ create_table "subscriptions", force: :cascade do |t|
918
918
  t.text "title", null: false
919
919
  t.text "note"
920
920
  t.integer "user_id"
@@ -928,7 +928,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
928
928
  add_index "subscriptions", ["order_list_id"], name: "index_subscriptions_on_order_list_id"
929
929
  add_index "subscriptions", ["user_id"], name: "index_subscriptions_on_user_id"
930
930
 
931
- create_table "taggings", force: true do |t|
931
+ create_table "taggings", force: :cascade do |t|
932
932
  t.integer "tag_id"
933
933
  t.integer "taggable_id"
934
934
  t.string "taggable_type"
@@ -941,7 +941,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
941
941
  add_index "taggings", ["tag_id"], name: "index_taggings_on_tag_id"
942
942
  add_index "taggings", ["taggable_id", "taggable_type", "context"], name: "index_taggings_on_taggable_id_and_taggable_type_and_context"
943
943
 
944
- create_table "tags", force: true do |t|
944
+ create_table "tags", force: :cascade do |t|
945
945
  t.string "name"
946
946
  t.string "name_transcription"
947
947
  t.datetime "created_at"
@@ -949,7 +949,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
949
949
  t.integer "taggings_count", default: 0
950
950
  end
951
951
 
952
- create_table "user_export_file_transitions", force: true do |t|
952
+ create_table "user_export_file_transitions", force: :cascade do |t|
953
953
  t.string "to_state"
954
954
  t.text "metadata", default: "{}"
955
955
  t.integer "sort_key"
@@ -961,7 +961,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
961
961
  add_index "user_export_file_transitions", ["sort_key", "user_export_file_id"], name: "index_user_export_file_transitions_on_sort_key_and_file_id", unique: true
962
962
  add_index "user_export_file_transitions", ["user_export_file_id"], name: "index_user_export_file_transitions_on_file_id"
963
963
 
964
- create_table "user_export_files", force: true do |t|
964
+ create_table "user_export_files", force: :cascade do |t|
965
965
  t.integer "user_id"
966
966
  t.string "user_export_file_name"
967
967
  t.string "user_export_content_type"
@@ -972,7 +972,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
972
972
  t.datetime "updated_at"
973
973
  end
974
974
 
975
- create_table "user_groups", force: true do |t|
975
+ create_table "user_groups", force: :cascade do |t|
976
976
  t.string "name"
977
977
  t.text "display_name"
978
978
  t.text "note"
@@ -984,7 +984,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
984
984
  t.datetime "expired_at"
985
985
  end
986
986
 
987
- create_table "user_has_roles", force: true do |t|
987
+ create_table "user_has_roles", force: :cascade do |t|
988
988
  t.integer "user_id"
989
989
  t.integer "role_id"
990
990
  t.datetime "created_at"
@@ -994,7 +994,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
994
994
  add_index "user_has_roles", ["role_id"], name: "index_user_has_roles_on_role_id"
995
995
  add_index "user_has_roles", ["user_id"], name: "index_user_has_roles_on_user_id"
996
996
 
997
- create_table "user_import_file_transitions", force: true do |t|
997
+ create_table "user_import_file_transitions", force: :cascade do |t|
998
998
  t.string "to_state"
999
999
  t.text "metadata", default: "{}"
1000
1000
  t.integer "sort_key"
@@ -1006,7 +1006,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
1006
1006
  add_index "user_import_file_transitions", ["sort_key", "user_import_file_id"], name: "index_user_import_file_transitions_on_sort_key_and_file_id", unique: true
1007
1007
  add_index "user_import_file_transitions", ["user_import_file_id"], name: "index_user_import_file_transitions_on_user_import_file_id"
1008
1008
 
1009
- create_table "user_import_files", force: true do |t|
1009
+ create_table "user_import_files", force: :cascade do |t|
1010
1010
  t.integer "user_id"
1011
1011
  t.text "note"
1012
1012
  t.datetime "executed_at"
@@ -1024,7 +1024,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
1024
1024
  t.integer "default_user_group_id"
1025
1025
  end
1026
1026
 
1027
- create_table "user_import_results", force: true do |t|
1027
+ create_table "user_import_results", force: :cascade do |t|
1028
1028
  t.integer "user_import_file_id"
1029
1029
  t.integer "user_id"
1030
1030
  t.text "body"
@@ -1032,7 +1032,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
1032
1032
  t.datetime "updated_at"
1033
1033
  end
1034
1034
 
1035
- create_table "users", force: true do |t|
1035
+ create_table "users", force: :cascade do |t|
1036
1036
  t.string "email", default: "", null: false
1037
1037
  t.string "encrypted_password", default: "", null: false
1038
1038
  t.string "reset_password_token"
@@ -1062,7 +1062,7 @@ ActiveRecord::Schema.define(version: 20140812093836) do
1062
1062
  add_index "users", ["unlock_token"], name: "index_users_on_unlock_token", unique: true
1063
1063
  add_index "users", ["username"], name: "index_users_on_username", unique: true
1064
1064
 
1065
- create_table "versions", force: true do |t|
1065
+ create_table "versions", force: :cascade do |t|
1066
1066
  t.string "item_type", null: false
1067
1067
  t.integer "item_id", null: false
1068
1068
  t.string "event", null: false