enju_inter_library_loan 0.1.0.pre11 → 0.1.0.pre12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 65e0303bbd5ff4258673483151502b59bbec2c9c
4
- data.tar.gz: 822719c78dcc0c2228b16a3de06fad8f1cd9d3ce
3
+ metadata.gz: e54ae7d4868fde8078534df33e17df9ee109ee97
4
+ data.tar.gz: d4d3d63cd6076cf93a652628a93041d69b0f7735
5
5
  SHA512:
6
- metadata.gz: 9c5205217df4646c79a9573680bca3409599509d950701488ccee819ea709814e9c536781c27df4755befedd3aa511b620fa5fa55d9940d3ab4b93524e14a731
7
- data.tar.gz: 75876679a7b4a2e065ad5122914a98bacac8fd1e40749215d2b56e754e239315793334ca3b0dd023924a13d9e3ad61ed4cb389075546a0795c8f84731c2032ee
6
+ metadata.gz: 616fe5ff99e9d6ba02986a1e36da5abf19c7bb06548210a241c9ca9dba95d0c464311e07467eb7ad021941ca9d12802d199435d6d4a15c01c61c227a7b993202
7
+ data.tar.gz: cbf121f21cbdb2a72059f40e41372323c694d378ac261bf06068d3839534ab00edd2583bbac8eafbdece9567c3c415160cb4f65efcf93ef6a1b80739276f7178
@@ -92,6 +92,6 @@ end
92
92
  # return_shipped_at :datetime
93
93
  # return_received_at :datetime
94
94
  # deleted_at :datetime
95
- # created_at :datetime not null
96
- # updated_at :datetime not null
95
+ # created_at :datetime
96
+ # updated_at :datetime
97
97
  #
@@ -11,10 +11,10 @@ end
11
11
  # Table name: inter_library_loan_transitions
12
12
  #
13
13
  # id :integer not null, primary key
14
- # to_state :string(255)
15
- # metadata :text default("{}")
14
+ # to_state :string
15
+ # metadata :text default({})
16
16
  # sort_key :integer
17
17
  # inter_library_loan_id :integer
18
- # created_at :datetime not null
19
- # updated_at :datetime not null
18
+ # created_at :datetime
19
+ # updated_at :datetime
20
20
  #
@@ -1,5 +1,4 @@
1
- require 'enju_biblio'
2
- require 'enju_library'
1
+ require 'enju_leaf'
3
2
 
4
3
  module EnjuInterLibraryLoan
5
4
  class Engine < ::Rails::Engine
@@ -1,3 +1,3 @@
1
1
  module EnjuInterLibraryLoan
2
- VERSION = "0.1.0.pre11"
2
+ VERSION = "0.1.0.pre12"
3
3
  end
@@ -1,9 +1,13 @@
1
- // This is a manifest file that'll be compiled into including all the files listed below.
2
- // Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
3
- // be included in the compiled file accessible from http://example.com/assets/application.js
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
6
+ //
4
7
  // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
5
- // the compiled file.
8
+ // compiled file.
9
+ //
10
+ // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
+ // about supported directives.
6
12
  //
7
- //= require jquery
8
- //= require jquery_ujs
9
13
  //= require_tree .
@@ -1,7 +1,7 @@
1
1
  class User < ActiveRecord::Base
2
2
  # Include default devise modules. Others available are:
3
3
  # :token_authenticatable, :encryptable, :confirmable, :lockable, :timeoutable and :omniauthable
4
- devise :database_authenticatable, :registerable,
4
+ devise :database_authenticatable, #:registerable,
5
5
  :recoverable, :rememberable, :trackable, :validatable
6
6
 
7
7
  # Setup accessible (or protected) attributes for your model
@@ -0,0 +1,5 @@
1
+ class AddSettingsToLibraryGroup < ActiveRecord::Migration
2
+ def change
3
+ add_column :library_groups, :settings, :text
4
+ end
5
+ end
@@ -11,9 +11,9 @@
11
11
  #
12
12
  # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 20141014065831) do
14
+ ActiveRecord::Schema.define(version: 20150221063719) 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: 20141014065831) 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: 20141014065831) 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: 20141014065831) 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.text "body"
@@ -66,13 +66,13 @@ ActiveRecord::Schema.define(version: 20141014065831) do
66
66
  t.datetime "updated_at"
67
67
  end
68
68
 
69
- create_table "agent_merge_lists", force: true do |t|
69
+ create_table "agent_merge_lists", force: :cascade do |t|
70
70
  t.string "title"
71
71
  t.datetime "created_at"
72
72
  t.datetime "updated_at"
73
73
  end
74
74
 
75
- create_table "agent_merges", force: true do |t|
75
+ create_table "agent_merges", force: :cascade do |t|
76
76
  t.integer "agent_id", null: false
77
77
  t.integer "agent_merge_list_id", null: false
78
78
  t.datetime "created_at"
@@ -82,7 +82,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
82
82
  add_index "agent_merges", ["agent_id"], name: "index_agent_merges_on_agent_id"
83
83
  add_index "agent_merges", ["agent_merge_list_id"], name: "index_agent_merges_on_agent_merge_list_id"
84
84
 
85
- create_table "agent_relationship_types", force: true do |t|
85
+ create_table "agent_relationship_types", force: :cascade do |t|
86
86
  t.string "name", null: false
87
87
  t.text "display_name"
88
88
  t.text "note"
@@ -91,7 +91,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
91
91
  t.datetime "updated_at"
92
92
  end
93
93
 
94
- create_table "agent_relationships", force: true do |t|
94
+ create_table "agent_relationships", force: :cascade do |t|
95
95
  t.integer "parent_id"
96
96
  t.integer "child_id"
97
97
  t.integer "agent_relationship_type_id"
@@ -103,7 +103,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
103
103
  add_index "agent_relationships", ["child_id"], name: "index_agent_relationships_on_child_id"
104
104
  add_index "agent_relationships", ["parent_id"], name: "index_agent_relationships_on_parent_id"
105
105
 
106
- create_table "agent_types", force: true do |t|
106
+ create_table "agent_types", force: :cascade do |t|
107
107
  t.string "name", null: false
108
108
  t.text "display_name"
109
109
  t.text "note"
@@ -112,7 +112,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
112
112
  t.datetime "updated_at"
113
113
  end
114
114
 
115
- create_table "agents", force: true do |t|
115
+ create_table "agents", force: :cascade do |t|
116
116
  t.string "last_name"
117
117
  t.string "middle_name"
118
118
  t.string "first_name"
@@ -166,7 +166,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
166
166
  add_index "agents", ["language_id"], name: "index_agents_on_language_id"
167
167
  add_index "agents", ["required_role_id"], name: "index_agents_on_required_role_id"
168
168
 
169
- create_table "baskets", force: true do |t|
169
+ create_table "baskets", force: :cascade do |t|
170
170
  t.integer "user_id"
171
171
  t.text "note"
172
172
  t.integer "lock_version", default: 0, null: false
@@ -176,7 +176,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
176
176
 
177
177
  add_index "baskets", ["user_id"], name: "index_baskets_on_user_id"
178
178
 
