enju_library 0.4.0.beta.4 → 0.4.0.rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/app/controllers/library_groups_controller.rb +1 -4
  4. data/app/helpers/enju_library/application_helper.rb +2 -2
  5. data/app/mailers/notifier.rb +2 -2
  6. data/app/mailers/user_export_mailer.rb +2 -2
  7. data/app/mailers/user_import_mailer.rb +2 -2
  8. data/app/models/accept.rb +6 -6
  9. data/app/models/basket.rb +4 -4
  10. data/app/models/bookstore.rb +3 -4
  11. data/app/models/budget_type.rb +3 -3
  12. data/app/models/color.rb +4 -4
  13. data/app/models/concerns/enju_library/enju_user.rb +62 -0
  14. data/app/models/library.rb +5 -6
  15. data/app/models/library_group.rb +5 -4
  16. data/app/models/request_status_type.rb +3 -3
  17. data/app/models/request_type.rb +3 -3
  18. data/app/models/search_engine.rb +3 -3
  19. data/app/models/shelf.rb +5 -6
  20. data/app/models/subscribe.rb +4 -4
  21. data/app/models/subscription.rb +5 -6
  22. data/app/models/user_export_file.rb +14 -20
  23. data/app/models/user_export_file_state_machine.rb +1 -1
  24. data/app/models/user_export_file_transition.rb +4 -4
  25. data/app/models/user_group.rb +3 -4
  26. data/app/models/user_import_file.rb +13 -21
  27. data/app/models/user_import_file_state_machine.rb +1 -1
  28. data/app/models/user_import_file_transition.rb +4 -4
  29. data/app/models/user_import_result.rb +5 -5
  30. data/app/models/withdraw.rb +4 -10
  31. data/app/policies/shelf_policy.rb +1 -1
  32. data/app/views/layouts/libraries.html.erb +31 -0
  33. data/app/views/libraries/_map.html.erb +8 -24
  34. data/app/views/libraries/_map_header.html.erb +6 -0
  35. data/app/views/library_groups/_form.html.erb +1 -3
  36. data/app/views/library_groups/show.html.erb +1 -1
  37. data/app/views/user_groups/show.html.erb +5 -3
  38. data/app/views/user_import_files/_results.html.erb +5 -0
  39. data/app/views/user_import_results/index.html.erb +0 -11
  40. data/db/migrate/059_create_libraries.rb +1 -2
  41. data/db/migrate/069_create_shelves.rb +1 -2
  42. data/db/migrate/077_create_user_groups.rb +1 -2
  43. data/db/migrate/080_create_library_groups.rb +1 -1
  44. data/db/migrate/120_create_baskets.rb +1 -1
  45. data/db/migrate/124_create_bookstores.rb +1 -2
  46. data/db/migrate/130_create_request_status_types.rb +1 -1
  47. data/db/migrate/131_create_request_types.rb +1 -1
  48. data/db/migrate/20081006090811_create_subscriptions.rb +1 -2
  49. data/db/migrate/20081006093246_create_subscribes.rb +1 -1
  50. data/db/migrate/20081023092436_create_search_engines.rb +1 -1
  51. data/db/migrate/20100211105551_add_admin_networks_to_library_group.rb +1 -1
  52. data/db/migrate/20100314190054_add_opening_hour_to_library.rb +1 -1
  53. data/db/migrate/20110222073537_add_url_to_library_group.rb +1 -1
  54. data/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb +1 -1
  55. data/db/migrate/20120105074911_add_isil_to_library.rb +1 -1
  56. data/db/migrate/20120129014038_create_budget_types.rb +1 -1
  57. data/db/migrate/20120319173203_create_accepts.rb +1 -1
  58. data/db/migrate/20120510140958_add_closed_to_shelf.rb +1 -1
  59. data/db/migrate/20130412083556_add_latitude_and_longitude_to_library.rb +1 -1
  60. data/db/migrate/20140110122216_create_user_import_files.rb +1 -1
  61. data/db/migrate/20140110131010_create_user_import_results.rb +1 -1
  62. data/db/migrate/20140524074813_create_user_import_file_transitions.rb +1 -1
  63. data/db/migrate/20140628072217_add_user_encoding_to_user_import_file.rb +1 -1
  64. data/db/migrate/20140709113413_create_user_export_files.rb +1 -1
  65. data/db/migrate/20140709113905_create_user_export_file_transitions.rb +1 -1
  66. data/db/migrate/20140720170714_add_default_library_id_to_user_import_file.rb +1 -1
  67. data/db/migrate/20140720170735_add_default_user_group_id_to_user_import_file.rb +1 -1
  68. data/db/migrate/20140821151023_create_colors.rb +1 -1
  69. data/db/migrate/20150221063719_add_settings_to_library_group.rb +1 -1
  70. data/db/migrate/20150506105356_add_error_message_to_user_import_result.rb +1 -1
  71. data/db/migrate/20150924115059_create_withdraws.rb +1 -1
  72. data/db/migrate/20160610093229_add_html_snippet_to_library_group.rb +1 -1
  73. data/db/migrate/20160627232219_add_most_recent_to_user_import_file_transitions.rb +1 -1
  74. data/db/migrate/20160627232316_add_most_recent_to_user_export_file_transitions.rb +1 -1
  75. data/db/migrate/20160813191647_add_max_number_of_results_to_library_group.rb +1 -1
  76. data/db/migrate/20160813191733_add_family_name_first_to_library_group.rb +1 -1
  77. data/db/migrate/20160813192542_add_pub_year_facet_range_interval_to_library_group.rb +1 -1
  78. data/db/migrate/20160813203039_add_user_id_to_library_group.rb +1 -1
  79. data/db/migrate/20170305064014_add_csv_charset_conversion_to_library_group.rb +1 -1
  80. data/db/migrate/20171014084528_add_header_logo_to_library_group.rb +1 -1
  81. data/db/migrate/20171126133835_rename_login_banner_to_old_login_banner.rb +1 -1
  82. data/db/migrate/20171126135238_add_foreign_key_to_library_group_id_on_library.rb +1 -1
  83. data/db/migrate/20180102162311_add_header_logo_meta_to_library_group.rb +1 -1
  84. data/db/migrate/20180107160726_add_constraints_to_most_recent_for_user_import_file_transitions.rb +1 -1
  85. data/db/migrate/20180107160740_add_constraints_to_most_recent_for_user_export_file_transitions.rb +1 -1
  86. data/db/migrate/20191216131755_add_email_to_library_group.rb +6 -0
  87. data/lib/enju_library/version.rb +1 -1
  88. data/lib/generators/enju_library/setup/setup_generator.rb +4 -3
  89. data/lib/generators/enju_library/setup/templates/db/fixtures/library_groups.yml +2 -2
  90. data/lib/generators/enju_library/setup/templates/db/fixtures/search_engines.yml +9 -0
  91. data/spec/dummy/app/assets/config/manifest.js +2 -0
  92. data/spec/dummy/app/controllers/application_controller.rb +0 -1
  93. data/spec/dummy/app/models/user.rb +0 -2
  94. data/spec/dummy/config/initializers/assets.rb +1 -1
  95. data/spec/dummy/db/migrate/001_create_agents.rb +0 -1
  96. data/spec/dummy/db/migrate/005_create_manifestations.rb +0 -1
  97. data/spec/dummy/db/migrate/006_create_items.rb +0 -1
  98. data/spec/dummy/db/migrate/20190818075603_add_memo_to_manifestation.rb +5 -0
  99. data/spec/dummy/db/migrate/20190818075628_add_memo_to_item.rb +5 -0
  100. data/spec/dummy/db/migrate/20191219122214_create_custom_properties.rb +12 -0
  101. data/spec/dummy/db/schema.rb +98 -90
  102. data/spec/dummy/db/test.sqlite3 +0 -0
  103. data/spec/dummy/postcss.config.js +12 -0
  104. data/spec/factories/accepts.rb +6 -6
  105. data/spec/factories/budget_types.rb +3 -3
  106. data/spec/fixtures/baskets.yml +4 -4
  107. data/spec/fixtures/bookstores.yml +3 -11
  108. data/spec/fixtures/budget_types.yml +3 -3
  109. data/spec/fixtures/colors.yml +4 -4
  110. data/spec/fixtures/events.yml +0 -9
  111. data/spec/fixtures/libraries.yml +5 -6
  112. data/spec/fixtures/library_groups.yml +6 -5
  113. data/spec/fixtures/request_status_types.yml +3 -3
  114. data/spec/fixtures/request_types.yml +3 -3
  115. data/spec/fixtures/search_engines.yml +3 -3
  116. data/spec/fixtures/shelves.yml +4 -5
  117. data/spec/fixtures/subscribes.yml +4 -4
  118. data/spec/fixtures/subscriptions.yml +5 -6
  119. data/spec/fixtures/user_export_files.yml +4 -4
  120. data/spec/fixtures/user_groups.yml +3 -4
  121. data/spec/fixtures/user_import_files.yml +6 -6
  122. data/spec/fixtures/user_import_results.yml +5 -5
  123. data/spec/fixtures/withdraws.yml +4 -4
  124. data/spec/models/accept_spec.rb +6 -6
  125. data/spec/models/basket_spec.rb +4 -4
  126. data/spec/models/bookstore_spec.rb +3 -4
  127. data/spec/models/budget_type_spec.rb +3 -3
  128. data/spec/models/library_group_spec.rb +5 -4
  129. data/spec/models/library_spec.rb +5 -6
  130. data/spec/models/request_status_type_spec.rb +3 -3
  131. data/spec/models/request_type_spec.rb +3 -3
  132. data/spec/models/search_engine_spec.rb +3 -3
  133. data/spec/models/shelf_spec.rb +4 -5
  134. data/spec/models/subscribe_spec.rb +4 -4
  135. data/spec/models/subscription_spec.rb +5 -6
  136. data/spec/models/user_export_file_spec.rb +4 -4
  137. data/spec/models/user_group_spec.rb +3 -4
  138. data/spec/models/user_import_file_spec.rb +8 -8
  139. data/spec/models/user_import_result_spec.rb +5 -5
  140. data/spec/models/withdraw_spec.rb +4 -4
  141. data/spec/system/libraries_spec.rb +5 -5
  142. data/spec/system/user_groups_spec.rb +46 -0
  143. metadata +32 -18
