enju_ndl 0.1.0.pre37 → 0.1.0.pre38
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/ndl_books_controller.rb +1 -6
- data/lib/enju_ndl/ndl_search.rb +10 -10
- data/lib/enju_ndl/version.rb +1 -1
- data/spec/cassette_library/ImportRequest/should_import_isbn.yml +201 -186
- data/spec/cassette_library/Manifestation/should_imporrt_a_bibliographic_record.yml +864 -848
- data/spec/cassette_library/Manifestation/should_import_isbn.yml +203 -188
- data/spec/cassette_library/Manifestation/should_import_series_statement.yml +850 -820
- data/spec/cassette_library/NdlBook/import/should_get_series_title.yml +36 -13
- data/spec/cassette_library/NdlBook/import/should_get_volume_number.yml +48 -46
- data/spec/cassette_library/NdlBook/import/should_import_audio_cd.yml +10 -10
- data/spec/cassette_library/NdlBook/import/should_import_bibliographic_record.yml +139 -134
- data/spec/cassette_library/NdlBook/import/should_import_bibliographic_record_that_does_not_have_any_classifications.yml +12 -10
- data/spec/cassette_library/NdlBook/import/should_import_map.yml +12 -10
- data/spec/cassette_library/NdlBook/import/should_import_ndc8_classification.yml +152 -149
- data/spec/cassette_library/NdlBook/import/should_import_notated_music.yml +9 -9
- data/spec/cassette_library/NdlBook/import/should_import_painting.yml +10 -10
- data/spec/cassette_library/NdlBook/import/should_import_photograph.yml +10 -10
- data/spec/cassette_library/NdlBook/import/should_import_picture_postcard.yml +12 -10
- data/spec/cassette_library/NdlBook/import/should_import_publication_place.yml +146 -141
- data/spec/cassette_library/NdlBook/import/should_import_pud_date_is_nil.yml +10 -10
- data/spec/cassette_library/NdlBook/import/should_import_series_statement.yml +11 -9
- data/spec/cassette_library/NdlBook/import/should_import_series_statement_if_the_resource_is_serial.yml +12 -10
- data/spec/cassette_library/NdlBook/import/should_import_series_statement_s_creator.yml +184 -179
- data/spec/cassette_library/NdlBook/import/should_import_series_statement_transctiption.yml +143 -143
- data/spec/cassette_library/NdlBook/import/should_import_still_image.yml +117 -113
- data/spec/cassette_library/NdlBook/import/should_import_tactile_text.yml +10 -10
- data/spec/cassette_library/NdlBook/import/should_import_title_alternative.yml +179 -176
- data/spec/cassette_library/NdlBook/import/should_import_url_contain_whitespace.yml +134 -130
- data/spec/cassette_library/NdlBook/import/should_import_video_dvd.yml +10 -10
- data/spec/cassette_library/NdlBook/import/should_import_volume_number_string.yml +132 -130
- data/spec/cassette_library/NdlBook/import/should_not_get_series_title_if_book_has_not_series_title.yml +41 -16
- data/spec/cassette_library/NdlBook/import/should_not_get_volume_number_if_book_has_not_volume.yml +70 -48
- data/spec/cassette_library/NdlBook/search/should_not_distinguish_double_byte_space_from_one-byte_space_in_a_query.yml +649 -597
- data/spec/cassette_library/NdlBook/search/should_search_bibliographic_record.yml +42 -38
- data/spec/cassette_library/NdlBooksController/GET_index/should_get_index.yml +290 -302
- data/spec/cassette_library/NdlBooksController/POST_create/should_create_a_bibliographic_record_if_jpno_is_set.yml +149 -152
- data/spec/cassette_library/NdlBooksController/POST_create/should_create_a_serial_record.yml +12 -10
- data/spec/cassette_library/NdlBooksController/POST_create/should_not_create_a_bibliographic_record_if_jpno_is_not_set.yml +11 -11
- data/spec/cassette_library/Question/should_respond_to_search_crd.yml +209 -303
- data/spec/dummy/app/assets/javascripts/application.js +10 -6
- data/spec/dummy/db/schema.rb +97 -97
- data/spec/models/ndl_book_spec.rb +1 -1
- metadata +15 -15
data/spec/dummy/db/schema.rb
CHANGED
@@ -13,7 +13,7 @@
|
|
13
13
|
|
14
14
|
ActiveRecord::Schema.define(version: 20141014065831) do
|
15
15
|
|
16
|
-
create_table "agent_import_file_transitions", force:
|
16
|
+
create_table "agent_import_file_transitions", force: :cascade do |t|
|
17
17
|
t.string "to_state"
|
18
18
|
t.text "metadata", default: "{}"
|
19
19
|
t.integer "sort_key"
|
@@ -25,7 +25,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
25
25
|
add_index "agent_import_file_transitions", ["agent_import_file_id"], name: "index_agent_import_file_transitions_on_agent_import_file_id"
|
26
26
|
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
|
27
27
|
|
28
|
-
create_table "agent_import_files", force:
|
28
|
+
create_table "agent_import_files", force: :cascade do |t|
|
29
29
|
t.integer "parent_id"
|
30
30
|
t.string "content_type"
|
31
31
|
t.integer "size"
|
@@ -47,7 +47,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
47
47
|
add_index "agent_import_files", ["parent_id"], name: "index_agent_import_files_on_parent_id"
|
48
48
|
add_index "agent_import_files", ["user_id"], name: "index_agent_import_files_on_user_id"
|
49
49
|
|
50
|
-
create_table "agent_import_results", force:
|
50
|
+
create_table "agent_import_results", force: :cascade do |t|
|
51
51
|
t.integer "agent_import_file_id"
|
52
52
|
t.integer "agent_id"
|
53
53
|
t.text "body"
|
@@ -55,13 +55,13 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
55
55
|
t.datetime "updated_at"
|
56
56
|
end
|
57
57
|
|
58
|
-
create_table "agent_merge_lists", force:
|
58
|
+
create_table "agent_merge_lists", force: :cascade do |t|
|
59
59
|
t.string "title"
|
60
60
|
t.datetime "created_at"
|
61
61
|
t.datetime "updated_at"
|
62
62
|
end
|
63
63
|
|
64
|
-
create_table "agent_merges", force:
|
64
|
+
create_table "agent_merges", force: :cascade do |t|
|
65
65
|
t.integer "agent_id", null: false
|
66
66
|
t.integer "agent_merge_list_id", null: false
|
67
67
|
t.datetime "created_at"
|
@@ -71,7 +71,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
71
71
|
add_index "agent_merges", ["agent_id"], name: "index_agent_merges_on_agent_id"
|
72
72
|
add_index "agent_merges", ["agent_merge_list_id"], name: "index_agent_merges_on_agent_merge_list_id"
|
73
73
|
|
74
|
-
create_table "agent_relationship_types", force:
|
74
|
+
create_table "agent_relationship_types", force: :cascade do |t|
|
75
75
|
t.string "name", null: false
|
76
76
|
t.text "display_name"
|
77
77
|
t.text "note"
|
@@ -80,7 +80,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
80
80
|
t.datetime "updated_at"
|
81
81
|
end
|
82
82
|
|
83
|
-
create_table "agent_relationships", force:
|
83
|
+
create_table "agent_relationships", force: :cascade do |t|
|
84
84
|
t.integer "parent_id"
|
85
85
|
t.integer "child_id"
|
86
86
|
t.integer "agent_relationship_type_id"
|
@@ -92,7 +92,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
92
92
|
add_index "agent_relationships", ["child_id"], name: "index_agent_relationships_on_child_id"
|
93
93
|
add_index "agent_relationships", ["parent_id"], name: "index_agent_relationships_on_parent_id"
|
94
94
|
|
95
|
-
create_table "agent_types", force:
|
95
|
+
create_table "agent_types", force: :cascade do |t|
|
96
96
|
t.string "name", null: false
|
97
97
|
t.text "display_name"
|
98
98
|
t.text "note"
|
@@ -101,7 +101,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
101
101
|
t.datetime "updated_at"
|
102
102
|
end
|
103
103
|
|
104
|
-
create_table "agents", force:
|
104
|
+
create_table "agents", force: :cascade do |t|
|
105
105
|
t.string "last_name"
|
106
106
|
t.string "middle_name"
|
107
107
|
t.string "first_name"
|
@@ -155,7 +155,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
155
155
|
add_index "agents", ["language_id"], name: "index_agents_on_language_id"
|
156
156
|
add_index "agents", ["required_role_id"], name: "index_agents_on_required_role_id"
|
157
157
|
|
158
|
-
create_table "carrier_type_has_checkout_types", force:
|
158
|
+
create_table "carrier_type_has_checkout_types", force: :cascade do |t|
|
159
159
|
t.integer "carrier_type_id", null: false
|
160
160
|
t.integer "checkout_type_id", null: false
|
161
161
|
t.text "note"
|
@@ -167,7 +167,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
167
167
|
add_index "carrier_type_has_checkout_types", ["carrier_type_id"], name: "index_carrier_type_has_checkout_types_on_m_form_id"
|
168
168
|
add_index "carrier_type_has_checkout_types", ["checkout_type_id"], name: "index_carrier_type_has_checkout_types_on_checkout_type_id"
|
169
169
|
|
170
|
-
create_table "carrier_types", force:
|
170
|
+
create_table "carrier_types", force: :cascade do |t|
|
171
171
|
t.string "name", null: false
|
172
172
|
t.text "display_name"
|
173
173
|
t.text "note"
|
@@ -176,7 +176,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
176
176
|
t.datetime "updated_at"
|
177
177
|
end
|
178
178
|
|
179
|
-
create_table "checked_items", force:
|
179
|
+
create_table "checked_items", force: :cascade do |t|
|
180
180
|
t.integer "item_id", null: false
|
181
181
|
t.integer "basket_id", null: false
|
182
182
|
t.datetime "due_date", null: false
|
@@ -188,7 +188,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
188
188
|
add_index "checked_items", ["basket_id"], name: "index_checked_items_on_basket_id"
|
189
189
|
add_index "checked_items", ["item_id"], name: "index_checked_items_on_item_id"
|
190
190
|
|
191
|
-
create_table "checkins", force:
|
191
|
+
create_table "checkins", force: :cascade do |t|
|
192
192
|
t.integer "item_id", null: false
|
193
193
|
t.integer "librarian_id"
|
194
194
|
t.integer "basket_id"
|
@@ -201,7 +201,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
201
201
|
add_index "checkins", ["item_id"], name: "index_checkins_on_item_id"
|
202
202
|
add_index "checkins", ["librarian_id"], name: "index_checkins_on_librarian_id"
|
203
203
|
|
204
|
-
create_table "checkout_stat_has_manifestations", force:
|
204
|
+
create_table "checkout_stat_has_manifestations", force: :cascade do |t|
|
205
205
|
t.integer "manifestation_checkout_stat_id", null: false
|
206
206
|
t.integer "manifestation_id", null: false
|
207
207
|
t.integer "checkouts_count"
|
@@ -212,7 +212,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
212
212
|
add_index "checkout_stat_has_manifestations", ["manifestation_checkout_stat_id"], name: "index_checkout_stat_has_manifestations_on_checkout_stat_id"
|
213
213
|
add_index "checkout_stat_has_manifestations", ["manifestation_id"], name: "index_checkout_stat_has_manifestations_on_manifestation_id"
|
214
214
|
|
215
|
-
create_table "checkout_stat_has_users", force:
|
215
|
+
create_table "checkout_stat_has_users", force: :cascade do |t|
|
216
216
|
t.integer "user_checkout_stat_id", null: false
|
217
217
|
t.integer "user_id", null: false
|
218
218
|
t.integer "checkouts_count", default: 0, null: false
|
@@ -223,7 +223,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
223
223
|
add_index "checkout_stat_has_users", ["user_checkout_stat_id"], name: "index_checkout_stat_has_users_on_user_checkout_stat_id"
|
224
224
|
add_index "checkout_stat_has_users", ["user_id"], name: "index_checkout_stat_has_users_on_user_id"
|
225
225
|
|
226
|
-
create_table "checkout_types", force:
|
226
|
+
create_table "checkout_types", force: :cascade do |t|
|
227
227
|
t.string "name", null: false
|
228
228
|
t.text "display_name"
|
229
229
|
t.text "note"
|
@@ -234,7 +234,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
234
234
|
|
235
235
|
add_index "checkout_types", ["name"], name: "index_checkout_types_on_name"
|
236
236
|
|
237
|
-
create_table "checkouts", force:
|
237
|
+
create_table "checkouts", force: :cascade do |t|
|
238
238
|
t.integer "user_id"
|
239
239
|
t.integer "item_id", null: false
|
240
240
|
t.integer "checkin_id"
|
@@ -256,7 +256,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
256
256
|
add_index "checkouts", ["shelf_id"], name: "index_checkouts_on_shelf_id"
|
257
257
|
add_index "checkouts", ["user_id"], name: "index_checkouts_on_user_id"
|
258
258
|
|
259
|
-
create_table "circulation_statuses", force:
|
259
|
+
create_table "circulation_statuses", force: :cascade do |t|
|
260
260
|
t.string "name", null: false
|
261
261
|
t.text "display_name"
|
262
262
|
t.text "note"
|
@@ -265,7 +265,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
265
265
|
t.datetime "updated_at"
|
266
266
|
end
|
267
267
|
|
268
|
-
create_table "classification_types", force:
|
268
|
+
create_table "classification_types", force: :cascade do |t|
|
269
269
|
t.string "name", null: false
|
270
270
|
t.text "display_name"
|
271
271
|
t.text "note"
|
@@ -274,7 +274,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
274
274
|
t.datetime "updated_at"
|
275
275
|
end
|
276
276
|
|
277
|
-
create_table "classifications", force:
|
277
|
+
create_table "classifications", force: :cascade do |t|
|
278
278
|
t.integer "parent_id"
|
279
279
|
t.string "category", null: false
|
280
280
|
t.text "note"
|
@@ -291,7 +291,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
291
291
|
add_index "classifications", ["manifestation_id"], name: "index_classifications_on_manifestation_id"
|
292
292
|
add_index "classifications", ["parent_id"], name: "index_classifications_on_parent_id"
|
293
293
|
|
294
|
-
create_table "content_types", force:
|
294
|
+
create_table "content_types", force: :cascade do |t|
|
295
295
|
t.string "name", null: false
|
296
296
|
t.text "display_name"
|
297
297
|
t.text "note"
|
@@ -300,7 +300,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
300
300
|
t.datetime "updated_at"
|
301
301
|
end
|
302
302
|
|
303
|
-
create_table "countries", force:
|
303
|
+
create_table "countries", force: :cascade do |t|
|
304
304
|
t.string "name", null: false
|
305
305
|
t.text "display_name"
|
306
306
|
t.string "alpha_2"
|
@@ -315,7 +315,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
315
315
|
add_index "countries", ["name"], name: "index_countries_on_name"
|
316
316
|
add_index "countries", ["numeric_3"], name: "index_countries_on_numeric_3"
|
317
317
|
|
318
|
-
create_table "create_types", force:
|
318
|
+
create_table "create_types", force: :cascade do |t|
|
319
319
|
t.string "name"
|
320
320
|
t.text "display_name"
|
321
321
|
t.text "note"
|
@@ -324,7 +324,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
324
324
|
t.datetime "updated_at"
|
325
325
|
end
|
326
326
|
|
327
|
-
create_table "creates", force:
|
327
|
+
create_table "creates", force: :cascade do |t|
|
328
328
|
t.integer "agent_id", null: false
|
329
329
|
t.integer "work_id", null: false
|
330
330
|
t.integer "position"
|
@@ -336,7 +336,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
336
336
|
add_index "creates", ["agent_id"], name: "index_creates_on_agent_id"
|
337
337
|
add_index "creates", ["work_id"], name: "index_creates_on_work_id"
|
338
338
|
|
339
|
-
create_table "donates", force:
|
339
|
+
create_table "donates", force: :cascade do |t|
|
340
340
|
t.integer "agent_id", null: false
|
341
341
|
t.integer "item_id", null: false
|
342
342
|
t.datetime "created_at"
|
@@ -346,7 +346,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
346
346
|
add_index "donates", ["agent_id"], name: "index_donates_on_agent_id"
|
347
347
|
add_index "donates", ["item_id"], name: "index_donates_on_item_id"
|
348
348
|
|
349
|
-
create_table "event_categories", force:
|
349
|
+
create_table "event_categories", force: :cascade do |t|
|
350
350
|
t.string "name", null: false
|
351
351
|
t.text "display_name"
|
352
352
|
t.text "note"
|
@@ -355,7 +355,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
355
355
|
t.datetime "updated_at"
|
356
356
|
end
|
357
357
|
|
358
|
-
create_table "event_export_file_transitions", force:
|
358
|
+
create_table "event_export_file_transitions", force: :cascade do |t|
|
359
359
|
t.string "to_state"
|
360
360
|
t.text "metadata", default: "{}"
|
361
361
|
t.integer "sort_key"
|
@@ -367,7 +367,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
367
367
|
add_index "event_export_file_transitions", ["event_export_file_id"], name: "index_event_export_file_transitions_on_file_id"
|
368
368
|
add_index "event_export_file_transitions", ["sort_key", "event_export_file_id"], name: "index_event_export_file_transitions_on_sort_key_and_file_id", unique: true
|
369
369
|
|
370
|
-
create_table "event_export_files", force:
|
370
|
+
create_table "event_export_files", force: :cascade do |t|
|
371
371
|
t.integer "user_id"
|
372
372
|
t.string "event_export_file_name"
|
373
373
|
t.string "event_export_content_type"
|
@@ -378,7 +378,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
378
378
|
t.datetime "updated_at"
|
379
379
|
end
|
380
380
|
|
381
|
-
create_table "event_import_file_transitions", force:
|
381
|
+
create_table "event_import_file_transitions", force: :cascade do |t|
|
382
382
|
t.string "to_state"
|
383
383
|
t.text "metadata", default: "{}"
|
384
384
|
t.integer "sort_key"
|
@@ -390,7 +390,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
390
390
|
add_index "event_import_file_transitions", ["event_import_file_id"], name: "index_event_import_file_transitions_on_event_import_file_id"
|
391
391
|
add_index "event_import_file_transitions", ["sort_key", "event_import_file_id"], name: "index_event_import_file_transitions_on_sort_key_and_file_id", unique: true
|
392
392
|
|
393
|
-
create_table "event_import_files", force:
|
393
|
+
create_table "event_import_files", force: :cascade do |t|
|
394
394
|
t.integer "parent_id"
|
395
395
|
t.string "content_type"
|
396
396
|
t.integer "size"
|
@@ -414,7 +414,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
414
414
|
add_index "event_import_files", ["parent_id"], name: "index_event_import_files_on_parent_id"
|
415
415
|
add_index "event_import_files", ["user_id"], name: "index_event_import_files_on_user_id"
|
416
416
|
|
417
|
-
create_table "event_import_results", force:
|
417
|
+
create_table "event_import_results", force: :cascade do |t|
|
418
418
|
t.integer "event_import_file_id"
|
419
419
|
t.integer "event_id"
|
420
420
|
t.text "body"
|
@@ -422,7 +422,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
422
422
|
t.datetime "updated_at"
|
423
423
|
end
|
424
424
|
|
425
|
-
create_table "events", force:
|
425
|
+
create_table "events", force: :cascade do |t|
|
426
426
|
t.integer "library_id", null: false
|
427
427
|
t.integer "event_category_id", null: false
|
428
428
|
t.string "name"
|
@@ -439,7 +439,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
439
439
|
add_index "events", ["event_category_id"], name: "index_events_on_event_category_id"
|
440
440
|
add_index "events", ["library_id"], name: "index_events_on_library_id"
|
441
441
|
|
442
|
-
create_table "exemplifies", force:
|
442
|
+
create_table "exemplifies", force: :cascade do |t|
|
443
443
|
t.integer "manifestation_id", null: false
|
444
444
|
t.integer "item_id", null: false
|
445
445
|
t.integer "position"
|
@@ -450,7 +450,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
450
450
|
add_index "exemplifies", ["item_id"], name: "index_exemplifies_on_item_id", unique: true
|
451
451
|
add_index "exemplifies", ["manifestation_id"], name: "index_exemplifies_on_manifestation_id"
|
452
452
|
|
453
|
-
create_table "extents", force:
|
453
|
+
create_table "extents", force: :cascade do |t|
|
454
454
|
t.string "name", null: false
|
455
455
|
t.text "display_name"
|
456
456
|
t.text "note"
|
@@ -459,7 +459,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
459
459
|
t.datetime "updated_at"
|
460
460
|
end
|
461
461
|
|
462
|
-
create_table "form_of_works", force:
|
462
|
+
create_table "form_of_works", force: :cascade do |t|
|
463
463
|
t.string "name", null: false
|
464
464
|
t.text "display_name"
|
465
465
|
t.text "note"
|
@@ -468,7 +468,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
468
468
|
t.datetime "updated_at"
|
469
469
|
end
|
470
470
|
|
471
|
-
create_table "frequencies", force:
|
471
|
+
create_table "frequencies", force: :cascade do |t|
|
472
472
|
t.string "name", null: false
|
473
473
|
t.text "display_name"
|
474
474
|
t.text "note"
|
@@ -477,7 +477,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
477
477
|
t.datetime "updated_at"
|
478
478
|
end
|
479
479
|
|
480
|
-
create_table "identifier_types", force:
|
480
|
+
create_table "identifier_types", force: :cascade do |t|
|
481
481
|
t.string "name"
|
482
482
|
t.text "display_name"
|
483
483
|
t.text "note"
|
@@ -486,7 +486,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
486
486
|
t.datetime "updated_at"
|
487
487
|
end
|
488
488
|
|
489
|
-
create_table "identifiers", force:
|
489
|
+
create_table "identifiers", force: :cascade do |t|
|
490
490
|
t.string "body", null: false
|
491
491
|
t.integer "identifier_type_id", null: false
|
492
492
|
t.integer "manifestation_id"
|
@@ -499,7 +499,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
499
499
|
add_index "identifiers", ["body", "identifier_type_id"], name: "index_identifiers_on_body_and_identifier_type_id"
|
500
500
|
add_index "identifiers", ["manifestation_id"], name: "index_identifiers_on_manifestation_id"
|
501
501
|
|
502
|
-
create_table "import_request_transitions", force:
|
502
|
+
create_table "import_request_transitions", force: :cascade do |t|
|
503
503
|
t.string "to_state"
|
504
504
|
t.text "metadata", default: "{}"
|
505
505
|
t.integer "sort_key"
|
@@ -511,7 +511,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
511
511
|
add_index "import_request_transitions", ["import_request_id"], name: "index_import_request_transitions_on_import_request_id"
|
512
512
|
add_index "import_request_transitions", ["sort_key", "import_request_id"], name: "index_import_request_transitions_on_sort_key_and_request_id", unique: true
|
513
513
|
|
514
|
-
create_table "import_requests", force:
|
514
|
+
create_table "import_requests", force: :cascade do |t|
|
515
515
|
t.string "isbn"
|
516
516
|
t.integer "manifestation_id"
|
517
517
|
t.integer "user_id"
|
@@ -523,7 +523,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
523
523
|
add_index "import_requests", ["manifestation_id"], name: "index_import_requests_on_manifestation_id"
|
524
524
|
add_index "import_requests", ["user_id"], name: "index_import_requests_on_user_id"
|
525
525
|
|
526
|
-
create_table "item_has_use_restrictions", force:
|
526
|
+
create_table "item_has_use_restrictions", force: :cascade do |t|
|
527
527
|
t.integer "item_id", null: false
|
528
528
|
t.integer "use_restriction_id", null: false
|
529
529
|
t.datetime "created_at"
|
@@ -533,7 +533,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
533
533
|
add_index "item_has_use_restrictions", ["item_id"], name: "index_item_has_use_restrictions_on_item_id"
|
534
534
|
add_index "item_has_use_restrictions", ["use_restriction_id"], name: "index_item_has_use_restrictions_on_use_restriction_id"
|
535
535
|
|
536
|
-
create_table "items", force:
|
536
|
+
create_table "items", force: :cascade do |t|
|
537
537
|
t.string "call_number"
|
538
538
|
t.string "item_identifier"
|
539
539
|
t.datetime "created_at"
|
@@ -567,7 +567,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
567
567
|
add_index "items", ["required_role_id"], name: "index_items_on_required_role_id"
|
568
568
|
add_index "items", ["shelf_id"], name: "index_items_on_shelf_id"
|
569
569
|
|
570
|
-
create_table "languages", force:
|
570
|
+
create_table "languages", force: :cascade do |t|
|
571
571
|
t.string "name", null: false
|
572
572
|
t.string "native_name"
|
573
573
|
t.text "display_name"
|
@@ -583,7 +583,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
583
583
|
add_index "languages", ["iso_639_3"], name: "index_languages_on_iso_639_3"
|
584
584
|
add_index "languages", ["name"], name: "index_languages_on_name", unique: true
|
585
585
|
|
586
|
-
create_table "lending_policies", force:
|
586
|
+
create_table "lending_policies", force: :cascade do |t|
|
587
587
|
t.integer "item_id", null: false
|
588
588
|
t.integer "user_group_id", null: false
|
589
589
|
t.integer "loan_period", default: 0, null: false
|
@@ -598,7 +598,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
598
598
|
|
599
599
|
add_index "lending_policies", ["item_id", "user_group_id"], name: "index_lending_policies_on_item_id_and_user_group_id", unique: true
|
600
600
|
|
601
|
-
create_table "licenses", force:
|
601
|
+
create_table "licenses", force: :cascade do |t|
|
602
602
|
t.string "name", null: false
|
603
603
|
t.string "display_name"
|
604
604
|
t.text "note"
|
@@ -607,7 +607,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
607
607
|
t.datetime "updated_at"
|
608
608
|
end
|
609
609
|
|
610
|
-
create_table "manifestation_checkout_stat_transitions", force:
|
610
|
+
create_table "manifestation_checkout_stat_transitions", force: :cascade do |t|
|
611
611
|
t.string "to_state"
|
612
612
|
t.text "metadata", default: "{}"
|
613
613
|
t.integer "sort_key"
|
@@ -619,7 +619,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
619
619
|
add_index "manifestation_checkout_stat_transitions", ["manifestation_checkout_stat_id"], name: "index_manifestation_checkout_stat_transitions_on_stat_id"
|
620
620
|
add_index "manifestation_checkout_stat_transitions", ["sort_key", "manifestation_checkout_stat_id"], name: "index_manifestation_checkout_stat_transitions_on_transition", unique: true
|
621
621
|
|
622
|
-
create_table "manifestation_checkout_stats", force:
|
622
|
+
create_table "manifestation_checkout_stats", force: :cascade do |t|
|
623
623
|
t.datetime "start_date"
|
624
624
|
t.datetime "end_date"
|
625
625
|
t.text "note"
|
@@ -632,7 +632,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
632
632
|
|
633
633
|
add_index "manifestation_checkout_stats", ["user_id"], name: "index_manifestation_checkout_stats_on_user_id"
|
634
634
|
|
635
|
-
create_table "manifestation_relationship_types", force:
|
635
|
+
create_table "manifestation_relationship_types", force: :cascade do |t|
|
636
636
|
t.string "name", null: false
|
637
637
|
t.text "display_name"
|
638
638
|
t.text "note"
|
@@ -641,7 +641,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
641
641
|
t.datetime "updated_at"
|
642
642
|
end
|
643
643
|
|
644
|
-
create_table "manifestation_relationships", force:
|
644
|
+
create_table "manifestation_relationships", force: :cascade do |t|
|
645
645
|
t.integer "parent_id"
|
646
646
|
t.integer "child_id"
|
647
647
|
t.integer "manifestation_relationship_type_id"
|
@@ -653,7 +653,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
653
653
|
add_index "manifestation_relationships", ["child_id"], name: "index_manifestation_relationships_on_child_id"
|
654
654
|
add_index "manifestation_relationships", ["parent_id"], name: "index_manifestation_relationships_on_parent_id"
|
655
655
|
|
656
|
-
create_table "manifestation_reserve_stat_transitions", force:
|
656
|
+
create_table "manifestation_reserve_stat_transitions", force: :cascade do |t|
|
657
657
|
t.string "to_state"
|
658
658
|
t.text "metadata", default: "{}"
|
659
659
|
t.integer "sort_key"
|
@@ -665,7 +665,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
665
665
|
add_index "manifestation_reserve_stat_transitions", ["manifestation_reserve_stat_id"], name: "index_manifestation_reserve_stat_transitions_on_stat_id"
|
666
666
|
add_index "manifestation_reserve_stat_transitions", ["sort_key", "manifestation_reserve_stat_id"], name: "index_manifestation_reserve_stat_transitions_on_transition", unique: true
|
667
667
|
|
668
|
-
create_table "manifestation_reserve_stats", force:
|
668
|
+
create_table "manifestation_reserve_stats", force: :cascade do |t|
|
669
669
|
t.datetime "start_date"
|
670
670
|
t.datetime "end_date"
|
671
671
|
t.text "note"
|
@@ -678,7 +678,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
678
678
|
|
679
679
|
add_index "manifestation_reserve_stats", ["user_id"], name: "index_manifestation_reserve_stats_on_user_id"
|
680
680
|
|
681
|
-
create_table "manifestations", force:
|
681
|
+
create_table "manifestations", force: :cascade do |t|
|
682
682
|
t.text "original_title", null: false
|
683
683
|
t.text "title_alternative"
|
684
684
|
t.text "title_transcription"
|
@@ -746,7 +746,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
746
746
|
add_index "manifestations", ["manifestation_identifier"], name: "index_manifestations_on_manifestation_identifier"
|
747
747
|
add_index "manifestations", ["updated_at"], name: "index_manifestations_on_updated_at"
|
748
748
|
|
749
|
-
create_table "medium_of_performances", force:
|
749
|
+
create_table "medium_of_performances", force: :cascade do |t|
|
750
750
|
t.string "name", null: false
|
751
751
|
t.text "display_name"
|
752
752
|
t.text "note"
|
@@ -755,7 +755,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
755
755
|
t.datetime "updated_at"
|
756
756
|
end
|
757
757
|
|
758
|
-
create_table "message_request_transitions", force:
|
758
|
+
create_table "message_request_transitions", force: :cascade do |t|
|
759
759
|
t.string "to_state"
|
760
760
|
t.text "metadata", default: "{}"
|
761
761
|
t.integer "sort_key"
|
@@ -767,7 +767,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
767
767
|
add_index "message_request_transitions", ["message_request_id"], name: "index_message_request_transitions_on_message_request_id"
|
768
768
|
add_index "message_request_transitions", ["sort_key", "message_request_id"], name: "index_message_request_transitions_on_sort_key_and_request_id", unique: true
|
769
769
|
|
770
|
-
create_table "message_requests", force:
|
770
|
+
create_table "message_requests", force: :cascade do |t|
|
771
771
|
t.integer "sender_id"
|
772
772
|
t.integer "receiver_id"
|
773
773
|
t.integer "message_template_id"
|
@@ -778,7 +778,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
778
778
|
t.datetime "updated_at"
|
779
779
|
end
|
780
780
|
|
781
|
-
create_table "message_templates", force:
|
781
|
+
create_table "message_templates", force: :cascade do |t|
|
782
782
|
t.string "status", null: false
|
783
783
|
t.text "title", null: false
|
784
784
|
t.text "body", null: false
|
@@ -790,7 +790,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
790
790
|
|
791
791
|
add_index "message_templates", ["status"], name: "index_message_templates_on_status", unique: true
|
792
792
|
|
793
|
-
create_table "message_transitions", force:
|
793
|
+
create_table "message_transitions", force: :cascade do |t|
|
794
794
|
t.string "to_state"
|
795
795
|
t.text "metadata", default: "{}"
|
796
796
|
t.integer "sort_key"
|
@@ -802,7 +802,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
802
802
|
add_index "message_transitions", ["message_id"], name: "index_message_transitions_on_message_id"
|
803
803
|
add_index "message_transitions", ["sort_key", "message_id"], name: "index_message_transitions_on_sort_key_and_message_id", unique: true
|
804
804
|
|
805
|
-
create_table "messages", force:
|
805
|
+
create_table "messages", force: :cascade do |t|
|
806
806
|
t.datetime "read_at"
|
807
807
|
t.integer "receiver_id"
|
808
808
|
t.integer "sender_id"
|
@@ -822,7 +822,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
822
822
|
add_index "messages", ["receiver_id"], name: "index_messages_on_receiver_id"
|
823
823
|
add_index "messages", ["sender_id"], name: "index_messages_on_sender_id"
|
824
824
|
|
825
|
-
create_table "owns", force:
|
825
|
+
create_table "owns", force: :cascade do |t|
|
826
826
|
t.integer "agent_id", null: false
|
827
827
|
t.integer "item_id", null: false
|
828
828
|
t.integer "position"
|
@@ -833,7 +833,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
833
833
|
add_index "owns", ["agent_id"], name: "index_owns_on_agent_id"
|
834
834
|
add_index "owns", ["item_id"], name: "index_owns_on_item_id"
|
835
835
|
|
836
|
-
create_table "participates", force:
|
836
|
+
create_table "participates", force: :cascade do |t|
|
837
837
|
t.integer "agent_id", null: false
|
838
838
|
t.integer "event_id", null: false
|
839
839
|
t.integer "position"
|
@@ -844,7 +844,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
844
844
|
add_index "participates", ["agent_id"], name: "index_participates_on_agent_id"
|
845
845
|
add_index "participates", ["event_id"], name: "index_participates_on_event_id"
|
846
846
|
|
847
|
-
create_table "picture_files", force:
|
847
|
+
create_table "picture_files", force: :cascade do |t|
|
848
848
|
t.integer "picture_attachable_id"
|
849
849
|
t.string "picture_attachable_type"
|
850
850
|
t.string "content_type"
|
@@ -863,7 +863,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
863
863
|
|
864
864
|
add_index "picture_files", ["picture_attachable_id", "picture_attachable_type"], name: "index_picture_files_on_picture_attachable_id_and_type"
|
865
865
|
|
866
|
-
create_table "produce_types", force:
|
866
|
+
create_table "produce_types", force: :cascade do |t|
|
867
867
|
t.string "name"
|
868
868
|
t.text "display_name"
|
869
869
|
t.text "note"
|
@@ -872,7 +872,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
872
872
|
t.datetime "updated_at"
|
873
873
|
end
|
874
874
|
|
875
|
-
create_table "produces", force:
|
875
|
+
create_table "produces", force: :cascade do |t|
|
876
876
|
t.integer "agent_id", null: false
|
877
877
|
t.integer "manifestation_id", null: false
|
878
878
|
t.integer "position"
|
@@ -884,7 +884,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
884
884
|
add_index "produces", ["agent_id"], name: "index_produces_on_agent_id"
|
885
885
|
add_index "produces", ["manifestation_id"], name: "index_produces_on_manifestation_id"
|
886
886
|
|
887
|
-
create_table "profiles", force:
|
887
|
+
create_table "profiles", force: :cascade do |t|
|
888
888
|
t.integer "user_id"
|
889
889
|
t.integer "user_group_id"
|
890
890
|
t.integer "library_id"
|
@@ -907,7 +907,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
907
907
|
add_index "profiles", ["user_id"], name: "index_profiles_on_user_id"
|
908
908
|
add_index "profiles", ["user_number"], name: "index_profiles_on_user_number", unique: true
|
909
909
|
|
910
|
-
create_table "realize_types", force:
|
910
|
+
create_table "realize_types", force: :cascade do |t|
|
911
911
|
t.string "name"
|
912
912
|
t.text "display_name"
|
913
913
|
t.text "note"
|
@@ -916,7 +916,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
916
916
|
t.datetime "updated_at"
|
917
917
|
end
|
918
918
|
|
919
|
-
create_table "realizes", force:
|
919
|
+
create_table "realizes", force: :cascade do |t|
|
920
920
|
t.integer "agent_id", null: false
|
921
921
|
t.integer "expression_id", null: false
|
922
922
|
t.integer "position"
|
@@ -928,7 +928,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
928
928
|
add_index "realizes", ["agent_id"], name: "index_realizes_on_agent_id"
|
929
929
|
add_index "realizes", ["expression_id"], name: "index_realizes_on_expression_id"
|
930
930
|
|
931
|
-
create_table "reserve_stat_has_manifestations", force:
|
931
|
+
create_table "reserve_stat_has_manifestations", force: :cascade do |t|
|
932
932
|
t.integer "manifestation_reserve_stat_id", null: false
|
933
933
|
t.integer "manifestation_id", null: false
|
934
934
|
t.integer "reserves_count"
|
@@ -939,7 +939,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
939
939
|
add_index "reserve_stat_has_manifestations", ["manifestation_id"], name: "index_reserve_stat_has_manifestations_on_manifestation_id"
|
940
940
|
add_index "reserve_stat_has_manifestations", ["manifestation_reserve_stat_id"], name: "index_reserve_stat_has_manifestations_on_m_reserve_stat_id"
|
941
941
|
|
942
|
-
create_table "reserve_stat_has_users", force:
|
942
|
+
create_table "reserve_stat_has_users", force: :cascade do |t|
|
943
943
|
t.integer "user_reserve_stat_id", null: false
|
944
944
|
t.integer "user_id", null: false
|
945
945
|
t.integer "reserves_count"
|
@@ -950,7 +950,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
950
950
|
add_index "reserve_stat_has_users", ["user_id"], name: "index_reserve_stat_has_users_on_user_id"
|
951
951
|
add_index "reserve_stat_has_users", ["user_reserve_stat_id"], name: "index_reserve_stat_has_users_on_user_reserve_stat_id"
|
952
952
|
|
953
|
-
create_table "reserve_transitions", force:
|
953
|
+
create_table "reserve_transitions", force: :cascade do |t|
|
954
954
|
t.string "to_state"
|
955
955
|
t.text "metadata", default: "{}"
|
956
956
|
t.integer "sort_key"
|
@@ -962,7 +962,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
962
962
|
add_index "reserve_transitions", ["reserve_id"], name: "index_reserve_transitions_on_reserve_id"
|
963
963
|
add_index "reserve_transitions", ["sort_key", "reserve_id"], name: "index_reserve_transitions_on_sort_key_and_reserve_id", unique: true
|
964
964
|
|
965
|
-
create_table "reserves", force:
|
965
|
+
create_table "reserves", force: :cascade do |t|
|
966
966
|
t.integer "user_id", null: false
|
967
967
|
t.integer "manifestation_id", null: false
|
968
968
|
t.integer "item_id"
|
@@ -985,7 +985,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
985
985
|
add_index "reserves", ["request_status_type_id"], name: "index_reserves_on_request_status_type_id"
|
986
986
|
add_index "reserves", ["user_id"], name: "index_reserves_on_user_id"
|
987
987
|
|
988
|
-
create_table "resource_export_file_transitions", force:
|
988
|
+
create_table "resource_export_file_transitions", force: :cascade do |t|
|
989
989
|
t.string "to_state"
|
990
990
|
t.text "metadata", default: "{}"
|
991
991
|
t.integer "sort_key"
|
@@ -997,7 +997,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
997
997
|
add_index "resource_export_file_transitions", ["resource_export_file_id"], name: "index_resource_export_file_transitions_on_file_id"
|
998
998
|
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
|
999
999
|
|
1000
|
-
create_table "resource_export_files", force:
|
1000
|
+
create_table "resource_export_files", force: :cascade do |t|
|
1001
1001
|
t.integer "user_id"
|
1002
1002
|
t.string "resource_export_file_name"
|
1003
1003
|
t.string "resource_export_content_type"
|
@@ -1008,7 +1008,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
1008
1008
|
t.datetime "updated_at"
|
1009
1009
|
end
|
1010
1010
|
|
1011
|
-
create_table "resource_import_file_transitions", force:
|
1011
|
+
create_table "resource_import_file_transitions", force: :cascade do |t|
|
1012
1012
|
t.string "to_state"
|
1013
1013
|
t.text "metadata", default: "{}"
|
1014
1014
|
t.integer "sort_key"
|
@@ -1020,7 +1020,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
1020
1020
|
add_index "resource_import_file_transitions", ["resource_import_file_id"], name: "index_resource_import_file_transitions_on_file_id"
|
1021
1021
|
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
|
1022
1022
|
|
1023
|
-
create_table "resource_import_files", force:
|
1023
|
+
create_table "resource_import_files", force: :cascade do |t|
|
1024
1024
|
t.integer "parent_id"
|
1025
1025
|
t.string "content_type"
|
1026
1026
|
t.integer "size"
|
@@ -1043,7 +1043,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
1043
1043
|
add_index "resource_import_files", ["parent_id"], name: "index_resource_import_files_on_parent_id"
|
1044
1044
|
add_index "resource_import_files", ["user_id"], name: "index_resource_import_files_on_user_id"
|
1045
1045
|
|
1046
|
-
create_table "resource_import_results", force:
|
1046
|
+
create_table "resource_import_results", force: :cascade do |t|
|
1047
1047
|
t.integer "resource_import_file_id"
|
1048
1048
|
t.integer "manifestation_id"
|
1049
1049
|
t.integer "item_id"
|
@@ -1057,7 +1057,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
1057
1057
|
add_index "resource_import_results", ["manifestation_id"], name: "index_resource_import_results_on_manifestation_id"
|
1058
1058
|
add_index "resource_import_results", ["resource_import_file_id"], name: "index_resource_import_results_on_resource_import_file_id"
|
1059
1059
|
|
1060
|
-
create_table "roles", force:
|
1060
|
+
create_table "roles", force: :cascade do |t|
|
1061
1061
|
t.string "name", null: false
|
1062
1062
|
t.string "display_name"
|
1063
1063
|
t.text "note"
|
@@ -1067,13 +1067,13 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
1067
1067
|
t.integer "position"
|
1068
1068
|
end
|
1069
1069
|
|
1070
|
-
create_table "series_statement_merge_lists", force:
|
1070
|
+
create_table "series_statement_merge_lists", force: :cascade do |t|
|
1071
1071
|
t.string "title"
|
1072
1072
|
t.datetime "created_at"
|
1073
1073
|
t.datetime "updated_at"
|
1074
1074
|
end
|
1075
1075
|
|
1076
|
-
create_table "series_statement_merges", force:
|
1076
|
+
create_table "series_statement_merges", force: :cascade do |t|
|
1077
1077
|
t.integer "series_statement_id", null: false
|
1078
1078
|
t.integer "series_statement_merge_list_id", null: false
|
1079
1079
|
t.datetime "created_at"
|
@@ -1083,7 +1083,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
1083
1083
|
add_index "series_statement_merges", ["series_statement_id"], name: "index_series_statement_merges_on_series_statement_id"
|
1084
1084
|
add_index "series_statement_merges", ["series_statement_merge_list_id"], name: "index_series_statement_merges_on_list_id"
|
1085
1085
|
|
1086
|
-
create_table "series_statements", force:
|
1086
|
+
create_table "series_statements", force: :cascade do |t|
|
1087
1087
|
t.text "original_title"
|
1088
1088
|
t.text "numbering"
|
1089
1089
|
t.text "title_subseries"
|
@@ -1108,7 +1108,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
1108
1108
|
add_index "series_statements", ["root_manifestation_id"], name: "index_series_statements_on_root_manifestation_id"
|
1109
1109
|
add_index "series_statements", ["series_statement_identifier"], name: "index_series_statements_on_series_statement_identifier"
|
1110
1110
|
|
1111
|
-
create_table "subject_heading_types", force:
|
1111
|
+
create_table "subject_heading_types", force: :cascade do |t|
|
1112
1112
|
t.string "name", null: false
|
1113
1113
|
t.text "display_name"
|
1114
1114
|
t.text "note"
|
@@ -1117,7 +1117,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
1117
1117
|
t.datetime "updated_at"
|
1118
1118
|
end
|
1119
1119
|
|
1120
|
-
create_table "subject_types", force:
|
1120
|
+
create_table "subject_types", force: :cascade do |t|
|
1121
1121
|
t.string "name", null: false
|
1122
1122
|
t.text "display_name"
|
1123
1123
|
t.text "note"
|
@@ -1126,7 +1126,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
1126
1126
|
t.datetime "updated_at"
|
1127
1127
|
end
|
1128
1128
|
|
1129
|
-
create_table "subjects", force:
|
1129
|
+
create_table "subjects", force: :cascade do |t|
|
1130
1130
|
t.integer "parent_id"
|
1131
1131
|
t.integer "use_term_id"
|
1132
1132
|
t.string "term"
|
@@ -1151,7 +1151,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
1151
1151
|
add_index "subjects", ["term"], name: "index_subjects_on_term"
|
1152
1152
|
add_index "subjects", ["use_term_id"], name: "index_subjects_on_use_term_id"
|
1153
1153
|
|
1154
|
-
create_table "use_restrictions", force:
|
1154
|
+
create_table "use_restrictions", force: :cascade do |t|
|
1155
1155
|
t.string "name", null: false
|
1156
1156
|
t.text "display_name"
|
1157
1157
|
t.text "note"
|
@@ -1160,7 +1160,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
1160
1160
|
t.datetime "updated_at"
|
1161
1161
|
end
|
1162
1162
|
|
1163
|
-
create_table "user_checkout_stat_transitions", force:
|
1163
|
+
create_table "user_checkout_stat_transitions", force: :cascade do |t|
|
1164
1164
|
t.string "to_state"
|
1165
1165
|
t.text "metadata", default: "{}"
|
1166
1166
|
t.integer "sort_key"
|
@@ -1172,7 +1172,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
1172
1172
|
add_index "user_checkout_stat_transitions", ["sort_key", "user_checkout_stat_id"], name: "index_user_checkout_stat_transitions_on_sort_key_and_stat_id", unique: true
|
1173
1173
|
add_index "user_checkout_stat_transitions", ["user_checkout_stat_id"], name: "index_user_checkout_stat_transitions_on_user_checkout_stat_id"
|
1174
1174
|
|
1175
|
-
create_table "user_checkout_stats", force:
|
1175
|
+
create_table "user_checkout_stats", force: :cascade do |t|
|
1176
1176
|
t.datetime "start_date"
|
1177
1177
|
t.datetime "end_date"
|
1178
1178
|
t.text "note"
|
@@ -1185,7 +1185,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
1185
1185
|
|
1186
1186
|
add_index "user_checkout_stats", ["user_id"], name: "index_user_checkout_stats_on_user_id"
|
1187
1187
|
|
1188
|
-
create_table "user_export_file_transitions", force:
|
1188
|
+
create_table "user_export_file_transitions", force: :cascade do |t|
|
1189
1189
|
t.string "to_state"
|
1190
1190
|
t.text "metadata", default: "{}"
|
1191
1191
|
t.integer "sort_key"
|
@@ -1197,7 +1197,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
1197
1197
|
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
|
1198
1198
|
add_index "user_export_file_transitions", ["user_export_file_id"], name: "index_user_export_file_transitions_on_file_id"
|
1199
1199
|
|
1200
|
-
create_table "user_export_files", force:
|
1200
|
+
create_table "user_export_files", force: :cascade do |t|
|
1201
1201
|
t.integer "user_id"
|
1202
1202
|
t.string "user_export_file_name"
|
1203
1203
|
t.string "user_export_content_type"
|
@@ -1208,7 +1208,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
1208
1208
|
t.datetime "updated_at"
|
1209
1209
|
end
|
1210
1210
|
|
1211
|
-
create_table "user_group_has_checkout_types", force:
|
1211
|
+
create_table "user_group_has_checkout_types", force: :cascade do |t|
|
1212
1212
|
t.integer "user_group_id", null: false
|
1213
1213
|
t.integer "checkout_type_id", null: false
|
1214
1214
|
t.integer "checkout_limit", default: 0, null: false
|
@@ -1228,7 +1228,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
1228
1228
|
add_index "user_group_has_checkout_types", ["checkout_type_id"], name: "index_user_group_has_checkout_types_on_checkout_type_id"
|
1229
1229
|
add_index "user_group_has_checkout_types", ["user_group_id"], name: "index_user_group_has_checkout_types_on_user_group_id"
|
1230
1230
|
|
1231
|
-
create_table "user_groups", force:
|
1231
|
+
create_table "user_groups", force: :cascade do |t|
|
1232
1232
|
t.string "name"
|
1233
1233
|
t.text "display_name"
|
1234
1234
|
t.text "note"
|
@@ -1243,7 +1243,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
1243
1243
|
t.integer "number_of_time_to_notify_overdue", default: 3, null: false
|
1244
1244
|
end
|
1245
1245
|
|
1246
|
-
create_table "user_has_roles", force:
|
1246
|
+
create_table "user_has_roles", force: :cascade do |t|
|
1247
1247
|
t.integer "user_id"
|
1248
1248
|
t.integer "role_id"
|
1249
1249
|
t.datetime "created_at"
|
@@ -1253,7 +1253,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
1253
1253
|
add_index "user_has_roles", ["role_id"], name: "index_user_has_roles_on_role_id"
|
1254
1254
|
add_index "user_has_roles", ["user_id"], name: "index_user_has_roles_on_user_id"
|
1255
1255
|
|
1256
|
-
create_table "user_import_file_transitions", force:
|
1256
|
+
create_table "user_import_file_transitions", force: :cascade do |t|
|
1257
1257
|
t.string "to_state"
|
1258
1258
|
t.text "metadata", default: "{}"
|
1259
1259
|
t.integer "sort_key"
|
@@ -1265,7 +1265,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
1265
1265
|
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
|
1266
1266
|
add_index "user_import_file_transitions", ["user_import_file_id"], name: "index_user_import_file_transitions_on_user_import_file_id"
|
1267
1267
|
|
1268
|
-
create_table "user_import_files", force:
|
1268
|
+
create_table "user_import_files", force: :cascade do |t|
|
1269
1269
|
t.integer "user_id"
|
1270
1270
|
t.text "note"
|
1271
1271
|
t.datetime "executed_at"
|
@@ -1283,7 +1283,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
1283
1283
|
t.integer "default_user_group_id"
|
1284
1284
|
end
|
1285
1285
|
|
1286
|
-
create_table "user_import_results", force:
|
1286
|
+
create_table "user_import_results", force: :cascade do |t|
|
1287
1287
|
t.integer "user_import_file_id"
|
1288
1288
|
t.integer "user_id"
|
1289
1289
|
t.text "body"
|
@@ -1291,7 +1291,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
1291
1291
|
t.datetime "updated_at"
|
1292
1292
|
end
|
1293
1293
|
|
1294
|
-
create_table "user_reserve_stat_transitions", force:
|
1294
|
+
create_table "user_reserve_stat_transitions", force: :cascade do |t|
|
1295
1295
|
t.string "to_state"
|
1296
1296
|
t.text "metadata", default: "{}"
|
1297
1297
|
t.integer "sort_key"
|
@@ -1303,7 +1303,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
1303
1303
|
add_index "user_reserve_stat_transitions", ["sort_key", "user_reserve_stat_id"], name: "index_user_reserve_stat_transitions_on_sort_key_and_stat_id", unique: true
|
1304
1304
|
add_index "user_reserve_stat_transitions", ["user_reserve_stat_id"], name: "index_user_reserve_stat_transitions_on_user_reserve_stat_id"
|
1305
1305
|
|
1306
|
-
create_table "user_reserve_stats", force:
|
1306
|
+
create_table "user_reserve_stats", force: :cascade do |t|
|
1307
1307
|
t.datetime "start_date"
|
1308
1308
|
t.datetime "end_date"
|
1309
1309
|
t.text "note"
|
@@ -1316,7 +1316,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
1316
1316
|
|
1317
1317
|
add_index "user_reserve_stats", ["user_id"], name: "index_user_reserve_stats_on_user_id"
|
1318
1318
|
|
1319
|
-
create_table "users", force:
|
1319
|
+
create_table "users", force: :cascade do |t|
|
1320
1320
|
t.string "email", default: "", null: false
|
1321
1321
|
t.string "encrypted_password", default: "", null: false
|
1322
1322
|
t.string "reset_password_token"
|
@@ -1346,7 +1346,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
|
|
1346
1346
|
add_index "users", ["unlock_token"], name: "index_users_on_unlock_token", unique: true
|
1347
1347
|
add_index "users", ["username"], name: "index_users_on_username", unique: true
|
1348
1348
|
|
1349
|
-
create_table "versions", force:
|
1349
|
+
create_table "versions", force: :cascade do |t|
|
1350
1350
|
t.string "item_type", null: false
|
1351
1351
|
t.integer "item_id", null: false
|
1352
1352
|
t.string "event", null: false
|