179
- create_table "bookstores", force: true do |t|
179
+ create_table "bookstores", force: :cascade do |t|
180
180
  t.text "name", null: false
181
181
  t.string "zip_code"
182
182
  t.text "address"
@@ -190,7 +190,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
190
190
  t.datetime "updated_at"
191
191
  end
192
192
 
193
- create_table "budget_types", force: true do |t|
193
+ create_table "budget_types", force: :cascade do |t|
194
194
  t.string "name"
195
195
  t.text "display_name"
196
196
  t.text "note"
@@ -199,7 +199,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
199
199
  t.datetime "updated_at"
200
200
  end
201
201
 
202
- create_table "carrier_type_has_checkout_types", force: true do |t|
202
+ create_table "carrier_type_has_checkout_types", force: :cascade do |t|
203
203
  t.integer "carrier_type_id", null: false
204
204
  t.integer "checkout_type_id", null: false
205
205
  t.text "note"
@@ -211,7 +211,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
211
211
  add_index "carrier_type_has_checkout_types", ["carrier_type_id"], name: "index_carrier_type_has_checkout_types_on_m_form_id"
212
212
  add_index "carrier_type_has_checkout_types", ["checkout_type_id"], name: "index_carrier_type_has_checkout_types_on_checkout_type_id"
213
213
 
214
- create_table "carrier_types", force: true do |t|
214
+ create_table "carrier_types", force: :cascade do |t|
215
215
  t.string "name", null: false
216
216
  t.text "display_name"
217
217
  t.text "note"
@@ -220,7 +220,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
220
220
  t.datetime "updated_at"
221
221
  end
222
222
 
223
- create_table "checked_items", force: true do |t|
223
+ create_table "checked_items", force: :cascade do |t|
224
224
  t.integer "item_id", null: false
225
225
  t.integer "basket_id", null: false
226
226
  t.datetime "due_date", null: false
@@ -232,7 +232,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
232
232
  add_index "checked_items", ["basket_id"], name: "index_checked_items_on_basket_id"
233
233
  add_index "checked_items", ["item_id"], name: "index_checked_items_on_item_id"
234
234
 
235
- create_table "checkins", force: true do |t|
235
+ create_table "checkins", force: :cascade do |t|
236
236
  t.integer "item_id", null: false
237
237
  t.integer "librarian_id"
238
238
  t.integer "basket_id"
@@ -245,7 +245,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
245
245
  add_index "checkins", ["item_id"], name: "index_checkins_on_item_id"
246
246
  add_index "checkins", ["librarian_id"], name: "index_checkins_on_librarian_id"
247
247
 
248
- create_table "checkout_stat_has_manifestations", force: true do |t|
248
+ create_table "checkout_stat_has_manifestations", force: :cascade do |t|
249
249
  t.integer "manifestation_checkout_stat_id", null: false
250
250
  t.integer "manifestation_id", null: false
251
251
  t.integer "checkouts_count"
@@ -256,7 +256,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
256
256
  add_index "checkout_stat_has_manifestations", ["manifestation_checkout_stat_id"], name: "index_checkout_stat_has_manifestations_on_checkout_stat_id"
257
257
  add_index "checkout_stat_has_manifestations", ["manifestation_id"], name: "index_checkout_stat_has_manifestations_on_manifestation_id"
258
258
 
259
- create_table "checkout_stat_has_users", force: true do |t|
259
+ create_table "checkout_stat_has_users", force: :cascade do |t|
260
260
  t.integer "user_checkout_stat_id", null: false
261
261
  t.integer "user_id", null: false
262
262
  t.integer "checkouts_count", default: 0, null: false
@@ -267,7 +267,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
267
267
  add_index "checkout_stat_has_users", ["user_checkout_stat_id"], name: "index_checkout_stat_has_users_on_user_checkout_stat_id"
268
268
  add_index "checkout_stat_has_users", ["user_id"], name: "index_checkout_stat_has_users_on_user_id"
269
269
 
270
- create_table "checkout_types", force: true do |t|
270
+ create_table "checkout_types", force: :cascade do |t|
271
271
  t.string "name", null: false
272
272
  t.text "display_name"
273
273
  t.text "note"
@@ -278,7 +278,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
278
278
 
279
279
  add_index "checkout_types", ["name"], name: "index_checkout_types_on_name"
280
280
 
281
- create_table "checkouts", force: true do |t|
281
+ create_table "checkouts", force: :cascade do |t|
282
282
  t.integer "user_id"
283
283
  t.integer "item_id", null: false
284
284
  t.integer "checkin_id"
@@ -300,7 +300,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
300
300
  add_index "checkouts", ["shelf_id"], name: "index_checkouts_on_shelf_id"
301
301
  add_index "checkouts", ["user_id"], name: "index_checkouts_on_user_id"
302
302
 
303
- create_table "circulation_statuses", force: true do |t|
303
+ create_table "circulation_statuses", force: :cascade do |t|
304
304
  t.string "name", null: false
305
305
  t.text "display_name"
306
306
  t.text "note"
@@ -309,7 +309,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
309
309
  t.datetime "updated_at"
310
310
  end
311
311
 
312
- create_table "content_types", force: true do |t|
312
+ create_table "content_types", force: :cascade do |t|
313
313
  t.string "name", null: false
314
314
  t.text "display_name"
315
315
  t.text "note"
@@ -318,7 +318,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
318
318
  t.datetime "updated_at"
319
319
  end
320
320
 
321
- create_table "countries", force: true do |t|
321
+ create_table "countries", force: :cascade do |t|
322
322
  t.string "name", null: false
323
323
  t.text "display_name"
324
324
  t.string "alpha_2"
@@ -333,7 +333,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
333
333
  add_index "countries", ["name"], name: "index_countries_on_name"
334
334
  add_index "countries", ["numeric_3"], name: "index_countries_on_numeric_3"
335
335
 
336
- create_table "create_types", force: true do |t|
336
+ create_table "create_types", force: :cascade do |t|
337
337
  t.string "name"
338
338
  t.text "display_name"
339
339
  t.text "note"
@@ -342,7 +342,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
342
342
  t.datetime "updated_at"
343
343
  end
344
344
 
345
- create_table "creates", force: true do |t|
345
+ create_table "creates", force: :cascade do |t|
346
346
  t.integer "agent_id", null: false
347
347
  t.integer "work_id", null: false
348
348
  t.integer "position"
@@ -354,7 +354,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
354
354
  add_index "creates", ["agent_id"], name: "index_creates_on_agent_id"
355
355
  add_index "creates", ["work_id"], name: "index_creates_on_work_id"
356
356
 
357
- create_table "donates", force: true do |t|
357
+ create_table "donates", force: :cascade do |t|
358
358
  t.integer "agent_id", null: false
359
359
  t.integer "item_id", null: false
360
360
  t.datetime "created_at"
@@ -364,7 +364,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
364
364
  add_index "donates", ["agent_id"], name: "index_donates_on_agent_id"
365
365
  add_index "donates", ["item_id"], name: "index_donates_on_item_id"
366
366
 
367
- create_table "exemplifies", force: true do |t|
367
+ create_table "exemplifies", force: :cascade do |t|
368
368
  t.integer "manifestation_id", null: false