@@ -1,11 +1,10 @@
1
- class CreateSubscriptions < ActiveRecord::Migration[4.2]
1
+ class CreateSubscriptions < ActiveRecord::Migration[5.2]
2
2
  def change
3
3
  create_table :subscriptions do |t|
4
4
  t.text :title, null: false
5
5
  t.text :note
6
6
  t.references :user, index: true
7
7
  t.references :order_list, index: true
8
- t.datetime :deleted_at
9
8
  t.integer :subscribes_count, default: 0, null: false
10
9
 
11
10
  t.timestamps
@@ -1,4 +1,4 @@
1
- class CreateSubscribes < ActiveRecord::Migration[4.2]
1
+ class CreateSubscribes < ActiveRecord::Migration[5.2]
2
2
  def change
3
3
  create_table :subscribes do |t|
4
4
  t.references :subscription, index: true, null: false
@@ -1,4 +1,4 @@
1
- class CreateSearchEngines < ActiveRecord::Migration[4.2]
1
+ class CreateSearchEngines < ActiveRecord::Migration[5.2]
2
2
  def change
3
3
  create_table :search_engines do |t|
4
4
  t.string :name, null: false
@@ -1,4 +1,4 @@
1
- class AddAdminNetworksToLibraryGroup < ActiveRecord::Migration[4.2]
1
+ class AddAdminNetworksToLibraryGroup < ActiveRecord::Migration[5.2]
2
2
  def self.up
3
3
  add_column :library_groups, :admin_networks, :text
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddOpeningHourToLibrary < ActiveRecord::Migration[4.2]
1
+ class AddOpeningHourToLibrary < ActiveRecord::Migration[5.2]
2
2
  def self.up
3
3
  add_column :libraries, :opening_hour, :text
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddUrlToLibraryGroup < ActiveRecord::Migration[4.2]
1
+ class AddUrlToLibraryGroup < ActiveRecord::Migration[5.2]
2
2
  def self.up
3
3
  add_column :library_groups, :url, :string, default: 'http://localhost:3000/'
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddValidPeriodForNewUserToUserGroup < ActiveRecord::Migration[4.2]
1
+ class AddValidPeriodForNewUserToUserGroup < ActiveRecord::Migration[5.2]
2
2
  def self.up
3
3
  add_column :user_groups, :valid_period_for_new_user, :integer, default: 0, null: false
4
4
  add_column :user_groups, :expired_at, :timestamp
@@ -1,4 +1,4 @@
1
- class AddIsilToLibrary < ActiveRecord::Migration[4.2]
1
+ class AddIsilToLibrary < ActiveRecord::Migration[5.2]
2
2
  def change
3
3
  add_column :libraries, :isil, :string
4
4
  end
@@ -1,4 +1,4 @@
1
- class CreateBudgetTypes < ActiveRecord::Migration[4.2]
1
+ class CreateBudgetTypes < ActiveRecord::Migration[5.2]
2
2
  def change