369
369
  t.integer "item_id", null: false
370
370
  t.integer "position"
@@ -375,7 +375,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
375
375
  add_index "exemplifies", ["item_id"], name: "index_exemplifies_on_item_id", unique: true
376
376
  add_index "exemplifies", ["manifestation_id"], name: "index_exemplifies_on_manifestation_id"
377
377
 
378
- create_table "extents", force: true do |t|
378
+ create_table "extents", force: :cascade do |t|
379
379
  t.string "name", null: false
380
380
  t.text "display_name"
381
381
  t.text "note"
@@ -384,7 +384,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
384
384
  t.datetime "updated_at"
385
385
  end
386
386
 
387
- create_table "form_of_works", force: true do |t|
387
+ create_table "form_of_works", force: :cascade do |t|
388
388
  t.string "name", null: false
389
389
  t.text "display_name"
390
390
  t.text "note"
@@ -393,7 +393,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
393
393
  t.datetime "updated_at"
394
394
  end
395
395
 
396
- create_table "frequencies", force: true do |t|
396
+ create_table "frequencies", force: :cascade do |t|
397
397
  t.string "name", null: false
398
398
  t.text "display_name"
399
399
  t.text "note"
@@ -402,7 +402,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
402
402
  t.datetime "updated_at"
403
403
  end
404
404
 
405
- create_table "identifier_types", force: true do |t|
405
+ create_table "identifier_types", force: :cascade do |t|
406
406
  t.string "name"
407
407
  t.text "display_name"
408
408
  t.text "note"
@@ -411,7 +411,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
411
411
  t.datetime "updated_at"
412
412
  end
413
413
 
414
- create_table "identifiers", force: true do |t|
414
+ create_table "identifiers", force: :cascade do |t|
415
415
  t.string "body", null: false
416
416
  t.integer "identifier_type_id", null: false
417
417
  t.integer "manifestation_id"
@@ -424,7 +424,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
424
424
  add_index "identifiers", ["body", "identifier_type_id"], name: "index_identifiers_on_body_and_identifier_type_id"
425
425
  add_index "identifiers", ["manifestation_id"], name: "index_identifiers_on_manifestation_id"
426
426
 
427
- create_table "import_request_transitions", force: true do |t|
427
+ create_table "import_request_transitions", force: :cascade do |t|
428
428
  t.string "to_state"
429
429
  t.text "metadata", default: "{}"
430
430
  t.integer "sort_key"
@@ -436,7 +436,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
436
436
  add_index "import_request_transitions", ["import_request_id"], name: "index_import_request_transitions_on_import_request_id"
437
437
  add_index "import_request_transitions", ["sort_key", "import_request_id"], name: "index_import_request_transitions_on_sort_key_and_request_id", unique: true
438
438
 
439
- create_table "import_requests", force: true do |t|
439
+ create_table "import_requests", force: :cascade do |t|
440
440
  t.string "isbn"
441
441
  t.integer "manifestation_id"
442
442
  t.integer "user_id"
@@ -448,7 +448,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
448
448
  add_index "import_requests", ["manifestation_id"], name: "index_import_requests_on_manifestation_id"
449
449
  add_index "import_requests", ["user_id"], name: "index_import_requests_on_user_id"
450
450
 
451
- create_table "inter_library_loan_transitions", force: true do |t|
451
+ create_table "inter_library_loan_transitions", force: :cascade do |t|
452
452
  t.string "to_state"
453
453
  t.text "metadata", default: "{}"
454
454
  t.integer "sort_key"
@@ -460,7 +460,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
460
460
  add_index "inter_library_loan_transitions", ["inter_library_loan_id"], name: "index_inter_library_loan_transitions_on_inter_library_loan_id"
461
461
  add_index "inter_library_loan_transitions", ["sort_key", "inter_library_loan_id"], name: "index_inter_library_loan_transitions_on_sort_key_and_loan_id", unique: true
462
462
 
463
- create_table "inter_library_loans", force: true do |t|
463
+ create_table "inter_library_loans", force: :cascade do |t|
464
464
  t.integer "item_id", null: false
465
465
  t.integer "borrowing_library_id", null: false
466
466
  t.datetime "requested_at"
@@ -476,7 +476,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
476
476
  add_index "inter_library_loans", ["borrowing_library_id"], name: "index_inter_library_loans_on_borrowing_library_id"
477
477
  add_index "inter_library_loans", ["item_id"], name: "index_inter_library_loans_on_item_id"
478
478
 
479
- create_table "item_has_use_restrictions", force: true do |t|
479
+ create_table "item_has_use_restrictions", force: :cascade do |t|
480
480
  t.integer "item_id", null: false
481
481
  t.integer "use_restriction_id", null: false
482
482
  t.datetime "created_at"
@@ -486,7 +486,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
486
486
  add_index "item_has_use_restrictions", ["item_id"], name: "index_item_has_use_restrictions_on_item_id"
487
487
  add_index "item_has_use_restrictions", ["use_restriction_id"], name: "index_item_has_use_restrictions_on_use_restriction_id"
488
488
 
489
- create_table "items", force: true do |t|
489
+ create_table "items", force: :cascade do |t|
490
490
  t.string "call_number"
491
491
  t.string "item_identifier"
492
492
  t.datetime "created_at"
@@ -520,7 +520,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
520
520
  add_index "items", ["required_role_id"], name: "index_items_on_required_role_id"
521
521
  add_index "items", ["shelf_id"], name: "index_items_on_shelf_id"
522
522
 
523
- create_table "languages", force: true do |t|
523
+ create_table "languages", force: :cascade do |t|
524
524
  t.string "name", null: false
525
525
  t.string "native_name"
526
526
  t.text "display_name"
@@ -536,7 +536,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
536
536
  add_index "languages", ["iso_639_3"], name: "index_languages_on_iso_639_3"
537
537
  add_index "languages", ["name"], name: "index_languages_on_name", unique: true
538
538
 
539
- create_table "lending_policies", force: true do |t|
539
+ create_table "lending_policies", force: :cascade do |t|
540
540
  t.integer "item_id", null: false
541
541
  t.integer "user_group_id", null: false
542
542
  t.integer "loan_period", default: 0, null: false
@@ -551,7 +551,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
551
551
 
552
552
  add_index "lending_policies", ["item_id", "user_group_id"], name: "index_lending_policies_on_item_id_and_user_group_id", unique: true
553
553
 
554
- create_table "libraries", force: true do |t|
554
+ create_table "libraries", force: :cascade do |t|
555
555
  t.string "name", null: false
556
556
  t.text "display_name"
557
557
  t.string "short_display_name", null: false
@@ -581,7 +581,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
581
581
  add_index "libraries", ["library_group_id"], name: "index_libraries_on_library_group_id"
582
582
  add_index "libraries", ["name"], name: "index_libraries_on_name", unique: true
583
583
 
584
- create_table "library_groups", force: true do |t|
584
+ create_table "library_groups", force: :cascade do |t|
585
585
  t.string "name", null: false
586
586
  t.text "display_name"
587
587
  t.string "short_name", null: false
@@ -594,11 +594,12 @@ ActiveRecord::Schema.define(version: 20141014065831) do
594
594
  t.datetime "updated_at"
595
595
  t.text "admin_networks"
596
596
  t.string "url", default: "http://localhost:3000/"
597
+ t.text "settings"
597
598
  end
598
599
 
599
600
  add_index "library_groups", ["short_name"], name: "index_library_groups_on_short_name"
600
601
 
601
- create_table "licenses", force: true do |t|
602
+ create_table "licenses", force: :cascade do |t|
602
603
  t.string "name", null: false
603
604
  t.string "display_name"
604
605
  t.text "note"
@@ -607,7 +608,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
607
608
  t.datetime "updated_at"
608
609
  end
609
610
 
610
- create_table "manifestation_checkout_stat_transitions", force: true do |t|
611
+ create_table "manifestation_checkout_stat_transitions", force: :cascade do |t|
611
612
  t.string "to_state"
612
613
  t.text "metadata", default: "{}"
613
614
  t.integer "sort_key"
@@ -619,7 +620,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
619
620
  add_index "manifestation_checkout_stat_transitions", ["manifestation_checkout_stat_id"], name: "index_manifestation_checkout_stat_transitions_on_stat_id"
620
621
  add_index "manifestation_checkout_stat_transitions", ["sort_key", "manifestation_checkout_stat_id"], name: "index_manifestation_checkout_stat_transitions_on_transition", unique: true
621
622
 
622
- create_table "manifestation_checkout_stats", force: true do |t|
623
+ create_table "manifestation_checkout_stats", force: :cascade do |t|
623
624
  t.datetime "start_date"
624
625
  t.datetime "end_date"
625
626
  t.text "note"
@@ -632,7 +633,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
632
633
 
633
634
  add_index "manifestation_checkout_stats", ["user_id"], name: "index_manifestation_checkout_stats_on_user_id"
634
635
 
635
- create_table "manifestation_relationship_types", force: true do |t|
636
+ create_table "manifestation_relationship_types", force: :cascade do |t|
636
637
  t.string "name", null: false
637
638
  t.text "display_name"
638
639
  t.text "note"
@@ -641,7 +642,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
641
642
  t.datetime "updated_at"
642
643
  end
643
644
 
644
- create_table "manifestation_relationships", force: true do |t|
645
+ create_table "manifestation_relationships", force: :cascade do |t|
645
646
  t.integer "parent_id"
646
647
  t.integer "child_id"
647
648
  t.integer "manifestation_relationship_type_id"
@@ -653,7 +654,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
653
654
  add_index "manifestation_relationships", ["child_id"], name: "index_manifestation_relationships_on_child_id"
654
655
  add_index "manifestation_relationships", ["parent_id"], name: "index_manifestation_relationships_on_parent_id"
655
656
 
656
- create_table "manifestation_reserve_stat_transitions", force: true do |t|
657
+ create_table "manifestation_reserve_stat_transitions", force: :cascade do |t|
657
658
  t.string "to_state"
658
659
  t.text "metadata", default: "{}"
659
660
  t.integer "sort_key"
@@ -665,7 +666,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
665
666
  add_index "manifestation_reserve_stat_transitions", ["manifestation_reserve_stat_id"], name: "index_manifestation_reserve_stat_transitions_on_stat_id"
666
667
  add_index "manifestation_reserve_stat_transitions", ["sort_key", "manifestation_reserve_stat_id"], name: "index_manifestation_reserve_stat_transitions_on_transition", unique: true
667
668
 
668
- create_table "manifestation_reserve_stats", force: true do |t|
669
+ create_table "manifestation_reserve_stats", force: :cascade do |t|
669
670
  t.datetime "start_date"
670
671
  t.datetime "end_date"
671
672
  t.text "note"
@@ -678,7 +679,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
678
679
 
679
680
  add_index "manifestation_reserve_stats", ["user_id"], name: "index_manifestation_reserve_stats_on_user_id"
680
681
 
681
- create_table "manifestations", force: true do |t|
682
+ create_table "manifestations", force: :cascade do |t|
682
683
  t.text "original_title", null: false
683
684
  t.text "title_alternative"
684
685
  t.text "title_transcription"
@@ -746,7 +747,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
746
747
  add_index "manifestations", ["manifestation_identifier"], name: "index_manifestations_on_manifestation_identifier"
747
748
  add_index "manifestations", ["updated_at"], name: "index_manifestations_on_updated_at"
748
749
 
749
- create_table "medium_of_performances", force: true do |t|
750
+ create_table "medium_of_performances", force: :cascade do |t|
750
751
  t.string "name", null: false
751
752
  t.text "display_name"
752
753
  t.text "note"
@@ -755,7 +756,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
755
756
  t.datetime "updated_at"
756
757
  end
757
758
 
758
- create_table "owns", force: true do |t|
759
+ create_table "owns", force: :cascade do |t|
759
760
  t.integer "agent_id", null: false
760
761
  t.integer "item_id", null: false
761
762
  t.integer "position"
@@ -766,7 +767,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
766
767
  add_index "owns", ["agent_id"], name: "index_owns_on_agent_id"
767
768
  add_index "owns", ["item_id"], name: "index_owns_on_item_id"
768
769
 
769
- create_table "picture_files", force: true do |t|
770
+ create_table "picture_files", force: :cascade do |t|
770
771
  t.integer "picture_attachable_id"
771
772
  t.string "picture_attachable_type"
772
773
  t.string "content_type"
@@ -785,7 +786,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
785
786
 
786
787
  add_index "picture_files", ["picture_attachable_id", "picture_attachable_type"], name: "index_picture_files_on_picture_attachable_id_and_type"
787
788
 
788
- create_table "produce_types", force: true do |t|
789
+ create_table "produce_types", force: :cascade do |t|
789
790
  t.string "name"
790
791
  t.text "display_name"
791
792
  t.text "note"
@@ -794,7 +795,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
794
795
  t.datetime "updated_at"
795
796
  end
796
797
 
797
- create_table "produces", force: true do |t|
798
+ create_table "produces", force: :cascade do |t|
798
799
  t.integer "agent_id", null: false
799
800
  t.integer "manifestation_id", null: false
800
801
  t.integer "position"
@@ -806,7 +807,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
806
807
  add_index "produces", ["agent_id"], name: "index_produces_on_agent_id"
807
808
  add_index "produces", ["manifestation_id"], name: "index_produces_on_manifestation_id"
808
809
 
809
- create_table "profiles", force: true do |t|
810
+ create_table "profiles", force: :cascade do |t|
810
811
  t.integer "user_id"
811
812
  t.integer "user_group_id"
812
813
  t.integer "library_id"
@@ -829,7 +830,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
829
830
  add_index "profiles", ["user_id"], name: "index_profiles_on_user_id"
830
831
  add_index "profiles", ["user_number"], name: "index_profiles_on_user_number", unique: true
831
832
 
832
- create_table "realize_types", force: true do |t|
833
+ create_table "realize_types", force: :cascade do |t|
833
834
  t.string "name"
834
835
  t.text "display_name"
835
836
  t.text "note"
@@ -838,7 +839,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
838
839
  t.datetime "updated_at"
839
840
  end
840
841
 