3
3
  create_table :budget_types do |t|
4
4
  t.string :name
@@ -1,4 +1,4 @@
1
- class CreateAccepts < ActiveRecord::Migration[4.2]
1
+ class CreateAccepts < ActiveRecord::Migration[5.2]
2
2
  def change
3
3
  create_table :accepts do |t|
4
4
  t.references :basket, index: true
@@ -1,4 +1,4 @@
1
- class AddClosedToShelf < ActiveRecord::Migration[4.2]
1
+ class AddClosedToShelf < ActiveRecord::Migration[5.2]
2
2
  def change
3
3
  add_column :shelves, :closed, :boolean, default: false, null: false
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddLatitudeAndLongitudeToLibrary < ActiveRecord::Migration[4.2]
1
+ class AddLatitudeAndLongitudeToLibrary < ActiveRecord::Migration[5.2]
2
2
  def change
3
3
  add_column :libraries, :latitude, :float
4
4
  add_column :libraries, :longitude, :float
@@ -1,4 +1,4 @@
1
- class CreateUserImportFiles < ActiveRecord::Migration[4.2]
1
+ class CreateUserImportFiles < ActiveRecord::Migration[5.2]
2
2
  def change
3
3
  create_table :user_import_files do |t|
4
4
  t.references :user, index: true
@@ -1,4 +1,4 @@
1
- class CreateUserImportResults < ActiveRecord::Migration[4.2]
1
+ class CreateUserImportResults < ActiveRecord::Migration[5.2]
2
2
  def change
3
3
  create_table :user_import_results do |t|
4
4
  t.references :user_import_file, index: true
@@ -1,4 +1,4 @@
1
- class CreateUserImportFileTransitions < ActiveRecord::Migration[4.2]
1
+ class CreateUserImportFileTransitions < ActiveRecord::Migration[5.2]
2
2
  def change
3
3
  create_table :user_import_file_transitions do |t|
4
4
  t.string :to_state
@@ -1,4 +1,4 @@
1
- class AddUserEncodingToUserImportFile < ActiveRecord::Migration[4.2]
1
+ class AddUserEncodingToUserImportFile < ActiveRecord::Migration[5.2]
2
2
  def change
3
3
  add_column :user_import_files, :user_encoding, :string
4
4
  end
@@ -1,4 +1,4 @@
1
- class CreateUserExportFiles < ActiveRecord::Migration[4.2]
1
+ class CreateUserExportFiles < ActiveRecord::Migration[5.2]
2
2
  def change
3
3
  create_table :user_export_files do |t|
4
4
  t.references :user, index: true
@@ -1,4 +1,4 @@
1
- class CreateUserExportFileTransitions < ActiveRecord::Migration[4.2]
1
+ class CreateUserExportFileTransitions < ActiveRecord::Migration[5.2]
2
2
  def change
3
3
  create_table :user_export_file_transitions do |t|
4
4
  t.string :to_state
@@ -1,4 +1,4 @@
1
- class AddDefaultLibraryIdToUserImportFile < ActiveRecord::Migration[4.2]
1
+ class AddDefaultLibraryIdToUserImportFile < ActiveRecord::Migration[5.2]
2
2
  def change
3
3
  add_reference :user_import_files, :default_library
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddDefaultUserGroupIdToUserImportFile < ActiveRecord::Migration[4.2]
1
+ class AddDefaultUserGroupIdToUserImportFile < ActiveRecord::Migration[5.2]
2
2
  def change
3
3
  add_reference :user_import_files, :default_user_group
4
4
  end
@@ -1,4 +1,4 @@
1
- class CreateColors < ActiveRecord::Migration[4.2]
1
+ class CreateColors < ActiveRecord::Migration[5.2]
2
2
  def change
3
3
  create_table :colors do |t|
4
4
  t.references :library_group, index: true
@@ -1,4 +1,4 @@
1
- class AddSettingsToLibraryGroup < ActiveRecord::Migration[4.2]
1
+ class AddSettingsToLibraryGroup < ActiveRecord::Migration[5.2]
2
2
  def change
3
3
  add_column :library_groups, :settings, :text
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddErrorMessageToUserImportResult < ActiveRecord::Migration[4.2]
1
+ class AddErrorMessageToUserImportResult < ActiveRecord::Migration[5.2]
2
2
  def change
3
3
  add_column :user_import_results, :error_message, :text
4
4
  end
@@ -1,4 +1,4 @@
1
- class CreateWithdraws < ActiveRecord::Migration[4.2]
1
+ class CreateWithdraws < ActiveRecord::Migration[5.2]
2
2
  def change
3
3
  create_table :withdraws do |t|
4
4
  t.references :basket, index: true
@@ -1,4 +1,4 @@
1
- class AddHtmlSnippetToLibraryGroup < ActiveRecord::Migration[4.2]
1
+ class AddHtmlSnippetToLibraryGroup < ActiveRecord::Migration[5.2]
2
2
  def change
3
3
  add_column :library_groups, :html_snippet, :text
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddMostRecentToUserImportFileTransitions < ActiveRecord::Migration[4.2]
1
+ class AddMostRecentToUserImportFileTransitions < ActiveRecord::Migration[5.2]
2
2
  def up
3
3
  add_column :user_import_file_transitions, :most_recent, :boolean, null: true
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddMostRecentToUserExportFileTransitions < ActiveRecord::Migration[4.2]
1
+ class AddMostRecentToUserExportFileTransitions < ActiveRecord::Migration[5.2]
2
2
  def up
3
3
  add_column :user_export_file_transitions, :most_recent, :boolean, null: true
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddMaxNumberOfResultsToLibraryGroup < ActiveRecord::Migration[4.2]
1
+ class AddMaxNumberOfResultsToLibraryGroup < ActiveRecord::Migration[5.2]
2
2
  def change
3
3
  add_column :library_groups, :max_number_of_results, :integer, default: 500
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddFamilyNameFirstToLibraryGroup < ActiveRecord::Migration[4.2]
1
+ class AddFamilyNameFirstToLibraryGroup < ActiveRecord::Migration[5.2]
2
2
  def change
3
3
  add_column :library_groups, :family_name_first, :boolean, default: true
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddPubYearFacetRangeIntervalToLibraryGroup < ActiveRecord::Migration[4.2]
1
+ class AddPubYearFacetRangeIntervalToLibraryGroup < ActiveRecord::Migration[5.2]
2
2
  def change