841
- create_table "realizes", force: true do |t|
842
+ create_table "realizes", force: :cascade do |t|
842
843
  t.integer "agent_id", null: false
843
844
  t.integer "expression_id", null: false
844
845
  t.integer "position"
@@ -850,7 +851,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
850
851
  add_index "realizes", ["agent_id"], name: "index_realizes_on_agent_id"
851
852
  add_index "realizes", ["expression_id"], name: "index_realizes_on_expression_id"
852
853
 
853
- create_table "request_status_types", force: true do |t|
854
+ create_table "request_status_types", force: :cascade do |t|
854
855
  t.string "name", null: false
855
856
  t.text "display_name"
856
857
  t.text "note"
@@ -859,7 +860,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
859
860
  t.datetime "updated_at"
860
861
  end
861
862
 
862
- create_table "request_types", force: true do |t|
863
+ create_table "request_types", force: :cascade do |t|
863
864
  t.string "name", null: false
864
865
  t.text "display_name"
865
866
  t.text "note"
@@ -868,7 +869,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
868
869
  t.datetime "updated_at"
869
870
  end
870
871
 
871
- create_table "reserve_stat_has_manifestations", force: true do |t|
872
+ create_table "reserve_stat_has_manifestations", force: :cascade do |t|
872
873
  t.integer "manifestation_reserve_stat_id", null: false
873
874
  t.integer "manifestation_id", null: false
874
875
  t.integer "reserves_count"
@@ -879,7 +880,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
879
880
  add_index "reserve_stat_has_manifestations", ["manifestation_id"], name: "index_reserve_stat_has_manifestations_on_manifestation_id"
880
881
  add_index "reserve_stat_has_manifestations", ["manifestation_reserve_stat_id"], name: "index_reserve_stat_has_manifestations_on_m_reserve_stat_id"
881
882
 
882
- create_table "reserve_stat_has_users", force: true do |t|
883
+ create_table "reserve_stat_has_users", force: :cascade do |t|
883
884
  t.integer "user_reserve_stat_id", null: false
884
885
  t.integer "user_id", null: false
885
886
  t.integer "reserves_count"
@@ -890,7 +891,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
890
891
  add_index "reserve_stat_has_users", ["user_id"], name: "index_reserve_stat_has_users_on_user_id"
891
892
  add_index "reserve_stat_has_users", ["user_reserve_stat_id"], name: "index_reserve_stat_has_users_on_user_reserve_stat_id"
892
893
 
893
- create_table "reserve_transitions", force: true do |t|
894
+ create_table "reserve_transitions", force: :cascade do |t|
894
895
  t.string "to_state"
895
896
  t.text "metadata", default: "{}"
896
897
  t.integer "sort_key"
@@ -902,7 +903,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
902
903
  add_index "reserve_transitions", ["reserve_id"], name: "index_reserve_transitions_on_reserve_id"
903
904
  add_index "reserve_transitions", ["sort_key", "reserve_id"], name: "index_reserve_transitions_on_sort_key_and_reserve_id", unique: true
904
905
 
905
- create_table "reserves", force: true do |t|
906
+ create_table "reserves", force: :cascade do |t|
906
907
  t.integer "user_id", null: false
907
908
  t.integer "manifestation_id", null: false
908
909
  t.integer "item_id"
@@ -925,7 +926,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
925
926
  add_index "reserves", ["request_status_type_id"], name: "index_reserves_on_request_status_type_id"
926
927
  add_index "reserves", ["user_id"], name: "index_reserves_on_user_id"
927
928
 
928
- create_table "resource_export_file_transitions", force: true do |t|
929
+ create_table "resource_export_file_transitions", force: :cascade do |t|
929
930
  t.string "to_state"
930
931
  t.text "metadata", default: "{}"
931
932
  t.integer "sort_key"
@@ -937,7 +938,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
937
938
  add_index "resource_export_file_transitions", ["resource_export_file_id"], name: "index_resource_export_file_transitions_on_file_id"
938
939
  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
939
940
 
940
- create_table "resource_export_files", force: true do |t|
941
+ create_table "resource_export_files", force: :cascade do |t|
941
942
  t.integer "user_id"
942
943
  t.string "resource_export_file_name"
943
944
  t.string "resource_export_content_type"
@@ -948,7 +949,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
948
949
  t.datetime "updated_at"
949
950
  end
950
951
 
951
- create_table "resource_import_file_transitions", force: true do |t|
952
+ create_table "resource_import_file_transitions", force: :cascade do |t|
952
953
  t.string "to_state"
953
954
  t.text "metadata", default: "{}"
954
955
  t.integer "sort_key"
@@ -960,7 +961,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
960
961
  add_index "resource_import_file_transitions", ["resource_import_file_id"], name: "index_resource_import_file_transitions_on_file_id"
961
962
  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
962
963
 
963
- create_table "resource_import_files", force: true do |t|
964
+ create_table "resource_import_files", force: :cascade do |t|
964
965
  t.integer "parent_id"
965
966
  t.string "content_type"
966
967
  t.integer "size"
@@ -983,7 +984,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
983
984
  add_index "resource_import_files", ["parent_id"], name: "index_resource_import_files_on_parent_id"
984
985
  add_index "resource_import_files", ["user_id"], name: "index_resource_import_files_on_user_id"
985
986
 
986
- create_table "resource_import_results", force: true do |t|
987
+ create_table "resource_import_results", force: :cascade do |t|
987
988
  t.integer "resource_import_file_id"
988
989
  t.integer "manifestation_id"
989
990
  t.integer "item_id"
@@ -997,7 +998,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
997
998
  add_index "resource_import_results", ["manifestation_id"], name: "index_resource_import_results_on_manifestation_id"
998
999
  add_index "resource_import_results", ["resource_import_file_id"], name: "index_resource_import_results_on_resource_import_file_id"
999
1000
 
1000
- create_table "roles", force: true do |t|
1001
+ create_table "roles", force: :cascade do |t|
1001
1002
  t.string "name", null: false
1002
1003
  t.string "display_name"
1003
1004
  t.text "note"
@@ -1007,7 +1008,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
1007
1008
  t.integer "position"
1008
1009
  end
1009
1010
 
1010
- create_table "search_engines", force: true do |t|
1011
+ create_table "search_engines", force: :cascade do |t|
1011
1012
  t.string "name", null: false
1012
1013
  t.text "display_name"
1013
1014
  t.string "url", null: false
@@ -1021,13 +1022,13 @@ ActiveRecord::Schema.define(version: 20141014065831) do
1021
1022
  t.datetime "updated_at"
1022
1023
  end
1023
1024
 
1024
- create_table "series_statement_merge_lists", force: true do |t|
1025
+ create_table "series_statement_merge_lists", force: :cascade do |t|
1025
1026
  t.string "title"
1026
1027
  t.datetime "created_at"
1027
1028
  t.datetime "updated_at"
1028
1029
  end
1029
1030
 
1030
- create_table "series_statement_merges", force: true do |t|
1031
+ create_table "series_statement_merges", force: :cascade do |t|
1031
1032
  t.integer "series_statement_id", null: false
1032
1033
  t.integer "series_statement_merge_list_id", null: false
1033
1034
  t.datetime "created_at"
@@ -1037,7 +1038,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
1037
1038
  add_index "series_statement_merges", ["series_statement_id"], name: "index_series_statement_merges_on_series_statement_id"
1038
1039
  add_index "series_statement_merges", ["series_statement_merge_list_id"], name: "index_series_statement_merges_on_list_id"
1039
1040
 
1040
- create_table "series_statements", force: true do |t|
1041
+ create_table "series_statements", force: :cascade do |t|
1041
1042
  t.text "original_title"
1042
1043
  t.text "numbering"
1043
1044
  t.text "title_subseries"
@@ -1062,7 +1063,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
1062
1063
  add_index "series_statements", ["root_manifestation_id"], name: "index_series_statements_on_root_manifestation_id"
1063
1064
  add_index "series_statements", ["series_statement_identifier"], name: "index_series_statements_on_series_statement_identifier"
1064
1065
 
1065
- create_table "shelves", force: true do |t|
1066
+ create_table "shelves", force: :cascade do |t|
1066
1067
  t.string "name", null: false
1067
1068
  t.text "display_name"
1068
1069
  t.text "note"
@@ -1077,7 +1078,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
1077
1078
 
1078
1079
  add_index "shelves", ["library_id"], name: "index_shelves_on_library_id"
1079
1080
 
1080
- create_table "subscribes", force: true do |t|
1081
+ create_table "subscribes", force: :cascade do |t|
1081
1082
  t.integer "subscription_id", null: false
1082
1083
  t.integer "work_id", null: false
1083
1084
  t.datetime "start_at", null: false
@@ -1089,7 +1090,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
1089
1090
  add_index "subscribes", ["subscription_id"], name: "index_subscribes_on_subscription_id"
1090
1091
  add_index "subscribes", ["work_id"], name: "index_subscribes_on_work_id"
1091
1092
 
1092
- create_table "subscriptions", force: true do |t|
1093
+ create_table "subscriptions", force: :cascade do |t|
1093
1094
  t.text "title", null: false
1094
1095
  t.text "note"
1095
1096
  t.integer "user_id"
@@ -1103,7 +1104,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
1103
1104
  add_index "subscriptions", ["order_list_id"], name: "index_subscriptions_on_order_list_id"
1104
1105
  add_index "subscriptions", ["user_id"], name: "index_subscriptions_on_user_id"
1105
1106
 
1106
- create_table "use_restrictions", force: true do |t|
1107
+ create_table "use_restrictions", force: :cascade do |t|
1107
1108
  t.string "name", null: false
1108
1109
  t.text "display_name"
1109
1110
  t.text "note"
@@ -1112,7 +1113,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
1112
1113
  t.datetime "updated_at"
1113
1114
  end
1114
1115
 
1115
- create_table "user_checkout_stat_transitions", force: true do |t|
1116
+ create_table "user_checkout_stat_transitions", force: :cascade do |t|
1116
1117
  t.string "to_state"
1117
1118
  t.text "metadata", default: "{}"
1118
1119
  t.integer "sort_key"
@@ -1124,7 +1125,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
1124
1125
  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
1125
1126
  add_index "user_checkout_stat_transitions", ["user_checkout_stat_id"], name: "index_user_checkout_stat_transitions_on_user_checkout_stat_id"
1126
1127
 
1127
- create_table "user_checkout_stats", force: true do |t|
1128
+ create_table "user_checkout_stats", force: :cascade do |t|
1128
1129
  t.datetime "start_date"
1129
1130
  t.datetime "end_date"
1130
1131
  t.text "note"
@@ -1137,7 +1138,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
1137
1138
 
1138
1139
  add_index "user_checkout_stats", ["user_id"], name: "index_user_checkout_stats_on_user_id"
1139
1140
 
1140
- create_table "user_export_file_transitions", force: true do |t|
1141
+ create_table "user_export_file_transitions", force: :cascade do |t|
1141
1142
  t.string "to_state"
1142
1143
  t.text "metadata", default: "{}"
1143
1144
  t.integer "sort_key"
@@ -1149,7 +1150,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
1149
1150
  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
1150
1151
  add_index "user_export_file_transitions", ["user_export_file_id"], name: "index_user_export_file_transitions_on_file_id"
1151
1152
 
1152
- create_table "user_export_files", force: true do |t|
1153
+ create_table "user_export_files", force: :cascade do |t|
1153
1154
  t.integer "user_id"
1154
1155
  t.string "user_export_file_name"
1155
1156
  t.string "user_export_content_type"
@@ -1160,7 +1161,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
1160
1161
  t.datetime "updated_at"
1161
1162
  end
1162
1163
 
1163
- create_table "user_group_has_checkout_types", force: true do |t|
1164
+ create_table "user_group_has_checkout_types", force: :cascade do |t|
1164
1165
  t.integer "user_group_id", null: false
1165
1166
  t.integer "checkout_type_id", null: false
1166
1167
  t.integer "checkout_limit", default: 0, null: false
@@ -1180,7 +1181,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
1180
1181
  add_index "user_group_has_checkout_types", ["checkout_type_id"], name: "index_user_group_has_checkout_types_on_checkout_type_id"
1181
1182
  add_index "user_group_has_checkout_types", ["user_group_id"], name: "index_user_group_has_checkout_types_on_user_group_id"
1182
1183
 
1183
- create_table "user_groups", force: true do |t|
1184
+ create_table "user_groups", force: :cascade do |t|
1184
1185
  t.string "name"
1185
1186
  t.text "display_name"
1186
1187
  t.text "note"
@@ -1195,7 +1196,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
1195
1196
  t.integer "number_of_time_to_notify_overdue", default: 3, null: false
1196
1197
  end
1197
1198
 
1198
- create_table "user_has_roles", force: true do |t|
1199
+ create_table "user_has_roles", force: :cascade do |t|
1199
1200
  t.integer "user_id"
1200
1201
  t.integer "role_id"
1201
1202
  t.datetime "created_at"
@@ -1205,7 +1206,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
1205
1206
  add_index "user_has_roles", ["role_id"], name: "index_user_has_roles_on_role_id"
1206
1207
  add_index "user_has_roles", ["user_id"], name: "index_user_has_roles_on_user_id"
1207
1208
 
1208
- create_table "user_import_file_transitions", force: true do |t|
1209
+ create_table "user_import_file_transitions", force: :cascade do |t|
1209
1210
  t.string "to_state"
1210
1211
  t.text "metadata", default: "{}"
1211
1212
  t.integer "sort_key"
@@ -1217,7 +1218,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
1217
1218
  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
1218
1219
  add_index "user_import_file_transitions", ["user_import_file_id"], name: "index_user_import_file_transitions_on_user_import_file_id"
1219
1220
 
1220
- create_table "user_import_files", force: true do |t|
1221
+ create_table "user_import_files", force: :cascade do |t|
1221
1222
  t.integer "user_id"
1222
1223
  t.text "note"
1223
1224
  t.datetime "executed_at"
@@ -1235,7 +1236,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
1235
1236
  t.integer "default_user_group_id"
1236
1237
  end
1237
1238
 
1238
- create_table "user_import_results", force: true do |t|
1239
+ create_table "user_import_results", force: :cascade do |t|
1239
1240
  t.integer "user_import_file_id"