3
3
  add_column :library_groups, :pub_year_facet_range_interval, :integer, default: 10
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddUserIdToLibraryGroup < ActiveRecord::Migration[4.2]
1
+ class AddUserIdToLibraryGroup < ActiveRecord::Migration[5.2]
2
2
  def change
3
3
  add_reference :library_groups, :user, index: true, foreign_key: true
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddCsvCharsetConversionToLibraryGroup < ActiveRecord::Migration[4.2]
1
+ class AddCsvCharsetConversionToLibraryGroup < ActiveRecord::Migration[5.2]
2
2
  def change
3
3
  add_column :library_groups, :csv_charset_conversion, :boolean, null: false, default: false
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddHeaderLogoToLibraryGroup < ActiveRecord::Migration[4.2]
1
+ class AddHeaderLogoToLibraryGroup < ActiveRecord::Migration[5.2]
2
2
  def change
3
3
  add_attachment :library_groups, :header_logo
4
4
  end
@@ -1,4 +1,4 @@
1
- class RenameLoginBannerToOldLoginBanner < ActiveRecord::Migration[4.2]
1
+ class RenameLoginBannerToOldLoginBanner < ActiveRecord::Migration[5.2]
2
2
  def change
3
3
  rename_column :library_groups, :login_banner, :old_login_banner
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddForeignKeyToLibraryGroupIdOnLibrary < ActiveRecord::Migration[4.2]
1
+ class AddForeignKeyToLibraryGroupIdOnLibrary < ActiveRecord::Migration[5.2]
2
2
  def change
3
3
  add_foreign_key :libraries, :library_groups, null: false
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddHeaderLogoMetaToLibraryGroup < ActiveRecord::Migration[4.2]
1
+ class AddHeaderLogoMetaToLibraryGroup < ActiveRecord::Migration[5.2]
2
2
  def change
3
3
  add_column :library_groups, :header_logo_meta, :text
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddConstraintsToMostRecentForUserImportFileTransitions < ActiveRecord::Migration[4.2]
1
+ class AddConstraintsToMostRecentForUserImportFileTransitions < ActiveRecord::Migration[5.2]
2
2
  disable_ddl_transaction!
3
3
 
4
4
  def up
@@ -1,4 +1,4 @@
1
- class AddConstraintsToMostRecentForUserExportFileTransitions < ActiveRecord::Migration[4.2]
1
+ class AddConstraintsToMostRecentForUserExportFileTransitions < ActiveRecord::Migration[5.2]
2
2
  disable_ddl_transaction!
3
3
 
4
4
  def up
@@ -0,0 +1,6 @@
1
+ class AddEmailToLibraryGroup < ActiveRecord::Migration[5.2]
2
+ def change
3
+ add_column :library_groups, :email, :string
4
+ add_index :library_groups, :email
5
+ end
6
+ end
@@ -1,3 +1,3 @@
1
1
  module EnjuLibrary
2
- VERSION = "0.4.0.beta.4"
2
+ VERSION = "0.4.0.rc.1".freeze
3
3
  end
@@ -5,8 +5,9 @@ class EnjuLibrary::SetupGenerator < Rails::Generators::Base
5
5
  def copy_setup_files
6
6
  directory("db/fixtures", "db/fixtures/enju_library")
7
7
  return if file == 'fixture'
8
- inject_into_file 'app/controllers/application_controller.rb',
9
- " include EnjuLibrary::Controller\n", after: "include EnjuLeaf::Controller\n"
10
- append_to_file("app/models/user.rb", "Item.include(EnjuLibrary::EnjuItem)\n")
8
+ inject_into_class 'app/controllers/application_controller.rb', ApplicationController,
9
+ " include EnjuLibrary::Controller\n"
10
+ inject_into_class 'app/models/user.rb', User,
11
+ " include EnjuLibrary::EnjuUser\n"
11
12
  end
12
13
  end
@@ -11,8 +11,8 @@ one:
11
11
  position: 1
12
12
  login_banner_translations: {"ja": "オープンソース図書館システム Next-L Enju です。このメッセージは管理者としてログインした後に変更することができます。",
13
13
  "en": "Next-L Enju, an open-source integrated library system. You can edit this message after logging in as Administrator."}
14
- footer_banner_translations: {"en":"[Next-L Enju Leaf __VERSION__](https://github.com/next-l/enju_leaf), an open source integrated library system | [About this system](/page/about) | [Report bugs](https://github.com/next-l/enju_leaf/issues) | [Manual](https://next-l.github.io/manual/)",
15
- "ja":"[Next-L Enju Leaf __VERSION__](https://github.com/next-l/enju_leaf), オープンソース統合図書館システム | [このシステムについて](/page/about) | [不具合を報告する](https://github.com/next-l/enju_leaf/issues) | [マニュアル](https://next-l.github.io/manual/)"}
14
+ footer_banner_translations: {"en":"[Next-L Enju Leaf __VERSION__](https://github.com/next-l/enju_leaf), an open source integrated library system \\| [About this system](/page/about) \\| [Report bugs](https://github.com/next-l/enju_leaf/issues) \\| [Manual](https://next-l.github.io/manual/)",
15
+ "ja":"[Next-L Enju Leaf __VERSION__](https://github.com/next-l/enju_leaf), オープンソース統合図書館システム \\| [このシステムについて](/page/about) \\| [不具合を報告する](https://github.com/next-l/enju_leaf/issues) \\| [マニュアル](https://next-l.github.io/manual/)"}
16
16
  admin_networks: "0.0.0.0/0\r\n\
17
17
  ::/0"
18
18
  pub_year_facet_range_interval: 10
@@ -0,0 +1,9 @@
1
+ search_engine_00001:
2
+ id: 1
3
+ name: NDL Search
4
+ url: https://iss.ndl.go.jp
5
+ base_url: https://iss.ndl.go.jp/books
6
+ http_method: get
7
+ query_param: any
8
+ note:
9
+ position: 1
@@ -1,3 +1,5 @@
1
1
  //= link_tree ../images
2
2
  //= link_directory ../javascripts .js
3
3
  //= link_directory ../stylesheets .css
4
+ //= link icons/arrow_up.png
5
+ //= link icons/arrow_down.png
@@ -2,7 +2,6 @@ class ApplicationController < ActionController::Base
2
2
  protect_from_forgery
3
3
  include EnjuLibrary::Controller
4
4
  include EnjuBiblio::Controller
5
- before_action :set_paper_trail_whodunnit
6
5
  after_action :verify_authorized
7
6
 
8
7
  include Pundit
@@ -5,5 +5,3 @@ class User < ApplicationRecord
5
5
 
6
6
  include EnjuLibrary::EnjuUser
7
7
  end