1240
1241
  t.integer "user_id"
1241
1242
  t.text "body"
@@ -1243,7 +1244,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
1243
1244
  t.datetime "updated_at"
1244
1245
  end
1245
1246
 
1246
- create_table "user_reserve_stat_transitions", force: true do |t|
1247
+ create_table "user_reserve_stat_transitions", force: :cascade do |t|
1247
1248
  t.string "to_state"
1248
1249
  t.text "metadata", default: "{}"
1249
1250
  t.integer "sort_key"
@@ -1255,7 +1256,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
1255
1256
  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
1256
1257
  add_index "user_reserve_stat_transitions", ["user_reserve_stat_id"], name: "index_user_reserve_stat_transitions_on_user_reserve_stat_id"
1257
1258
 
1258
- create_table "user_reserve_stats", force: true do |t|
1259
+ create_table "user_reserve_stats", force: :cascade do |t|
1259
1260
  t.datetime "start_date"
1260
1261
  t.datetime "end_date"
1261
1262
  t.text "note"
@@ -1268,7 +1269,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
1268
1269
 
1269
1270
  add_index "user_reserve_stats", ["user_id"], name: "index_user_reserve_stats_on_user_id"
1270
1271
 
1271
- create_table "users", force: true do |t|
1272
+ create_table "users", force: :cascade do |t|
1272
1273
  t.string "email", default: "", null: false
1273
1274
  t.string "encrypted_password", default: "", null: false
1274
1275
  t.string "reset_password_token"
@@ -1298,7 +1299,7 @@ ActiveRecord::Schema.define(version: 20141014065831) do
1298
1299
  add_index "users", ["unlock_token"], name: "index_users_on_unlock_token", unique: true
1299
1300
  add_index "users", ["username"], name: "index_users_on_username", unique: true
1300
1301
 
1301
- create_table "versions", force: true do |t|
1302
+ create_table "versions", force: :cascade do |t|
1302
1303
  t.string "item_type", null: false
1303
1304
  t.integer "item_id", null: false
1304
1305
  t.string "event", null: false
@@ -2,7 +2,6 @@ FactoryGirl.define do
2
2
  factory :admin, :class => User do |f|
3
3
  f.sequence(:username){|n| "admin_#{n}"}
4
4
  f.sequence(:email){|n| "admin_#{n}@example.jp"}
5
- f.email_confirmation{|u| u.email}
6
5
  f.password 'adminpassword'
7
6
  f.password_confirmation 'adminpassword'
8
7
  f.after(:create) do |user|
@@ -16,7 +15,6 @@ FactoryGirl.define do
16
15
  factory :librarian, :class => User do |f|
17
16
  f.sequence(:username){|n| "librarian_#{n}"}
18
17
  f.sequence(:email){|n| "librarian_#{n}@example.jp"}
19
- f.email_confirmation{|u| u.email}
20
18
  f.password 'librarianpassword'
21
19
  f.password_confirmation 'librarianpassword'
22
20
  f.after(:create) do |user|
@@ -30,7 +28,6 @@ FactoryGirl.define do
30
28
  factory :user, :class => User do |f|
31
29
  f.sequence(:username){|n| "user_#{n}"}
32
30
  f.sequence(:email){|n| "user_#{n}@example.jp"}
33
- f.email_confirmation{|u| u.email}
34
31
  f.password 'userpassword'
35
32
  f.password_confirmation 'userpassword'
36
33
  f.after(:create) do |user|
@@ -39,10 +39,10 @@ inter_library_loan_transition_00007:
39
39
  # Table name: inter_library_loan_transitions
40
40
  #
41
41
  # id :integer not null, primary key
42
- # to_state :string(255)
43
- # metadata :text default("{}")
42
+ # to_state :string
43
+ # metadata :text default({})
44
44
  # sort_key :integer
45
45
  # inter_library_loan_id :integer
46
- # created_at :datetime not null
47
- # updated_at :datetime not null
46
+ # created_at :datetime
47
+ # updated_at :datetime
48
48
  #
@@ -70,7 +70,6 @@ inter_library_loan_00007:
70
70
  # return_shipped_at :datetime
71
71
  # return_received_at :datetime
72
72
  # deleted_at :datetime
73
- # created_at :datetime not null
74
- # updated_at :datetime not null
73
+ # created_at :datetime
74
+ # updated_at :datetime
75
75
  #
76
-
@@ -7,6 +7,11 @@ one:
7
7
  note:
8
8
  my_networks: 0.0.0.0/0
9
9
  url: "http://localhost:3000/"
10
+ settings: <% if Rails::VERSION::MAJOR > 3 %>
11
+ "{\"max_number_of_results\":200,\"family_name_first\":true,\"book_jacket_source\":\"google\",\"screenshot_generator\":\"mozshot\"}"
12
+ <% else %>
13
+ "---\n:max_number_of_results: 200\n:family_name_first: true\n:book_jacket_source: \"google\"\n:screenshot_generator: \"mozshot\""
14
+ <% end %>
10
15
 
11
16
 
12
17
  # == Schema Information
@@ -19,6 +19,6 @@ end
19
19
  # return_shipped_at :datetime
20
20
  # return_received_at :datetime
21
21
  # deleted_at :datetime
22
- # created_at :datetime not null
23
- # updated_at :datetime not null
22
+ # created_at :datetime
23
+ # updated_at :datetime
24
24
  #
metadata CHANGED
@@ -1,43 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_inter_library_loan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre11
4
+ version: 0.1.0.pre12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kosuke Tanabe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-12 00:00:00.000000000 Z
11
+ date: 2015-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: enju_biblio
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: 0.1.0.pre64
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: 0.1.0.pre64
27
- - !ruby/object:Gem::Dependency
28
- name: enju_library
14
+ name: enju_leaf
29
15
  requirement: !ruby/object:Gem::Requirement
30
16
  requirements:
31
17
  - - "~>"
32
18
  - !ruby/object:Gem::Version
33
- version: 0.1.0.pre40
19
+ version: 1.1.0.rc22
34
20
  type: :runtime
35
21
  prerelease: false
36
22
  version_requirements: !ruby/object:Gem::Requirement
37
23
  requirements:
38
24
  - - "~>"
39
25
  - !ruby/object:Gem::Version
40
- version: 0.1.0.pre40
26
+ version: 1.1.0.rc22
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: statesman
43
29
  requirement: !ruby/object:Gem::Requirement
@@ -70,16 +56,16 @@ dependencies:
70
56
  name: mysql2
71
57
  requirement: !ruby/object:Gem::Requirement
72
58
  requirements:
73
- - - ">="
59
+ - - "~>"
74
60
  - !ruby/object:Gem::Version
75
- version: '0'
61
+ version: 0.3.20
76
62
  type: :development
77
63
  prerelease: false
78
64
  version_requirements: !ruby/object:Gem::Requirement
79
65
  requirements:
80
- - - ">="
66
+ - - "~>"
81
67
  - !ruby/object:Gem::Version
82
- version: '0'
68
+ version: 0.3.20
83
69
  - !ruby/object:Gem::Dependency
84
70
  name: pg