8
-
9
- Item.include(EnjuLibrary::EnjuItem)
@@ -12,4 +12,4 @@ Rails.application.config.assets.paths << Rails.root.join('../../', 'node_modules
12
12
  # application.js, application.css, and all non-JS/CSS in the app/assets
13
13
  # folder are already added.
14
14
  # Rails.application.config.assets.precompile += %w( admin.js admin.css )
15
- Rails.application.config.assets.precompile += %w( icons/*.png )
15
+ Rails.application.config.assets.precompile += %w( *.png icons/*.png *.gif enju_leaf/*.css print.css )
@@ -13,7 +13,6 @@ class CreateAgents < ActiveRecord::Migration[4.2]
13
13
  t.text :full_name_transcription
14
14
  t.text :full_name_alternative
15
15
  t.timestamps
16
- t.datetime :deleted_at
17
16
  t.string :zip_code_1
18
17
  t.string :zip_code_2
19
18
  t.text :address_1
@@ -9,7 +9,6 @@ class CreateManifestations < ActiveRecord::Migration[4.2]
9
9
  t.datetime :date_of_publication
10
10
  t.datetime :copyright_date
11
11
  t.timestamps
12
- t.datetime :deleted_at
13
12
  t.string :access_address
14
13
  t.integer :language_id, default: 1, null: false
15
14
  t.integer :carrier_type_id, default: 1, null: false
@@ -4,7 +4,6 @@ class CreateItems < ActiveRecord::Migration[4.2]
4
4
  t.string :call_number
5
5
  t.string :item_identifier
6
6
  t.timestamps
7
- t.datetime :deleted_at
8
7
  t.integer :shelf_id, default: 1, null: false
9
8
  t.boolean :include_supplements, default: false, null: false
10
9
  t.text :note
@@ -0,0 +1,5 @@
1
+ class AddMemoToManifestation < ActiveRecord::Migration[5.2]
2
+ def change
3
+ add_column :manifestations, :memo, :text
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddMemoToItem < ActiveRecord::Migration[5.2]
2
+ def change
3
+ add_column :items, :memo, :text
4
+ end
5
+ end
@@ -0,0 +1,12 @@
1
+ class CreateCustomProperties < ActiveRecord::Migration[5.2]
2
+ def change
3
+ create_table :custom_properties do |t|
4
+ t.integer :resource_id, null: false
5
+ t.string :resource_type, null: false
6
+ t.text :label, null: false
7
+ t.text :value
8
+
9
+ t.timestamps
10
+ end
11
+ end
12
+ end
@@ -10,18 +10,18 @@
10
10
  #
11
11
  # It's strongly recommended that you check this file into your version control system.
12
12
 
13
- ActiveRecord::Schema.define(version: 2019_08_14_120827) do
13
+ ActiveRecord::Schema.define(version: 2019_12_19_122214) do
14
14
 
15
15
  # These are extensions that must be enabled in order to support this database
16
16
  enable_extension "pgcrypto"
17
17
  enable_extension "plpgsql"
18
18
 
19
- create_table "accepts", id: :serial, force: :cascade do |t|
20
- t.integer "basket_id"
21
- t.integer "item_id"
22
- t.integer "librarian_id"
23
- t.datetime "created_at"
24
- t.datetime "updated_at"
19
+ create_table "accepts", force: :cascade do |t|
20
+ t.bigint "basket_id"
21
+ t.bigint "item_id"
22
+ t.bigint "librarian_id"
23
+ t.datetime "created_at", null: false
24
+ t.datetime "updated_at", null: false
25
25
  t.index ["basket_id"], name: "index_accepts_on_basket_id"
26
26
  t.index ["item_id"], name: "index_accepts_on_item_id"
27
27
  t.index ["librarian_id"], name: "index_accepts_on_librarian_id"
@@ -150,7 +150,6 @@ ActiveRecord::Schema.define(version: 2019_08_14_120827) do
150
150
  t.text "full_name_alternative"
151
151
  t.datetime "created_at"
152
152
  t.datetime "updated_at"
153
- t.datetime "deleted_at"
154
153
  t.string "zip_code_1"
155
154
  t.string "zip_code_2"
156
155
  t.text "address_1"
@@ -191,12 +190,12 @@ ActiveRecord::Schema.define(version: 2019_08_14_120827) do
191
190
  t.index ["required_role_id"], name: "index_agents_on_required_role_id"
192
191
  end
193
192
 
194
- create_table "baskets", id: :serial, force: :cascade do |t|
195
- t.integer "user_id"
193
+ create_table "baskets", force: :cascade do |t|
194
+ t.bigint "user_id"
196
195
  t.text "note"
197
196
  t.integer "lock_version", default: 0, null: false
198
- t.datetime "created_at"
199
- t.datetime "updated_at"
197
+ t.datetime "created_at", null: false
198
+ t.datetime "updated_at", null: false
200
199
  t.index ["user_id"], name: "index_baskets_on_user_id"
201
200
  end
202
201
 
@@ -245,7 +244,7 @@ ActiveRecord::Schema.define(version: 2019_08_14_120827) do
245
244
  t.index ["user_id"], name: "index_bookmarks_on_user_id"
246
245
  end
247
246
 
248
- create_table "bookstores", id: :serial, force: :cascade do |t|
247
+ create_table "bookstores", force: :cascade do |t|
249
248
  t.text "name", null: false
250
249
  t.string "zip_code"
251
250
  t.text "address"
@@ -254,18 +253,17 @@ ActiveRecord::Schema.define(version: 2019_08_14_120827) do
254
253
  t.string "fax_number"
255
254
  t.string "url"
256
255
  t.integer "position"
257
- t.datetime "deleted_at"
258
- t.datetime "created_at"
259
- t.datetime "updated_at"
256
+ t.datetime "created_at", null: false
257
+ t.datetime "updated_at", null: false
260
258
  end
261
259
 
262
- create_table "budget_types", id: :serial, force: :cascade do |t|
260
+ create_table "budget_types", force: :cascade do |t|
263
261
  t.string "name"
264
262
  t.text "display_name"
265
263
  t.text "note"
266
264
  t.integer "position"
267
- t.datetime "created_at"
268
- t.datetime "updated_at"
265
+ t.datetime "created_at", null: false
266
+ t.datetime "updated_at", null: false
269
267
  t.jsonb "display_name_translations", default: {}, null: false
270
268
  end
271
269
 
@@ -413,13 +411,13 @@ ActiveRecord::Schema.define(version: 2019_08_14_120827) do
413
411
  t.index ["parent_id"], name: "index_classifications_on_parent_id"
414
412
  end
415
413
 
416
- create_table "colors", id: :serial, force: :cascade do |t|
417
- t.integer "library_group_id"
414
+ create_table "colors", force: :cascade do |t|
415
+ t.bigint "library_group_id"
418
416
  t.string "property"
419
417
  t.string "code"
420
418
  t.integer "position"
421
- t.datetime "created_at"
422
- t.datetime "updated_at"
419
+ t.datetime "created_at", null: false
420
+ t.datetime "updated_at", null: false
423
421
  t.index ["library_group_id"], name: "index_colors_on_library_group_id"
424
422
  end
425
423
 
@@ -469,6 +467,15 @@ ActiveRecord::Schema.define(version: 2019_08_14_120827) do
469
467
  t.index ["work_id"], name: "index_creates_on_work_id"
470
468
  end
471
469
 
470
+ create_table "custom_properties", force: :cascade do |t|
471
+ t.integer "resource_id", null: false
472
+ t.string "resource_type", null: false
473
+ t.text "label", null: false
474
+ t.text "value"
475
+ t.datetime "created_at", null: false
476
+ t.datetime "updated_at", null: false
477
+ end
478
+
472
479
  create_table "demands", id: :serial, force: :cascade do |t|
473
480
  t.integer "user_id"
474
481
  t.integer "item_id"
@@ -752,7 +759,6 @@ ActiveRecord::Schema.define(version: 2019_08_14_120827) do
752
759
  t.string "item_identifier"
753
760
  t.datetime "created_at"
754
761
  t.datetime "updated_at"
755
- t.datetime "deleted_at"
756
762
  t.integer "shelf_id", default: 1, null: false
757
763
  t.boolean "include_supplements", default: false, null: false
758
764
  t.text "note"
@@ -770,6 +776,7 @@ ActiveRecord::Schema.define(version: 2019_08_14_120827) do
770
776
  t.string "binding_call_number"
771
777
  t.datetime "binded_at"
772
778
  t.integer "manifestation_id", null: false
779
+ t.text "memo"
773
780
  t.index ["binding_item_identifier"], name: "index_items_on_binding_item_identifier"
774
781
  t.index ["bookstore_id"], name: "index_items_on_bookstore_id"
775
782
  t.index ["checkout_type_id"], name: "index_items_on_checkout_type_id"
@@ -819,7 +826,7 @@ ActiveRecord::Schema.define(version: 2019_08_14_120827) do
819
826
  t.index ["item_id", "user_group_id"], name: "index_lending_policies_on_item_id_and_user_group_id", unique: true
820
827
  end
821
828
 
822
- create_table "libraries", id: :serial, force: :cascade do |t|
829
+ create_table "libraries", force: :cascade do |t|
823
830
  t.string "name", null: false
824
831
  t.text "display_name"
825
832
  t.string "short_display_name", null: false
@@ -833,23 +840,23 @@ ActiveRecord::Schema.define(version: 2019_08_14_120827) do
833
840
  t.text "note"
834
841
  t.integer "call_number_rows", default: 1, null: false
835
842
  t.string "call_number_delimiter", default: "|", null: false
836
- t.integer "library_group_id", null: false
843
+ t.bigint "library_group_id", null: false
837
844
  t.integer "users_count", default: 0, null: false
838
845
  t.integer "position"
839
- t.integer "country_id"
840
- t.datetime "created_at"
841
- t.datetime "updated_at"
842
- t.datetime "deleted_at"
846
+ t.bigint "country_id"
847
+ t.datetime "created_at", null: false
848
+ t.datetime "updated_at", null: false
843
849
  t.text "opening_hour"
844
850
  t.string "isil"
845
851
  t.float "latitude"
846
852
  t.float "longitude"
847
853
  t.jsonb "display_name_translations", default: {}, null: false
854
+ t.index ["country_id"], name: "index_libraries_on_country_id"
848
855
  t.index ["library_group_id"], name: "index_libraries_on_library_group_id"
849
856
  t.index ["name"], name: "index_libraries_on_name"
850
857
  end
851
858
 
852
- create_table "library_groups", id: :serial, force: :cascade do |t|
859
+ create_table "library_groups", force: :cascade do |t|
853
860
  t.string "name", null: false
854
861
  t.text "display_name"
855
862
  t.string "short_name", null: false
@@ -858,8 +865,8 @@ ActiveRecord::Schema.define(version: 2019_08_14_120827) do
858
865
  t.text "note"
859
866
  t.integer "country_id"
860
867
  t.integer "position"
861
- t.datetime "created_at"
862
- t.datetime "updated_at"
868
+ t.datetime "created_at", null: false
869
+ t.datetime "updated_at", null: false
863
870
  t.text "admin_networks"
864
871
  t.boolean "allow_bookmark_external_url", default: false, null: false
865
872
  t.string "url", default: "http://localhost:3000/"
@@ -870,7 +877,7 @@ ActiveRecord::Schema.define(version: 2019_08_14_120827) do
870
877
  t.boolean "family_name_first", default: true
871
878
  t.string "screenshot_generator"
872
879
  t.integer "pub_year_facet_range_interval", default: 10
873
- t.integer "user_id"
880
+ t.bigint "user_id"
874
881
  t.boolean "csv_charset_conversion", default: false, null: false
875
882
  t.string "header_logo_file_name"
876
883
  t.string "header_logo_content_type"
@@ -880,6 +887,8 @@ ActiveRecord::Schema.define(version: 2019_08_14_120827) do
880
887
  t.jsonb "display_name_translations", default: {}, null: false
881
888
  t.jsonb "login_banner_translations", default: {}, null: false
882
889
  t.jsonb "footer_banner_translations", default: {}, null: false
890
+ t.string "email"
891
+ t.index ["email"], name: "index_library_groups_on_email"
883
892
  t.index ["short_name"], name: "index_library_groups_on_short_name"
884
893
  t.index ["user_id"], name: "index_library_groups_on_user_id"
885
894
  end
@@ -975,7 +984,6 @@ ActiveRecord::Schema.define(version: 2019_08_14_120827) do
975
984
  t.datetime "date_copyrighted"
976
985
  t.datetime "created_at"
977
986
  t.datetime "updated_at"
978
- t.datetime "deleted_at"
979
987
  t.string "access_address"
980
988
  t.integer "language_id", default: 1, null: false
981
989
  t.integer "carrier_type_id", default: 1, null: false
@@ -1025,6 +1033,7 @@ ActiveRecord::Schema.define(version: 2019_08_14_120827) do
1025
1033
  t.text "publication_place"
1026
1034
  t.text "extent"
1027
1035
  t.text "dimensions"
1036
+ t.text "memo"
1028
1037
  t.index ["access_address"], name: "index_manifestations_on_access_address"
1029
1038
  t.index ["date_of_publication"], name: "index_manifestations_on_date_of_publication"
1030
1039
  t.index ["doi"], name: "index_manifestations_on_doi"
@@ -1269,23 +1278,23 @@ ActiveRecord::Schema.define(version: 2019_08_14_120827) do
1269
1278
  t.index ["expression_id"], name: "index_realizes_on_expression_id"
1270
1279
  end
1271
1280
 
1272
- create_table "request_status_types", id: :serial, force: :cascade do |t|
1281
+ create_table "request_status_types", force: :cascade do |t|
1273
1282
  t.string "name", null: false
1274
1283
  t.text "display_name"
1275
1284
  t.text "note"
1276
1285
  t.integer "position"
1277
- t.datetime "created_at"
1278
- t.datetime "updated_at"
1286
+ t.datetime "created_at", null: false
1287
+ t.datetime "updated_at", null: false
1279
1288
  t.jsonb "display_name_translations", default: {}, null: false
1280
1289
  end
1281
1290
 
1282
- create_table "request_types", id: :serial, force: :cascade do |t|
1291
+ create_table "request_types", force: :cascade do |t|
1283
1292
  t.string "name", null: false
1284
1293
  t.text "display_name"
1285
1294
  t.text "note"
1286
1295
  t.integer "position"
1287
- t.datetime "created_at"
1288
- t.datetime "updated_at"
1296
+ t.datetime "created_at", null: false
1297
+ t.datetime "updated_at", null: false
1289
1298
  t.jsonb "display_name_translations", default: {}, null: false
1290
1299
  end
1291
1300
 
@@ -1437,7 +1446,7 @@ ActiveRecord::Schema.define(version: 2019_08_14_120827) do
1437
1446
  t.jsonb "display_name_translations", default: {}, null: false
1438
1447
  end
1439
1448
 
1440
- create_table "search_engines", id: :serial, force: :cascade do |t|
1449
+ create_table "search_engines", force: :cascade do |t|
1441
1450
  t.string "name", null: false
1442
1451
  t.text "display_name"
1443
1452
  t.string "url", null: false
@@ -1447,8 +1456,8 @@ ActiveRecord::Schema.define(version: 2019_08_14_120827) do
1447
1456
  t.text "additional_param"
1448
1457
  t.text "note"
1449
1458
  t.integer "position"
1450
- t.datetime "created_at"
1451
- t.datetime "updated_at"
1459
+ t.datetime "created_at", null: false
1460
+ t.datetime "updated_at", null: false
1452
1461
  t.jsonb "display_name_translations", default: {}, null: false
1453
1462
  end
1454
1463
 
@@ -1516,16 +1525,15 @@ ActiveRecord::Schema.define(version: 2019_08_14_120827) do
1516
1525
  t.index ["series_statement_identifier"], name: "index_series_statements_on_series_statement_identifier"
1517
1526
  end
1518
1527
 
1519
- create_table "shelves", id: :serial, force: :cascade do |t|
1528
+ create_table "shelves", force: :cascade do |t|
1520
1529
  t.string "name", null: false
1521
1530
  t.text "display_name"
1522
1531
  t.text "note"
1523
- t.integer "library_id", null: false
1532
+ t.bigint "library_id", null: false
1524
1533
  t.integer "items_count", default: 0, null: false
1525
1534
  t.integer "position"
1526
- t.datetime "created_at"
1527
- t.datetime "updated_at"
1528
- t.datetime "deleted_at"
1535
+ t.datetime "created_at", null: false
1536
+ t.datetime "updated_at", null: false
1529
1537
  t.boolean "closed", default: false, null: false
1530
1538
  t.jsonb "display_name_translations", default: {}, null: false
1531
1539
  t.index ["library_id"], name: "index_shelves_on_library_id"
@@ -1573,26 +1581,25 @@ ActiveRecord::Schema.define(version: 2019_08_14_120827) do
1573
1581
  t.index ["use_term_id"], name: "index_subjects_on_use_term_id"
1574
1582
  end
1575
1583
 
1576
- create_table "subscribes", id: :serial, force: :cascade do |t|
1577
- t.integer "subscription_id", null: false
1584
+ create_table "subscribes", force: :cascade do |t|
1585
+ t.bigint "subscription_id", null: false
1578
1586
  t.integer "work_id", null: false
1579
1587
  t.datetime "start_at", null: false
1580
1588
  t.datetime "end_at", null: false
1581
- t.datetime "created_at"
1582
- t.datetime "updated_at"
1589
+ t.datetime "created_at", null: false
1590
+ t.datetime "updated_at", null: false
1583
1591
  t.index ["subscription_id"], name: "index_subscribes_on_subscription_id"
1584
1592
  t.index ["work_id"], name: "index_subscribes_on_work_id"
1585
1593
  end
1586
1594
 
1587
- create_table "subscriptions", id: :serial, force: :cascade do |t|
1595
+ create_table "subscriptions", force: :cascade do |t|
1588
1596
  t.text "title", null: false
1589
1597
  t.text "note"
1590
- t.integer "user_id"
1591
- t.integer "order_list_id"
1592
- t.datetime "deleted_at"
1598
+ t.bigint "user_id"
1599
+ t.bigint "order_list_id"
1593
1600
  t.integer "subscribes_count", default: 0, null: false
1594
- t.datetime "created_at"
1595
- t.datetime "updated_at"
1601
+ t.datetime "created_at", null: false
1602
+ t.datetime "updated_at", null: false
1596
1603
  t.index ["order_list_id"], name: "index_subscriptions_on_order_list_id"
1597
1604
  t.index ["user_id"], name: "index_subscriptions_on_user_id"
1598
1605
  end
@@ -1650,13 +1657,13 @@ ActiveRecord::Schema.define(version: 2019_08_14_120827) do
1650
1657
  t.index ["user_id"], name: "index_user_checkout_stats_on_user_id"
1651
1658
  end
1652
1659
 
1653
- create_table "user_export_file_transitions", id: :serial, force: :cascade do |t|
1660
+ create_table "user_export_file_transitions", force: :cascade do |t|
1654
1661
  t.string "to_state"
1655
1662
  t.text "metadata", default: "{}"
1656
1663
  t.integer "sort_key"
1657
- t.integer "user_export_file_id"
1658
- t.datetime "created_at"
1659
- t.datetime "updated_at"
1664
+ t.bigint "user_export_file_id"
1665
+ t.datetime "created_at", null: false
1666
+ t.datetime "updated_at", null: false
1660
1667
  t.boolean "most_recent", null: false
1661
1668
  t.index ["sort_key", "user_export_file_id"], name: "index_user_export_file_transitions_on_sort_key_and_file_id", unique: true
1662
1669
  t.index ["user_export_file_id", "most_recent"], name: "index_user_export_file_transitions_parent_most_recent", unique: true, where: "most_recent"
@@ -1664,15 +1671,15 @@ ActiveRecord::Schema.define(version: 2019_08_14_120827) do
1664
1671
  t.index ["user_export_file_id"], name: "index_user_export_file_transitions_on_user_export_file_id"
1665
1672
  end
1666
1673
 
1667
- create_table "user_export_files", id: :serial, force: :cascade do |t|
1668
- t.integer "user_id"
1674
+ create_table "user_export_files", force: :cascade do |t|
1675
+ t.bigint "user_id"
1669
1676
  t.string "user_export_file_name"
1670
1677
  t.string "user_export_content_type"
1671
1678
  t.bigint "user_export_file_size"
1672
1679
  t.datetime "user_export_updated_at"
1673
1680
  t.datetime "executed_at"
1674
- t.datetime "created_at"
1675
- t.datetime "updated_at"
1681
+ t.datetime "created_at", null: false
1682
+ t.datetime "updated_at", null: false
1676
1683
  t.index ["user_id"], name: "index_user_export_files_on_user_id"
1677
1684
  end
1678
1685
 
@@ -1695,14 +1702,13 @@ ActiveRecord::Schema.define(version: 2019_08_14_120827) do
1695
1702
  t.index ["user_group_id"], name: "index_user_group_has_checkout_types_on_user_group_id"
1696
1703
  end
1697
1704
 
1698
- create_table "user_groups", id: :serial, force: :cascade do |t|
1705
+ create_table "user_groups", force: :cascade do |t|
1699
1706
  t.string "name"
1700
1707
  t.text "display_name"
1701
1708
  t.text "note"
1702
1709
  t.integer "position"
1703
- t.datetime "created_at"
1704
- t.datetime "updated_at"
1705
- t.datetime "deleted_at"
1710
+ t.datetime "created_at", null: false
1711
+ t.datetime "updated_at", null: false
1706
1712
  t.integer "valid_period_for_new_user", default: 0, null: false
1707
1713
  t.datetime "expired_at"
1708
1714
  t.integer "number_of_day_to_notify_overdue", default: 7, null: false
@@ -1720,21 +1726,21 @@ ActiveRecord::Schema.define(version: 2019_08_14_120827) do
1720
1726
  t.index ["user_id"], name: "index_user_has_roles_on_user_id"
1721
1727
  end
1722
1728
 
1723
- create_table "user_import_file_transitions", id: :serial, force: :cascade do |t|
1729
+ create_table "user_import_file_transitions", force: :cascade do |t|
1724
1730
  t.string "to_state"
1725
1731
  t.text "metadata", default: "{}"
1726
1732
  t.integer "sort_key"
1727
- t.integer "user_import_file_id"
1728
- t.datetime "created_at"
1729
- t.datetime "updated_at"
1733
+ t.bigint "user_import_file_id"
1734
+ t.datetime "created_at", null: false
1735
+ t.datetime "updated_at", null: false
1730
1736
  t.boolean "most_recent", null: false
1731
1737
  t.index ["sort_key", "user_import_file_id"], name: "index_user_import_file_transitions_on_sort_key_and_file_id", unique: true
1732
1738
  t.index ["user_import_file_id", "most_recent"], name: "index_user_import_file_transitions_parent_most_recent", unique: true, where: "most_recent"
1733
1739
  t.index ["user_import_file_id"], name: "index_user_import_file_transitions_on_user_import_file_id"
1734
1740
  end
1735
1741
 
1736
- create_table "user_import_files", id: :serial, force: :cascade do |t|
1737
- t.integer "user_id"
1742
+ create_table "user_import_files", force: :cascade do |t|
1743
+ t.bigint "user_id"
1738
1744
  t.text "note"
1739
1745
  t.datetime "executed_at"
1740
1746
  t.string "user_import_file_name"
@@ -1744,20 +1750,22 @@ ActiveRecord::Schema.define(version: 2019_08_14_120827) do
1744
1750
  t.string "user_import_fingerprint"
1745
1751
  t.string "edit_mode"
1746
1752
  t.text "error_message"
1747
- t.datetime "created_at"
1748
- t.datetime "updated_at"
1753
+ t.datetime "created_at", null: false
1754
+ t.datetime "updated_at", null: false
1749
1755
  t.string "user_encoding"
1750
- t.integer "default_library_id"
1751
- t.integer "default_user_group_id"
1756
+ t.bigint "default_library_id"
1757
+ t.bigint "default_user_group_id"
1758
+ t.index ["default_library_id"], name: "index_user_import_files_on_default_library_id"
1759
+ t.index ["default_user_group_id"], name: "index_user_import_files_on_default_user_group_id"
1752
1760
  t.index ["user_id"], name: "index_user_import_files_on_user_id"
1753
1761
  end
1754
1762
 
1755
- create_table "user_import_results", id: :serial, force: :cascade do |t|
1756
- t.integer "user_import_file_id"
1757
- t.integer "user_id"
1763
+ create_table "user_import_results", force: :cascade do |t|
1764
+ t.bigint "user_import_file_id"
1765
+ t.bigint "user_id"
1758
1766
  t.text "body"
1759
- t.datetime "created_at"
1760
- t.datetime "updated_at"
1767
+ t.datetime "created_at", null: false
1768
+ t.datetime "updated_at", null: false
1761
1769
  t.text "error_message"
1762
1770
  t.index ["user_id"], name: "index_user_import_results_on_user_id"
1763
1771
  t.index ["user_import_file_id"], name: "index_user_import_results_on_user_import_file_id"
@@ -1830,10 +1838,10 @@ ActiveRecord::Schema.define(version: 2019_08_14_120827) do
1830
1838
  t.index ["item_type", "item_id"], name: "index_versions_on_item_type_and_item_id"
1831
1839
  end
1832
1840
 
1833
- create_table "withdraws", id: :serial, force: :cascade do |t|
1834
- t.integer "basket_id"
1835
- t.integer "item_id"
1836
- t.integer "librarian_id"
1841
+ create_table "withdraws", force: :cascade do |t|
1842
+ t.bigint "basket_id"
1843
+ t.bigint "item_id"
1844
+ t.bigint "librarian_id"
1837
1845
  t.datetime "created_at", null: false
1838
1846
  t.datetime "updated_at", null: false
1839
1847
  t.index ["basket_id"], name: "index_withdraws_on_basket_id"