85
71
  requirement: !ruby/object:Gem::Requirement
@@ -100,14 +86,14 @@ dependencies:
100
86
  requirements:
101
87
  - - "~>"
102
88
  - !ruby/object:Gem::Version
103
- version: '3.2'
89
+ version: '3.3'
104
90
  type: :development
105
91
  prerelease: false
106
92
  version_requirements: !ruby/object:Gem::Requirement
107
93
  requirements:
108
94
  - - "~>"
109
95
  - !ruby/object:Gem::Version
110
- version: '3.2'
96
+ version: '3.3'
111
97
  - !ruby/object:Gem::Dependency
112
98
  name: factory_girl_rails
113
99
  requirement: !ruby/object:Gem::Requirement
@@ -128,14 +114,14 @@ dependencies:
128
114
  requirements:
129
115
  - - "~>"
130
116
  - !ruby/object:Gem::Version
131
- version: '2.1'
117
+ version: '2.2'
132
118
  type: :development
133
119
  prerelease: false
134
120
  version_requirements: !ruby/object:Gem::Requirement
135
121
  requirements:
136
122
  - - "~>"
137
123
  - !ruby/object:Gem::Version
138
- version: '2.1'
124
+ version: '2.2'
139
125
  - !ruby/object:Gem::Dependency
140
126
  name: sunspot-rails-tester
141
127
  requirement: !ruby/object:Gem::Requirement
@@ -151,35 +137,35 @@ dependencies:
151
137
  - !ruby/object:Gem::Version
152
138
  version: '0'
153
139
  - !ruby/object:Gem::Dependency
154
- name: enju_leaf
140
+ name: enju_circulation
155
141
  requirement: !ruby/object:Gem::Requirement
156
142
  requirements:
157
143
  - - "~>"
158
144
  - !ruby/object:Gem::Version
159
- version: 1.1.0.rc17
145
+ version: 0.1.0.pre49
160
146
  type: :development
161
147
  prerelease: false
162
148
  version_requirements: !ruby/object:Gem::Requirement
163
149
  requirements:
164
150
  - - "~>"
165
151
  - !ruby/object:Gem::Version
166
- version: 1.1.0.rc17
152
+ version: 0.1.0.pre49
167
153
  - !ruby/object:Gem::Dependency
168
- name: enju_circulation
154
+ name: simplecov
169
155
  requirement: !ruby/object:Gem::Requirement
170
156
  requirements:
171
- - - "~>"
157
+ - - ">="
172
158
  - !ruby/object:Gem::Version
173
- version: 0.1.0.pre42
159
+ version: '0'
174
160
  type: :development
175
161
  prerelease: false
176
162
  version_requirements: !ruby/object:Gem::Requirement
177
163
  requirements:
178
- - - "~>"
164
+ - - ">="
179
165
  - !ruby/object:Gem::Version
180
- version: 0.1.0.pre42
166
+ version: '0'
181
167
  - !ruby/object:Gem::Dependency
182
- name: simplecov
168
+ name: annotate
183
169
  requirement: !ruby/object:Gem::Requirement
184
170
  requirements:
185
171
  - - ">="
@@ -193,7 +179,7 @@ dependencies:
193
179
  - !ruby/object:Gem::Version
194
180
  version: '0'
195
181
  - !ruby/object:Gem::Dependency
196
- name: annotate
182
+ name: appraisal
197
183
  requirement: !ruby/object:Gem::Requirement
198
184
  requirements:
199
185
  - - ">="
@@ -252,7 +238,6 @@ files:
252
238
  - spec/dummy/bin/setup
253
239
  - spec/dummy/config.ru
254
240
  - spec/dummy/config/application.rb
255
- - spec/dummy/config/application.yml
256
241
  - spec/dummy/config/boot.rb
257
242
  - spec/dummy/config/database.yml
258
243
  - spec/dummy/config/environment.rb
@@ -439,6 +424,7 @@ files:
439
424
  - spec/dummy/db/migrate/20141003181336_add_full_name_transcription_to_profile.rb
440
425
  - spec/dummy/db/migrate/20141003182825_add_date_of_birth_to_profile.rb
441
426
  - spec/dummy/db/migrate/20141014065831_add_shelf_id_to_checkout.rb
427
+ - spec/dummy/db/migrate/20150221063719_add_settings_to_library_group.rb
442
428
  - spec/dummy/db/schema.rb
443
429
  - spec/dummy/public/404.html
444
430
  - spec/dummy/public/422.html
@@ -485,7 +471,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
485
471
  version: 1.3.1
486
472
  requirements: []
487
473
  rubyforge_project:
488
- rubygems_version: 2.4.5
474
+ rubygems_version: 2.4.5.1
489
475
  signing_key:
490
476
  specification_version: 4
491
477
  summary: enju_inter_library_loan plugin
@@ -503,7 +489,6 @@ test_files:
503
489
  - spec/dummy/bin/rake
504
490
  - spec/dummy/bin/setup
505
491
  - spec/dummy/config/application.rb
506
- - spec/dummy/config/application.yml
507
492
  - spec/dummy/config/boot.rb
508
493
  - spec/dummy/config/database.yml
509
494
  - spec/dummy/config/environment.rb
@@ -691,6 +676,7 @@ test_files:
691
676
  - spec/dummy/db/migrate/20141003181336_add_full_name_transcription_to_profile.rb
692
677
  - spec/dummy/db/migrate/20141003182825_add_date_of_birth_to_profile.rb
693
678
  - spec/dummy/db/migrate/20141014065831_add_shelf_id_to_checkout.rb
679
+ - spec/dummy/db/migrate/20150221063719_add_settings_to_library_group.rb
694
680
  - spec/dummy/db/schema.rb
695
681
  - spec/dummy/public/404.html
696
682
  - spec/dummy/public/422.html
@@ -1,42 +0,0 @@
1
- defaults: &defaults
2
- enju:
3
- web_hostname: localhost
4
- web_port_number: 3000
5
-
6
- family_name_first: true
7
- max_number_of_results: 500
8
- write_search_log_to_file: true
9
- csv_charset_conversion: true
10
-
11
- # Choose a locale from 'ca', 'de', 'fr', 'jp', 'uk', 'us'
12
- #AMAZON_AWS_HOSTNAME = 'ecs.amazonaws.com'
13
- amazon:
14
- aws_hostname: ecs.amazonaws.jp
15
- hostname: www.amazon.co.jp
16
- access_key: REPLACE_WITH_YOUR_AMAZON_ACCESS_KEY
17
- secret_access_key: REPLACE_WITH_YOUR_AMAZON_SECRET_ACCESS_KEY
18
-
19
- # :google, :amazon
20
- book_jacket:
21
- source: :google
22
- unknown_resource:
23
-
24
- # :mozshot, :simpleapi, :heartrails, :thumbalizr
25
- screenshot:
26
- generator: :mozshot
27
-
28
- uploaded_file:
29
- storage: :local
30
-
31
- manifestation:
32
- facet:
33
- pub_year_range_interval: 10
34
-
35
- development:
36
- <<: *defaults
37
-
38
- test:
39
- <<: *defaults
40
-
41
- production:
42
- <<: *defaults