enju_manifestation_viewer 0.2.4 → 0.3.0.beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (190) hide show
  1. checksums.yaml +4 -4
  2. data/README.rdoc +3 -3
  3. data/app/assets/config/enju_manifestation_viewer_manifest.js +0 -0
  4. data/{lib/enju_manifestation_viewer/manifestation_viewer_helper.rb → app/helpers/enju_manifestation_viewer/application_helper.rb} +1 -1
  5. data/{lib → app/helpers}/enju_manifestation_viewer/book_jacket_helper.rb +0 -0
  6. data/app/views/manifestations/_youtube.html.erb +1 -1
  7. data/db/migrate/20160813191533_add_book_jacket_source_to_library_group.rb +1 -1
  8. data/db/migrate/20160813191820_add_screenshot_generator_to_library_group.rb +1 -1
  9. data/lib/enju_manifestation_viewer.rb +0 -4
  10. data/lib/enju_manifestation_viewer/version.rb +1 -1
  11. data/spec/dummy/bin/rails +1 -1
  12. data/spec/dummy/bin/setup +21 -12
  13. data/spec/dummy/bin/update +29 -0
  14. data/spec/dummy/bin/yarn +11 -0
  15. data/spec/dummy/config/application.rb +6 -16
  16. data/spec/dummy/config/environment.rb +4 -4
  17. data/spec/dummy/config/environments/development.rb +24 -11
  18. data/spec/dummy/config/environments/production.rb +28 -16
  19. data/spec/dummy/config/environments/test.rb +6 -8
  20. data/spec/dummy/config/initializers/application_controller_renderer.rb +8 -0
  21. data/spec/dummy/config/initializers/assets.rb +14 -0
  22. data/spec/dummy/config/initializers/cookies_serializer.rb +5 -0
  23. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  24. data/spec/dummy/config/initializers/inflections.rb +6 -5
  25. data/spec/dummy/config/initializers/mime_types.rb +0 -1
  26. data/spec/dummy/config/initializers/wrap_parameters.rb +5 -5
  27. data/spec/dummy/db/migrate/001_create_agents.rb +1 -1
  28. data/spec/dummy/db/migrate/002_devise_create_users.rb +1 -1
  29. data/spec/dummy/db/migrate/005_create_manifestations.rb +1 -1
  30. data/spec/dummy/db/migrate/006_create_items.rb +1 -1
  31. data/spec/dummy/db/migrate/012_create_owns.rb +1 -1
  32. data/spec/dummy/db/migrate/015_create_creates.rb +1 -1
  33. data/spec/dummy/db/migrate/041_create_roles.rb +1 -1
  34. data/spec/dummy/db/migrate/047_create_produces.rb +1 -1
  35. data/spec/dummy/db/migrate/059_create_libraries.rb +1 -1
  36. data/spec/dummy/db/migrate/069_create_shelves.rb +1 -1
  37. data/spec/dummy/db/migrate/073_create_carrier_types.rb +1 -1
  38. data/spec/dummy/db/migrate/077_create_user_groups.rb +1 -1
  39. data/spec/dummy/db/migrate/080_create_library_groups.rb +1 -1
  40. data/spec/dummy/db/migrate/112_create_frequencies.rb +1 -1
  41. data/spec/dummy/db/migrate/117_create_form_of_works.rb +1 -1
  42. data/spec/dummy/db/migrate/120_create_baskets.rb +1 -1
  43. data/spec/dummy/db/migrate/124_create_bookstores.rb +1 -1
  44. data/spec/dummy/db/migrate/125_create_donates.rb +1 -1
  45. data/spec/dummy/db/migrate/130_create_request_status_types.rb +1 -1
  46. data/spec/dummy/db/migrate/131_create_request_types.rb +1 -1
  47. data/spec/dummy/db/migrate/133_create_agent_merges.rb +1 -1
  48. data/spec/dummy/db/migrate/134_create_agent_merge_lists.rb +1 -1
  49. data/spec/dummy/db/migrate/20080830154109_create_realizes.rb +1 -1
  50. data/spec/dummy/db/migrate/20080830172106_create_exemplifies.rb +1 -1
  51. data/spec/dummy/db/migrate/20080905191442_create_agent_types.rb +1 -1
  52. data/spec/dummy/db/migrate/20081006090811_create_subscriptions.rb +1 -1
  53. data/spec/dummy/db/migrate/20081006093246_create_subscribes.rb +1 -1
  54. data/spec/dummy/db/migrate/20081023092436_create_search_engines.rb +1 -1
  55. data/spec/dummy/db/migrate/20081025083323_create_countries.rb +1 -1
  56. data/spec/dummy/db/migrate/20081025083905_create_languages.rb +1 -1
  57. data/spec/dummy/db/migrate/20081027150907_create_picture_files.rb +1 -1
  58. data/spec/dummy/db/migrate/20081028083142_create_agent_import_files.rb +1 -1
  59. data/spec/dummy/db/migrate/20081028083208_create_resource_import_files.rb +1 -1
  60. data/spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb +1 -1
  61. data/spec/dummy/db/migrate/20090705212043_add_attachments_attachment_to_manifestation.rb +1 -1
  62. data/spec/dummy/db/migrate/20090720091106_create_medium_of_performances.rb +1 -1
  63. data/spec/dummy/db/migrate/20090720091429_create_content_types.rb +1 -1
  64. data/spec/dummy/db/migrate/20090812151902_create_agent_relationship_types.rb +1 -1
  65. data/spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb +1 -1
  66. data/spec/dummy/db/migrate/20091025080447_create_licenses.rb +1 -1
  67. data/spec/dummy/db/migrate/20091202124834_create_versions.rb +1 -1
  68. data/spec/dummy/db/migrate/20091214131723_create_series_statements.rb +1 -1
  69. data/spec/dummy/db/migrate/20100129142347_create_import_requests.rb +1 -1
  70. data/spec/dummy/db/migrate/20100211105551_add_admin_networks_to_library_group.rb +1 -1
  71. data/spec/dummy/db/migrate/20100223121519_rename_series_statement_title_to_original_title.rb +1 -1
  72. data/spec/dummy/db/migrate/20100314190054_add_opening_hour_to_library.rb +1 -1
  73. data/spec/dummy/db/migrate/20100321235924_add_series_statement_identifier_to_series_statement.rb +1 -1
  74. data/spec/dummy/db/migrate/20100525124311_create_manifestation_relationships.rb +1 -1
  75. data/spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb +1 -1
  76. data/spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb +1 -1
  77. data/spec/dummy/db/migrate/20100607044753_create_manifestation_relationship_types.rb +1 -1
  78. data/spec/dummy/db/migrate/20100814091104_add_position_to_agent_relationship.rb +1 -1
  79. data/spec/dummy/db/migrate/20100925043847_create_resource_import_results.rb +1 -1
  80. data/spec/dummy/db/migrate/20100925074559_create_agent_import_results.rb +1 -1
  81. data/spec/dummy/db/migrate/20101212070145_add_acquired_at_to_item.rb +1 -1
  82. data/spec/dummy/db/migrate/20110222073537_add_url_to_library_group.rb +1 -1
  83. data/spec/dummy/db/migrate/20110301035123_add_pub_date_to_manifestation.rb +1 -1
  84. data/spec/dummy/db/migrate/20110301121550_add_birth_date_and_death_date_to_agent.rb +1 -1
  85. data/spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb +1 -1
  86. data/spec/dummy/db/migrate/20110603184217_add_edit_mode_to_resource_import_file.rb +1 -1
  87. data/spec/dummy/db/migrate/20110619064807_add_edition_string_to_manifestation.rb +1 -1
  88. data/spec/dummy/db/migrate/20110620173525_add_bookstore_id_to_item.rb +1 -1
  89. data/spec/dummy/db/migrate/20110627034940_create_series_statement_merge_lists.rb +1 -1
  90. data/spec/dummy/db/migrate/20110627035057_create_series_statement_merges.rb +1 -1
  91. data/spec/dummy/db/migrate/20110916091020_add_volume_number_to_manifestation.rb +1 -1
  92. data/spec/dummy/db/migrate/20110916103953_add_manifestaiton_id_to_series_statement.rb +1 -1
  93. data/spec/dummy/db/migrate/20110918162329_add_note_to_series_statement.rb +1 -1
  94. data/spec/dummy/db/migrate/20111124110059_create_create_types.rb +1 -1
  95. data/spec/dummy/db/migrate/20111124110319_create_realize_types.rb +1 -1
  96. data/spec/dummy/db/migrate/20111124110355_create_produce_types.rb +1 -1
  97. data/spec/dummy/db/migrate/20111124112131_add_create_type_to_create.rb +1 -1
  98. data/spec/dummy/db/migrate/20120105074911_add_isil_to_library.rb +1 -1
  99. data/spec/dummy/db/migrate/20120125152919_add_title_subseries_transcription_to_series_statement.rb +1 -1
  100. data/spec/dummy/db/migrate/20120129014038_create_budget_types.rb +1 -1
  101. data/spec/dummy/db/migrate/20120129020544_add_budget_type_id_to_item.rb +1 -1
  102. data/spec/dummy/db/migrate/20120319120638_add_content_type_id_to_manifestation.rb +1 -1
  103. data/spec/dummy/db/migrate/20120319173203_create_accepts.rb +1 -1
  104. data/spec/dummy/db/migrate/20120410104851_add_year_of_publication_to_manifestation.rb +1 -1
  105. data/spec/dummy/db/migrate/20120413072700_add_picture_meta_to_picture_file.rb +1 -1
  106. data/spec/dummy/db/migrate/20120413100352_add_fingerprint_to_picture_file.rb +1 -1
  107. data/spec/dummy/db/migrate/20120413161340_add_fingerprint_to_resource_import_file.rb +1 -1
  108. data/spec/dummy/db/migrate/20120413161403_add_fingerprint_to_agent_import_file.rb +1 -1
  109. data/spec/dummy/db/migrate/20120413170705_add_error_message_to_resource_import_file.rb +1 -1
  110. data/spec/dummy/db/migrate/20120413170720_add_error_message_to_agent_import_file.rb +1 -1
  111. data/spec/dummy/db/migrate/20120415164821_add_attachment_meta_to_manifestation.rb +1 -1
  112. data/spec/dummy/db/migrate/20120418081407_add_month_of_publication_to_manifestation.rb +1 -1
  113. data/spec/dummy/db/migrate/20120510140958_add_closed_to_shelf.rb +1 -1
  114. data/spec/dummy/db/migrate/20120511072422_add_agent_identifier_to_agent.rb +1 -1
  115. data/spec/dummy/db/migrate/20120602141129_add_edit_mode_to_agent_import_file.rb +1 -1
  116. data/spec/dummy/db/migrate/20121116031206_add_fulltext_content_to_manifestation.rb +1 -1
  117. data/spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb +1 -1
  118. data/spec/dummy/db/migrate/20130412083556_add_latitude_and_longitude_to_library.rb +1 -1
  119. data/spec/dummy/db/migrate/20130421093852_add_periodical_to_manifestation.rb +1 -1
  120. data/spec/dummy/db/migrate/20130421155019_add_creator_string_to_series_statement.rb +1 -1
  121. data/spec/dummy/db/migrate/20130421164124_add_series_master_to_series_statement.rb +1 -1
  122. data/spec/dummy/db/migrate/20130429020822_add_root_manifestation_id_to_series_statement.rb +1 -1
  123. data/spec/dummy/db/migrate/20130506175303_create_identifier_types.rb +1 -1
  124. data/spec/dummy/db/migrate/20130506175834_create_identifiers.rb +1 -1
  125. data/spec/dummy/db/migrate/20130509185724_add_statement_of_responsibility_to_manifestation.rb +1 -1
  126. data/spec/dummy/db/migrate/20140110122216_create_user_import_files.rb +1 -1
  127. data/spec/dummy/db/migrate/20140110131010_create_user_import_results.rb +1 -1
  128. data/spec/dummy/db/migrate/20140122054321_create_profiles.rb +1 -1
  129. data/spec/dummy/db/migrate/20140519170214_create_resource_import_file_transitions.rb +1 -1
  130. data/spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb +1 -1
  131. data/spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb +1 -1
  132. data/spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb +1 -1
  133. data/spec/dummy/db/migrate/20140610123439_drop_email_unique_constraint_enju_leaf_rc10.rb +1 -1
  134. data/spec/dummy/db/migrate/20140614065404_create_resource_export_files.rb +1 -1
  135. data/spec/dummy/db/migrate/20140614141500_create_resource_export_file_transitions.rb +1 -1
  136. data/spec/dummy/db/migrate/20140628072217_add_user_encoding_to_user_import_file.rb +1 -1
  137. data/spec/dummy/db/migrate/20140628073524_add_user_encoding_to_agent_import_file.rb +1 -1
  138. data/spec/dummy/db/migrate/20140628073535_add_user_encoding_to_resource_import_file.rb +1 -1
  139. data/spec/dummy/db/migrate/20140709113413_create_user_export_files.rb +1 -1
  140. data/spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb +1 -1
  141. data/spec/dummy/db/migrate/20140720140916_add_binding_item_identifier_to_item.rb +1 -1
  142. data/spec/dummy/db/migrate/20140720170714_add_default_library_id_to_user_import_file.rb +1 -1
  143. data/spec/dummy/db/migrate/20140720170735_add_default_user_group_id_to_user_import_file.rb +1 -1
  144. data/spec/dummy/db/migrate/20140721151416_add_default_shelf_id_to_resource_import_file.rb +1 -1
  145. data/spec/dummy/db/migrate/20140802082007_add_manifestation_id_to_item.rb +1 -1
  146. data/spec/dummy/db/migrate/20140811031145_add_expired_at_to_profile.rb +1 -1
  147. data/spec/dummy/db/migrate/20140813182425_add_publication_place_to_manifestation.rb +1 -1
  148. data/spec/dummy/db/migrate/20140821151023_create_colors.rb +1 -1
  149. data/spec/dummy/db/migrate/20140822114527_add_error_message_to_resource_import_result.rb +1 -1
  150. data/spec/dummy/db/migrate/20140823083524_add_extent_to_manifestation.rb +1 -1
  151. data/spec/dummy/db/migrate/20140823094847_add_dimensions_to_manifestation.rb +1 -1
  152. data/spec/dummy/db/migrate/20140823095740_rename_manifestation_periodical_to_serial.rb +1 -1
  153. data/spec/dummy/db/migrate/20141003181336_add_full_name_transcription_to_profile.rb +1 -1
  154. data/spec/dummy/db/migrate/20141003182825_add_date_of_birth_to_profile.rb +1 -1
  155. data/spec/dummy/db/migrate/20150117111136_add_foreign_key_to_items_referencing_manifestations.rb +1 -1
  156. data/spec/dummy/db/migrate/20150221063719_add_settings_to_library_group.rb +1 -1
  157. data/spec/dummy/db/migrate/20150506105356_add_error_message_to_user_import_result.rb +1 -1
  158. data/spec/dummy/db/migrate/20150924115059_create_withdraws.rb +1 -1
  159. data/spec/dummy/db/migrate/20151125004028_add_profile_id_to_agent.rb +1 -1
  160. data/spec/dummy/db/migrate/20151213070943_add_translation_table_to_library_group.rb +1 -1
  161. data/spec/dummy/db/migrate/20151213072705_add_footer_banner_to_library_group.rb +1 -1
  162. data/spec/dummy/db/migrate/20160610093229_add_html_snippet_to_library_group.rb +1 -1
  163. data/spec/dummy/db/migrate/20160627232219_add_most_recent_to_user_import_file_transitions.rb +1 -1
  164. data/spec/dummy/db/migrate/20160627232316_add_most_recent_to_user_export_file_transitions.rb +1 -1
  165. data/spec/dummy/db/migrate/20160801080612_add_most_recent_to_import_request_transitions.rb +1 -1
  166. data/spec/dummy/db/migrate/20160801080619_add_most_recent_to_resource_import_file_transitions.rb +1 -1
  167. data/spec/dummy/db/migrate/20160801080637_add_most_recent_to_resource_export_file_transitions.rb +1 -1
  168. data/spec/dummy/db/migrate/20160801080643_add_most_recent_to_agent_import_file_transitions.rb +1 -1
  169. data/spec/dummy/db/migrate/20160811102604_add_picture_width_to_picture_file.rb +1 -1
  170. data/spec/dummy/db/migrate/20160813191647_add_max_number_of_results_to_library_group.rb +1 -1
  171. data/spec/dummy/db/migrate/20160813191733_add_family_name_first_to_library_group.rb +1 -1
  172. data/spec/dummy/db/migrate/20160813192542_add_pub_year_facet_range_interval_to_library_group.rb +1 -1
  173. data/spec/dummy/db/migrate/20160813203039_add_user_id_to_library_group.rb +1 -1
  174. data/spec/dummy/db/migrate/20160820004638_add_attachment_attachment_to_carrier_types.rb +1 -1
  175. data/spec/dummy/db/migrate/20170305064014_add_csv_charset_conversion_to_library_group.rb +1 -1
  176. data/spec/dummy/db/migrate/20171014084528_add_header_logo_to_library_group.rb +1 -1
  177. data/spec/dummy/db/migrate/20171119051258_set_not_null_to_manifestation_id_on_items.rb +1 -1
  178. data/spec/dummy/db/migrate/20171126133835_rename_login_banner_to_old_login_banner.rb +1 -1
  179. data/spec/dummy/db/migrate/20171126135238_add_foreign_key_to_library_group_id_on_library.rb +1 -1
  180. data/spec/dummy/db/migrate/20180102162311_add_header_logo_meta_to_library_group.rb +1 -1
  181. data/spec/dummy/db/migrate/20180107160726_add_constraints_to_most_recent_for_user_import_file_transitions.rb +1 -1
  182. data/spec/dummy/db/migrate/20180107160740_add_constraints_to_most_recent_for_user_export_file_transitions.rb +1 -1
  183. data/spec/dummy/db/migrate/20180107161311_add_constraints_to_most_recent_for_agent_import_file_transitions.rb +1 -1
  184. data/spec/dummy/db/migrate/20180107161331_add_constraints_to_most_recent_for_resource_import_file_transitions.rb +1 -1
  185. data/spec/dummy/db/migrate/20180107161347_add_constraints_to_most_recent_for_resource_export_file_transitions.rb +1 -1
  186. data/spec/dummy/db/migrate/20180107161410_add_constraints_to_most_recent_for_import_request_transitions.rb +1 -1
  187. data/spec/dummy/db/schema.rb +581 -641
  188. data/spec/helpers/{manifestation_viewer_helper_spec.rb → application_helper_spec.rb} +2 -2
  189. metadata +32 -21
  190. data/spec/dummy/app/models/user.rb +0 -8
@@ -1,4 +1,4 @@
1
- class AddFullNameTranscriptionToProfile < ActiveRecord::Migration
1
+ class AddFullNameTranscriptionToProfile < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  add_column :profiles, :full_name_transcription, :text
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddDateOfBirthToProfile < ActiveRecord::Migration
1
+ class AddDateOfBirthToProfile < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  add_column :profiles, :date_of_birth, :datetime
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddForeignKeyToItemsReferencingManifestations < ActiveRecord::Migration
1
+ class AddForeignKeyToItemsReferencingManifestations < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  add_foreign_key :items, :manifestations
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddSettingsToLibraryGroup < ActiveRecord::Migration
1
+ class AddSettingsToLibraryGroup < ActiveRecord::Migration[4.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
1
+ class AddErrorMessageToUserImportResult < ActiveRecord::Migration[4.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
1
+ class CreateWithdraws < ActiveRecord::Migration[4.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 AddProfileIdToAgent < ActiveRecord::Migration
1
+ class AddProfileIdToAgent < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  add_column :agents, :profile_id, :integer
4
4
  add_index :agents, :profile_id
@@ -1,5 +1,5 @@
1
1
  # This migration comes from enju_library_engine (originally 20151213070943)
2
- class AddTranslationTableToLibraryGroup < ActiveRecord::Migration
2
+ class AddTranslationTableToLibraryGroup < ActiveRecord::Migration[4.2]
3
3
  def up
4
4
  if defined?(Globalize)
5
5
  LibraryGroup.create_translation_table!({
@@ -1,5 +1,5 @@
1
1
  # This migration comes from enju_library_engine (originally 20151213072705)
2
- class AddFooterBannerToLibraryGroup < ActiveRecord::Migration
2
+ class AddFooterBannerToLibraryGroup < ActiveRecord::Migration[4.2]
3
3
  def up
4
4
  if defined?(Globalize)
5
5
  LibraryGroup.add_translation_fields! footer_banner: :text
@@ -1,4 +1,4 @@
1
- class AddHtmlSnippetToLibraryGroup < ActiveRecord::Migration
1
+ class AddHtmlSnippetToLibraryGroup < ActiveRecord::Migration[4.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
1
+ class AddMostRecentToUserImportFileTransitions < ActiveRecord::Migration[4.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
1
+ class AddMostRecentToUserExportFileTransitions < ActiveRecord::Migration[4.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 AddMostRecentToImportRequestTransitions < ActiveRecord::Migration
1
+ class AddMostRecentToImportRequestTransitions < ActiveRecord::Migration[4.2]
2
2
  def up
3
3
  add_column :import_request_transitions, :most_recent, :boolean, null: true
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddMostRecentToResourceImportFileTransitions < ActiveRecord::Migration
1
+ class AddMostRecentToResourceImportFileTransitions < ActiveRecord::Migration[4.2]
2
2
  def up
3
3
  add_column :resource_import_file_transitions, :most_recent, :boolean, null: true
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddMostRecentToResourceExportFileTransitions < ActiveRecord::Migration
1
+ class AddMostRecentToResourceExportFileTransitions < ActiveRecord::Migration[4.2]
2
2
  def up
3
3
  add_column :resource_export_file_transitions, :most_recent, :boolean, null: true
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddMostRecentToAgentImportFileTransitions < ActiveRecord::Migration
1
+ class AddMostRecentToAgentImportFileTransitions < ActiveRecord::Migration[4.2]
2
2
  def up
3
3
  add_column :agent_import_file_transitions, :most_recent, :boolean, null: true
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddPictureWidthToPictureFile < ActiveRecord::Migration
1
+ class AddPictureWidthToPictureFile < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  add_column :picture_files, :picture_width, :integer
4
4
  add_column :picture_files, :picture_height, :integer
@@ -1,4 +1,4 @@
1
- class AddMaxNumberOfResultsToLibraryGroup < ActiveRecord::Migration
1
+ class AddMaxNumberOfResultsToLibraryGroup < ActiveRecord::Migration[4.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
1
+ class AddFamilyNameFirstToLibraryGroup < ActiveRecord::Migration[4.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
1
+ class AddPubYearFacetRangeIntervalToLibraryGroup < ActiveRecord::Migration[4.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
1
+ class AddUserIdToLibraryGroup < ActiveRecord::Migration[4.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 AddAttachmentAttachmentToCarrierTypes < ActiveRecord::Migration
1
+ class AddAttachmentAttachmentToCarrierTypes < ActiveRecord::Migration[4.2]
2
2
  def self.up
3
3
  change_table :carrier_types do |t|
4
4
  t.attachment :attachment
@@ -1,4 +1,4 @@
1
- class AddCsvCharsetConversionToLibraryGroup < ActiveRecord::Migration
1
+ class AddCsvCharsetConversionToLibraryGroup < ActiveRecord::Migration[4.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
1
+ class AddHeaderLogoToLibraryGroup < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  add_attachment :library_groups, :header_logo
4
4
  end
@@ -1,4 +1,4 @@
1
- class SetNotNullToManifestationIdOnItems < ActiveRecord::Migration
1
+ class SetNotNullToManifestationIdOnItems < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  change_column_null :items, :manifestation_id, false
4
4
  end
@@ -1,4 +1,4 @@
1
- class RenameLoginBannerToOldLoginBanner < ActiveRecord::Migration
1
+ class RenameLoginBannerToOldLoginBanner < ActiveRecord::Migration[4.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
1
+ class AddForeignKeyToLibraryGroupIdOnLibrary < ActiveRecord::Migration[4.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
1
+ class AddHeaderLogoMetaToLibraryGroup < ActiveRecord::Migration[4.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
1
+ class AddConstraintsToMostRecentForUserImportFileTransitions < ActiveRecord::Migration[4.2]
2
2
  disable_ddl_transaction!
3
3
 
4
4
  def up
@@ -1,4 +1,4 @@
1
- class AddConstraintsToMostRecentForUserExportFileTransitions < ActiveRecord::Migration
1
+ class AddConstraintsToMostRecentForUserExportFileTransitions < ActiveRecord::Migration[4.2]
2
2
  disable_ddl_transaction!
3
3
 
4
4
  def up
@@ -1,4 +1,4 @@
1
- class AddConstraintsToMostRecentForAgentImportFileTransitions < ActiveRecord::Migration
1
+ class AddConstraintsToMostRecentForAgentImportFileTransitions < ActiveRecord::Migration[4.2]
2
2
  disable_ddl_transaction!
3
3
 
4
4
  def up
@@ -1,4 +1,4 @@
1
- class AddConstraintsToMostRecentForResourceImportFileTransitions < ActiveRecord::Migration
1
+ class AddConstraintsToMostRecentForResourceImportFileTransitions < ActiveRecord::Migration[4.2]
2
2
  disable_ddl_transaction!
3
3
 
4
4
  def up
@@ -1,4 +1,4 @@
1
- class AddConstraintsToMostRecentForResourceExportFileTransitions < ActiveRecord::Migration
1
+ class AddConstraintsToMostRecentForResourceExportFileTransitions < ActiveRecord::Migration[4.2]
2
2
  disable_ddl_transaction!
3
3
 
4
4
  def up
@@ -1,4 +1,4 @@
1
- class AddConstraintsToMostRecentForImportRequestTransitions < ActiveRecord::Migration
1
+ class AddConstraintsToMostRecentForImportRequestTransitions < ActiveRecord::Migration[4.2]
2
2
  disable_ddl_transaction!
3
3
 
4
4
  def up
@@ -1,4 +1,3 @@
1
- # encoding: UTF-8
2
1
  # This file is auto-generated from the current state of the database. Instead
3
2
  # of editing this file, please use the migrations feature of Active Record to
4
3
  # incrementally modify your database, and then regenerate this schema definition.
@@ -14,1015 +13,956 @@
14
13
  ActiveRecord::Schema.define(version: 20180107161410) do
15
14
 
16
15
  create_table "accepts", force: :cascade do |t|
17
- t.integer "basket_id"
18
- t.integer "item_id"
19
- t.integer "librarian_id"
16
+ t.integer "basket_id"
17
+ t.integer "item_id"
18
+ t.integer "librarian_id"
20
19
  t.datetime "created_at"
21
20
  t.datetime "updated_at"
21
+ t.index ["basket_id"], name: "index_accepts_on_basket_id"
22
+ t.index ["item_id"], name: "index_accepts_on_item_id"
22
23
  end
23
24
 
24
- add_index "accepts", ["basket_id"], name: "index_accepts_on_basket_id"
25
- add_index "accepts", ["item_id"], name: "index_accepts_on_item_id"
26
- add_index "accepts", ["librarian_id"], name: "index_accepts_on_librarian_id"
27
-
28
25
  create_table "agent_import_file_transitions", force: :cascade do |t|
29
- t.string "to_state"
30
- t.text "metadata", default: "{}"
31
- t.integer "sort_key"
32
- t.integer "agent_import_file_id"
26
+ t.string "to_state"
27
+ t.text "metadata", default: "{}"
28
+ t.integer "sort_key"
29
+ t.integer "agent_import_file_id"
33
30
  t.datetime "created_at"
34
31
  t.datetime "updated_at"
35
- t.boolean "most_recent", null: false
32
+ t.boolean "most_recent", null: false
33
+ t.index ["agent_import_file_id", "most_recent"], name: "index_agent_import_file_transitions_parent_most_recent", unique: true, where: "most_recent"
34
+ t.index ["agent_import_file_id"], name: "index_agent_import_file_transitions_on_agent_import_file_id"
35
+ t.index ["sort_key", "agent_import_file_id"], name: "index_agent_import_file_transitions_on_sort_key_and_file_id", unique: true
36
36
  end
37
37
 
38
- add_index "agent_import_file_transitions", ["agent_import_file_id", "most_recent"], name: "index_agent_import_file_transitions_parent_most_recent", unique: true
39
- add_index "agent_import_file_transitions", ["agent_import_file_id"], name: "index_agent_import_file_transitions_on_agent_import_file_id"
40
- 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
41
-
42
38
  create_table "agent_import_files", force: :cascade do |t|
43
- t.integer "parent_id"
44
- t.string "content_type"
45
- t.integer "size"
46
- t.integer "user_id"
47
- t.text "note"
39
+ t.integer "parent_id"
40
+ t.string "content_type"
41
+ t.integer "size"
42
+ t.integer "user_id"
43
+ t.text "note"
48
44
  t.datetime "executed_at"
49
- t.string "agent_import_file_name"
50
- t.string "agent_import_content_type"
51
- t.integer "agent_import_file_size"
45
+ t.string "agent_import_file_name"
46
+ t.string "agent_import_content_type"
47
+ t.integer "agent_import_file_size"
52
48
  t.datetime "agent_import_updated_at"
53
49
  t.datetime "created_at"
54
50
  t.datetime "updated_at"
55
- t.string "agent_import_fingerprint"
56
- t.text "error_message"
57
- t.string "edit_mode"
58
- t.string "user_encoding"
51
+ t.string "agent_import_fingerprint"
52
+ t.text "error_message"
53
+ t.string "edit_mode"
54
+ t.string "user_encoding"
55
+ t.index ["parent_id"], name: "index_agent_import_files_on_parent_id"
56
+ t.index ["user_id"], name: "index_agent_import_files_on_user_id"
59
57
  end
60
58
 
61
- add_index "agent_import_files", ["parent_id"], name: "index_agent_import_files_on_parent_id"
62
- add_index "agent_import_files", ["user_id"], name: "index_agent_import_files_on_user_id"
63
-
64
59
  create_table "agent_import_results", force: :cascade do |t|
65
- t.integer "agent_import_file_id"
66
- t.integer "agent_id"
67
- t.text "body"
60
+ t.integer "agent_import_file_id"
61
+ t.integer "agent_id"
62
+ t.text "body"
68
63
  t.datetime "created_at"
69
64
  t.datetime "updated_at"
70
65
  end
71
66
 
72
67
  create_table "agent_merge_lists", force: :cascade do |t|
73
- t.string "title"
68
+ t.string "title"
74
69
  t.datetime "created_at"
75
70
  t.datetime "updated_at"
76
71
  end
77
72
 
78
73
  create_table "agent_merges", force: :cascade do |t|
79
- t.integer "agent_id", null: false
80
- t.integer "agent_merge_list_id", null: false
74
+ t.integer "agent_id", null: false
75
+ t.integer "agent_merge_list_id", null: false
81
76
  t.datetime "created_at"
82
77
  t.datetime "updated_at"
78
+ t.index ["agent_id"], name: "index_agent_merges_on_agent_id"
79
+ t.index ["agent_merge_list_id"], name: "index_agent_merges_on_agent_merge_list_id"
83
80
  end
84
81
 
85
- add_index "agent_merges", ["agent_id"], name: "index_agent_merges_on_agent_id"
86
- add_index "agent_merges", ["agent_merge_list_id"], name: "index_agent_merges_on_agent_merge_list_id"
87
-
88
82
  create_table "agent_relationship_types", force: :cascade do |t|
89
- t.string "name", null: false
90
- t.text "display_name"
91
- t.text "note"
92
- t.integer "position"
83
+ t.string "name", null: false
84
+ t.text "display_name"
85
+ t.text "note"
86
+ t.integer "position"
93
87
  t.datetime "created_at"
94
88
  t.datetime "updated_at"
95
89
  end
96
90
 
97
91
  create_table "agent_relationships", force: :cascade do |t|
98
- t.integer "parent_id"
99
- t.integer "child_id"
100
- t.integer "agent_relationship_type_id"
92
+ t.integer "parent_id"
93
+ t.integer "child_id"
94
+ t.integer "agent_relationship_type_id"
101
95
  t.datetime "created_at"
102
96
  t.datetime "updated_at"
103
- t.integer "position"
97
+ t.integer "position"
98
+ t.index ["child_id"], name: "index_agent_relationships_on_child_id"
99
+ t.index ["parent_id"], name: "index_agent_relationships_on_parent_id"
104
100
  end
105
101
 
106
- add_index "agent_relationships", ["child_id"], name: "index_agent_relationships_on_child_id"
107
- add_index "agent_relationships", ["parent_id"], name: "index_agent_relationships_on_parent_id"
108
-
109
102
  create_table "agent_types", force: :cascade do |t|
110
- t.string "name", null: false
111
- t.text "display_name"
112
- t.text "note"
113
- t.integer "position"
103
+ t.string "name", null: false
104
+ t.text "display_name"
105
+ t.text "note"
106
+ t.integer "position"
114
107
  t.datetime "created_at"
115
108
  t.datetime "updated_at"
116
109
  end
117
110
 
118
111
  create_table "agents", force: :cascade do |t|
119
- t.string "last_name"
120
- t.string "middle_name"
121
- t.string "first_name"
122
- t.string "last_name_transcription"
123
- t.string "middle_name_transcription"
124
- t.string "first_name_transcription"
125
- t.string "corporate_name"
126
- t.string "corporate_name_transcription"
127
- t.string "full_name"
128
- t.text "full_name_transcription"
129
- t.text "full_name_alternative"
112
+ t.string "last_name"
113
+ t.string "middle_name"
114
+ t.string "first_name"
115
+ t.string "last_name_transcription"
116
+ t.string "middle_name_transcription"
117
+ t.string "first_name_transcription"
118
+ t.string "corporate_name"
119
+ t.string "corporate_name_transcription"
120
+ t.string "full_name"
121
+ t.text "full_name_transcription"
122
+ t.text "full_name_alternative"
130
123
  t.datetime "created_at"
131
124
  t.datetime "updated_at"
132
125
  t.datetime "deleted_at"
133
- t.string "zip_code_1"
134
- t.string "zip_code_2"
135
- t.text "address_1"
136
- t.text "address_2"
137
- t.text "address_1_note"
138
- t.text "address_2_note"
139
- t.string "telephone_number_1"
140
- t.string "telephone_number_2"
141
- t.string "fax_number_1"
142
- t.string "fax_number_2"
143
- t.text "other_designation"
144
- t.text "place"
145
- t.string "postal_code"
146
- t.text "street"
147
- t.text "locality"
148
- t.text "region"
126
+ t.string "zip_code_1"
127
+ t.string "zip_code_2"
128
+ t.text "address_1"
129
+ t.text "address_2"
130
+ t.text "address_1_note"
131
+ t.text "address_2_note"
132
+ t.string "telephone_number_1"
133
+ t.string "telephone_number_2"
134
+ t.string "fax_number_1"
135
+ t.string "fax_number_2"
136
+ t.text "other_designation"
137
+ t.text "place"
138
+ t.string "postal_code"
139
+ t.text "street"
140
+ t.text "locality"
141
+ t.text "region"
149
142
  t.datetime "date_of_birth"
150
143
  t.datetime "date_of_death"
151
- t.integer "language_id", default: 1, null: false
152
- t.integer "country_id", default: 1, null: false
153
- t.integer "agent_type_id", default: 1, null: false
154
- t.integer "lock_version", default: 0, null: false
155
- t.text "note"
156
- t.integer "required_role_id", default: 1, null: false
157
- t.integer "required_score", default: 0, null: false
158
- t.text "email"
159
- t.text "url"
160
- t.text "full_name_alternative_transcription"
161
- t.string "birth_date"
162
- t.string "death_date"
163
- t.string "agent_identifier"
164
- t.integer "profile_id"
165
- end
166
-
167
- add_index "agents", ["agent_identifier"], name: "index_agents_on_agent_identifier"
168
- add_index "agents", ["country_id"], name: "index_agents_on_country_id"
169
- add_index "agents", ["full_name"], name: "index_agents_on_full_name"
170
- add_index "agents", ["language_id"], name: "index_agents_on_language_id"
171
- add_index "agents", ["profile_id"], name: "index_agents_on_profile_id"
172
- add_index "agents", ["required_role_id"], name: "index_agents_on_required_role_id"
144
+ t.integer "language_id", default: 1, null: false
145
+ t.integer "country_id", default: 1, null: false
146
+ t.integer "agent_type_id", default: 1, null: false
147
+ t.integer "lock_version", default: 0, null: false
148
+ t.text "note"
149
+ t.integer "required_role_id", default: 1, null: false
150
+ t.integer "required_score", default: 0, null: false
151
+ t.text "email"
152
+ t.text "url"
153
+ t.text "full_name_alternative_transcription"
154
+ t.string "birth_date"
155
+ t.string "death_date"
156
+ t.string "agent_identifier"
157
+ t.integer "profile_id"
158
+ t.index ["agent_identifier"], name: "index_agents_on_agent_identifier"
159
+ t.index ["country_id"], name: "index_agents_on_country_id"
160
+ t.index ["full_name"], name: "index_agents_on_full_name"
161
+ t.index ["language_id"], name: "index_agents_on_language_id"
162
+ t.index ["profile_id"], name: "index_agents_on_profile_id"
163
+ t.index ["required_role_id"], name: "index_agents_on_required_role_id"
164
+ end
173
165
 
174
166
  create_table "baskets", force: :cascade do |t|
175
- t.integer "user_id"
176
- t.text "note"
177
- t.integer "lock_version", default: 0, null: false
167
+ t.integer "user_id"
168
+ t.text "note"
169
+ t.integer "lock_version", default: 0, null: false
178
170
  t.datetime "created_at"
179
171
  t.datetime "updated_at"
172
+ t.index ["user_id"], name: "index_baskets_on_user_id"
180
173
  end
181
174
 
182
- add_index "baskets", ["user_id"], name: "index_baskets_on_user_id"
183
-
184
175
  create_table "bookstores", force: :cascade do |t|
185
- t.text "name", null: false
186
- t.string "zip_code"
187
- t.text "address"
188
- t.text "note"
189
- t.string "telephone_number"
190
- t.string "fax_number"
191
- t.string "url"
192
- t.integer "position"
176
+ t.text "name", null: false
177
+ t.string "zip_code"
178
+ t.text "address"
179
+ t.text "note"
180
+ t.string "telephone_number"
181
+ t.string "fax_number"
182
+ t.string "url"
183
+ t.integer "position"
193
184
  t.datetime "deleted_at"
194
185
  t.datetime "created_at"
195
186
  t.datetime "updated_at"
196
187
  end
197
188
 
198
189
  create_table "budget_types", force: :cascade do |t|
199
- t.string "name"
200
- t.text "display_name"
201
- t.text "note"
202
- t.integer "position"
190
+ t.string "name"
191
+ t.text "display_name"
192
+ t.text "note"
193
+ t.integer "position"
203
194
  t.datetime "created_at"
204
195
  t.datetime "updated_at"
205
196
  end
206
197
 
207
198
  create_table "carrier_types", force: :cascade do |t|
208
- t.string "name", null: false
209
- t.text "display_name"
210
- t.text "note"
211
- t.integer "position"
199
+ t.string "name", null: false
200
+ t.text "display_name"
201
+ t.text "note"
202
+ t.integer "position"
212
203
  t.datetime "created_at"
213
204
  t.datetime "updated_at"
214
- t.string "attachment_file_name"
215
- t.string "attachment_content_type"
216
- t.integer "attachment_file_size"
205
+ t.string "attachment_file_name"
206
+ t.string "attachment_content_type"
207
+ t.integer "attachment_file_size"
217
208
  t.datetime "attachment_updated_at"
218
209
  end
219
210
 
220
211
  create_table "colors", force: :cascade do |t|
221
- t.integer "library_group_id"
222
- t.string "property"
223
- t.string "code"
224
- t.integer "position"
212
+ t.integer "library_group_id"
213
+ t.string "property"
214
+ t.string "code"
215
+ t.integer "position"
225
216
  t.datetime "created_at"
226
217
  t.datetime "updated_at"
218
+ t.index ["library_group_id"], name: "index_colors_on_library_group_id"
227
219
  end
228
220
 
229
- add_index "colors", ["library_group_id"], name: "index_colors_on_library_group_id"
230
-
231
221
  create_table "content_types", force: :cascade do |t|
232
- t.string "name", null: false
233
- t.text "display_name"
234
- t.text "note"
235
- t.integer "position"
222
+ t.string "name", null: false
223
+ t.text "display_name"
224
+ t.text "note"
225
+ t.integer "position"
236
226
  t.datetime "created_at"
237
227
  t.datetime "updated_at"
238
228
  end
239
229
 
240
230
  create_table "countries", force: :cascade do |t|
241
- t.string "name", null: false
242
- t.text "display_name"
243
- t.string "alpha_2"
244
- t.string "alpha_3"
245
- t.string "numeric_3"
246
- t.text "note"
231
+ t.string "name", null: false
232
+ t.text "display_name"
233
+ t.string "alpha_2"
234
+ t.string "alpha_3"
235
+ t.string "numeric_3"
236
+ t.text "note"
247
237
  t.integer "position"
238
+ t.index ["alpha_2"], name: "index_countries_on_alpha_2"
239
+ t.index ["alpha_3"], name: "index_countries_on_alpha_3"
240
+ t.index ["name"], name: "index_countries_on_name"
241
+ t.index ["numeric_3"], name: "index_countries_on_numeric_3"
248
242
  end
249
243
 
250
- add_index "countries", ["alpha_2"], name: "index_countries_on_alpha_2"
251
- add_index "countries", ["alpha_3"], name: "index_countries_on_alpha_3"
252
- add_index "countries", ["name"], name: "index_countries_on_name"
253
- add_index "countries", ["numeric_3"], name: "index_countries_on_numeric_3"
254
-
255
244
  create_table "create_types", force: :cascade do |t|
256
- t.string "name"
257
- t.text "display_name"
258
- t.text "note"
259
- t.integer "position"
245
+ t.string "name"
246
+ t.text "display_name"
247
+ t.text "note"
248
+ t.integer "position"
260
249
  t.datetime "created_at"
261
250
  t.datetime "updated_at"
262
251
  end
263
252
 
264
253
  create_table "creates", force: :cascade do |t|
265
- t.integer "agent_id", null: false
266
- t.integer "work_id", null: false
267
- t.integer "position"
254
+ t.integer "agent_id", null: false
255
+ t.integer "work_id", null: false
256
+ t.integer "position"
268
257
  t.datetime "created_at"
269
258
  t.datetime "updated_at"
270
- t.integer "create_type_id"
259
+ t.integer "create_type_id"
260
+ t.index ["agent_id"], name: "index_creates_on_agent_id"
261
+ t.index ["work_id"], name: "index_creates_on_work_id"
271
262
  end
272
263
 
273
- add_index "creates", ["agent_id"], name: "index_creates_on_agent_id"
274
- add_index "creates", ["work_id"], name: "index_creates_on_work_id"
275
-
276
264
  create_table "donates", force: :cascade do |t|
277
- t.integer "agent_id", null: false
278
- t.integer "item_id", null: false
265
+ t.integer "agent_id", null: false
266
+ t.integer "item_id", null: false
279
267
  t.datetime "created_at"
280
268
  t.datetime "updated_at"
269
+ t.index ["agent_id"], name: "index_donates_on_agent_id"
270
+ t.index ["item_id"], name: "index_donates_on_item_id"
281
271
  end
282
272
 
283
- add_index "donates", ["agent_id"], name: "index_donates_on_agent_id"
284
- add_index "donates", ["item_id"], name: "index_donates_on_item_id"
285
-
286
273
  create_table "exemplifies", force: :cascade do |t|
287
- t.integer "manifestation_id", null: false
288
- t.integer "item_id", null: false
289
- t.integer "position"
274
+ t.integer "manifestation_id", null: false
275
+ t.integer "item_id", null: false
276
+ t.integer "position"
290
277
  t.datetime "created_at"
291
278
  t.datetime "updated_at"
279
+ t.index ["item_id"], name: "index_exemplifies_on_item_id", unique: true
280
+ t.index ["manifestation_id"], name: "index_exemplifies_on_manifestation_id"
292
281
  end
293
282
 
294
- add_index "exemplifies", ["item_id"], name: "index_exemplifies_on_item_id", unique: true
295
- add_index "exemplifies", ["manifestation_id"], name: "index_exemplifies_on_manifestation_id"
296
-
297
283
  create_table "form_of_works", force: :cascade do |t|
298
- t.string "name", null: false
299
- t.text "display_name"
300
- t.text "note"
301
- t.integer "position"
284
+ t.string "name", null: false
285
+ t.text "display_name"
286
+ t.text "note"
287
+ t.integer "position"
302
288
  t.datetime "created_at"
303
289
  t.datetime "updated_at"
304
290
  end
305
291
 
306
292
  create_table "frequencies", force: :cascade do |t|
307
- t.string "name", null: false
308
- t.text "display_name"
309
- t.text "note"
310
- t.integer "position"
293
+ t.string "name", null: false
294
+ t.text "display_name"
295
+ t.text "note"
296
+ t.integer "position"
311
297
  t.datetime "created_at"
312
298
  t.datetime "updated_at"
313
299
  end
314
300
 
315
301
  create_table "identifier_types", force: :cascade do |t|
316
- t.string "name"
317
- t.text "display_name"
318
- t.text "note"
319
- t.integer "position"
302
+ t.string "name"
303
+ t.text "display_name"
304
+ t.text "note"
305
+ t.integer "position"
320
306
  t.datetime "created_at"
321
307
  t.datetime "updated_at"
322
308
  end
323
309
 
324
310
  create_table "identifiers", force: :cascade do |t|
325
- t.string "body", null: false
326
- t.integer "identifier_type_id", null: false
327
- t.integer "manifestation_id"
328
- t.boolean "primary"
329
- t.integer "position"
311
+ t.string "body", null: false
312
+ t.integer "identifier_type_id", null: false
313
+ t.integer "manifestation_id"
314
+ t.boolean "primary"
315
+ t.integer "position"
330
316
  t.datetime "created_at"
331
317
  t.datetime "updated_at"
318
+ t.index ["body", "identifier_type_id"], name: "index_identifiers_on_body_and_identifier_type_id"
319
+ t.index ["manifestation_id"], name: "index_identifiers_on_manifestation_id"
332
320
  end
333
321
 
334
- add_index "identifiers", ["body", "identifier_type_id"], name: "index_identifiers_on_body_and_identifier_type_id"
335
- add_index "identifiers", ["manifestation_id"], name: "index_identifiers_on_manifestation_id"
336
-
337
322
  create_table "import_request_transitions", force: :cascade do |t|
338
- t.string "to_state"
339
- t.text "metadata", default: "{}"
340
- t.integer "sort_key"
341
- t.integer "import_request_id"
323
+ t.string "to_state"
324
+ t.text "metadata", default: "{}"
325
+ t.integer "sort_key"
326
+ t.integer "import_request_id"
342
327
  t.datetime "created_at"
343
328
  t.datetime "updated_at"
344
- t.boolean "most_recent", null: false
329
+ t.boolean "most_recent", null: false
330
+ t.index ["import_request_id", "most_recent"], name: "index_import_request_transitions_parent_most_recent", unique: true, where: "most_recent"
331
+ t.index ["import_request_id"], name: "index_import_request_transitions_on_import_request_id"
332
+ t.index ["sort_key", "import_request_id"], name: "index_import_request_transitions_on_sort_key_and_request_id", unique: true
345
333
  end
346
334
 
347
- add_index "import_request_transitions", ["import_request_id", "most_recent"], name: "index_import_request_transitions_parent_most_recent", unique: true
348
- add_index "import_request_transitions", ["import_request_id"], name: "index_import_request_transitions_on_import_request_id"
349
- add_index "import_request_transitions", ["sort_key", "import_request_id"], name: "index_import_request_transitions_on_sort_key_and_request_id", unique: true
350
-
351
335
  create_table "import_requests", force: :cascade do |t|
352
- t.string "isbn"
353
- t.integer "manifestation_id"
354
- t.integer "user_id"
336
+ t.string "isbn"
337
+ t.integer "manifestation_id"
338
+ t.integer "user_id"
355
339
  t.datetime "created_at"
356
340
  t.datetime "updated_at"
341
+ t.index ["isbn"], name: "index_import_requests_on_isbn"
342
+ t.index ["manifestation_id"], name: "index_import_requests_on_manifestation_id"
343
+ t.index ["user_id"], name: "index_import_requests_on_user_id"
357
344
  end
358
345
 
359
- add_index "import_requests", ["isbn"], name: "index_import_requests_on_isbn"
360
- add_index "import_requests", ["manifestation_id"], name: "index_import_requests_on_manifestation_id"
361
- add_index "import_requests", ["user_id"], name: "index_import_requests_on_user_id"
362
-
363
346
  create_table "items", force: :cascade do |t|
364
- t.string "call_number"
365
- t.string "item_identifier"
347
+ t.string "call_number"
348
+ t.string "item_identifier"
366
349
  t.datetime "created_at"
367
350
  t.datetime "updated_at"
368
351
  t.datetime "deleted_at"
369
- t.integer "shelf_id", default: 1, null: false
370
- t.boolean "include_supplements", default: false, null: false
371
- t.text "note"
372
- t.string "url"
373
- t.integer "price"
374
- t.integer "lock_version", default: 0, null: false
375
- t.integer "required_role_id", default: 1, null: false
376
- t.integer "required_score", default: 0, null: false
352
+ t.integer "shelf_id", default: 1, null: false
353
+ t.boolean "include_supplements", default: false, null: false
354
+ t.text "note"
355
+ t.string "url"
356
+ t.integer "price"
357
+ t.integer "lock_version", default: 0, null: false
358
+ t.integer "required_role_id", default: 1, null: false
359
+ t.integer "required_score", default: 0, null: false
377
360
  t.datetime "acquired_at"
378
- t.integer "bookstore_id"
379
- t.integer "budget_type_id"
380
- t.string "binding_item_identifier"
381
- t.string "binding_call_number"
361
+ t.integer "bookstore_id"
362
+ t.integer "budget_type_id"
363
+ t.string "binding_item_identifier"
364
+ t.string "binding_call_number"
382
365
  t.datetime "binded_at"
383
- t.integer "manifestation_id", null: false
366
+ t.integer "manifestation_id", null: false
367
+ t.index ["binding_item_identifier"], name: "index_items_on_binding_item_identifier"
368
+ t.index ["bookstore_id"], name: "index_items_on_bookstore_id"
369
+ t.index ["item_identifier"], name: "index_items_on_item_identifier"
370
+ t.index ["manifestation_id"], name: "index_items_on_manifestation_id"
371
+ t.index ["required_role_id"], name: "index_items_on_required_role_id"
372
+ t.index ["shelf_id"], name: "index_items_on_shelf_id"
384
373
  end
385
374
 
386
- add_index "items", ["binding_item_identifier"], name: "index_items_on_binding_item_identifier"
387
- add_index "items", ["bookstore_id"], name: "index_items_on_bookstore_id"
388
- add_index "items", ["item_identifier"], name: "index_items_on_item_identifier"
389
- add_index "items", ["manifestation_id"], name: "index_items_on_manifestation_id"
390
- add_index "items", ["required_role_id"], name: "index_items_on_required_role_id"
391
- add_index "items", ["shelf_id"], name: "index_items_on_shelf_id"
392
-
393
375
  create_table "languages", force: :cascade do |t|
394
- t.string "name", null: false
395
- t.string "native_name"
396
- t.text "display_name"
397
- t.string "iso_639_1"
398
- t.string "iso_639_2"
399
- t.string "iso_639_3"
400
- t.text "note"
376
+ t.string "name", null: false
377
+ t.string "native_name"
378
+ t.text "display_name"
379
+ t.string "iso_639_1"
380
+ t.string "iso_639_2"
381
+ t.string "iso_639_3"
382
+ t.text "note"
401
383
  t.integer "position"
384
+ t.index ["iso_639_1"], name: "index_languages_on_iso_639_1"
385
+ t.index ["iso_639_2"], name: "index_languages_on_iso_639_2"
386
+ t.index ["iso_639_3"], name: "index_languages_on_iso_639_3"
387
+ t.index ["name"], name: "index_languages_on_name", unique: true
402
388
  end
403
389
 
404
- add_index "languages", ["iso_639_1"], name: "index_languages_on_iso_639_1"
405
- add_index "languages", ["iso_639_2"], name: "index_languages_on_iso_639_2"
406
- add_index "languages", ["iso_639_3"], name: "index_languages_on_iso_639_3"
407
- add_index "languages", ["name"], name: "index_languages_on_name", unique: true
408
-
409
390
  create_table "libraries", force: :cascade do |t|
410
- t.string "name", null: false
411
- t.text "display_name"
412
- t.string "short_display_name", null: false
413
- t.string "zip_code"
414
- t.text "street"
415
- t.text "locality"
416
- t.text "region"
417
- t.string "telephone_number_1"
418
- t.string "telephone_number_2"
419
- t.string "fax_number"
420
- t.text "note"
421
- t.integer "call_number_rows", default: 1, null: false
422
- t.string "call_number_delimiter", default: "|", null: false
423
- t.integer "library_group_id", null: false
424
- t.integer "users_count", default: 0, null: false
425
- t.integer "position"
426
- t.integer "country_id"
391
+ t.string "name", null: false
392
+ t.text "display_name"
393
+ t.string "short_display_name", null: false
394
+ t.string "zip_code"
395
+ t.text "street"
396
+ t.text "locality"
397
+ t.text "region"
398
+ t.string "telephone_number_1"
399
+ t.string "telephone_number_2"
400
+ t.string "fax_number"
401
+ t.text "note"
402
+ t.integer "call_number_rows", default: 1, null: false
403
+ t.string "call_number_delimiter", default: "|", null: false
404
+ t.integer "library_group_id", default: 1, null: false
405
+ t.integer "users_count", default: 0, null: false
406
+ t.integer "position"
407
+ t.integer "country_id"
427
408
  t.datetime "created_at"
428
409
  t.datetime "updated_at"
429
410
  t.datetime "deleted_at"
430
- t.text "opening_hour"
431
- t.string "isil"
432
- t.float "latitude"
433
- t.float "longitude"
411
+ t.text "opening_hour"
412
+ t.string "isil"
413
+ t.float "latitude"
414
+ t.float "longitude"
415
+ t.index ["library_group_id"], name: "index_libraries_on_library_group_id"
416
+ t.index ["name"], name: "index_libraries_on_name", unique: true
434
417
  end
435
418
 
436
- add_index "libraries", ["library_group_id"], name: "index_libraries_on_library_group_id"
437
- add_index "libraries", ["name"], name: "index_libraries_on_name"
438
-
439
419
  create_table "library_group_translations", force: :cascade do |t|
440
- t.integer "library_group_id", null: false
441
- t.string "locale", null: false
442
- t.datetime "created_at", null: false
443
- t.datetime "updated_at", null: false
444
- t.text "login_banner"
445
- t.text "footer_banner"
420
+ t.integer "library_group_id", null: false
421
+ t.string "locale", null: false
422
+ t.datetime "created_at", null: false
423
+ t.datetime "updated_at", null: false
424
+ t.text "login_banner"
425
+ t.text "footer_banner"
426
+ t.index ["library_group_id"], name: "index_library_group_translations_on_library_group_id"
427
+ t.index ["locale"], name: "index_library_group_translations_on_locale"
446
428
  end
447
429
 
448
- add_index "library_group_translations", ["library_group_id"], name: "index_library_group_translations_on_library_group_id"
449
- add_index "library_group_translations", ["locale"], name: "index_library_group_translations_on_locale"
450
-
451
430
  create_table "library_groups", force: :cascade do |t|
452
- t.string "name", null: false
453
- t.text "display_name"
454
- t.string "short_name", null: false
455
- t.text "my_networks"
456
- t.text "old_login_banner"
457
- t.text "note"
458
- t.integer "country_id"
459
- t.integer "position"
460
- t.datetime "created_at"
461
- t.datetime "updated_at"
462
- t.text "admin_networks"
463
- t.string "url", default: "http://localhost:3000/"
464
- t.text "settings"
465
- t.text "html_snippet"
466
- t.string "book_jacket_source"
467
- t.integer "max_number_of_results", default: 500
468
- t.boolean "family_name_first", default: true
469
- t.string "screenshot_generator"
470
- t.integer "pub_year_facet_range_interval", default: 10
471
- t.integer "user_id"
472
- t.boolean "csv_charset_conversion", default: false, null: false
473
- t.string "header_logo_file_name"
474
- t.string "header_logo_content_type"
475
- t.integer "header_logo_file_size"
431
+ t.string "name", null: false
432
+ t.text "display_name"
433
+ t.string "short_name", null: false
434
+ t.text "my_networks"
435
+ t.text "old_login_banner"
436
+ t.text "note"
437
+ t.integer "country_id"
438
+ t.integer "position"
439
+ t.datetime "created_at"
440
+ t.datetime "updated_at"
441
+ t.text "admin_networks"
442
+ t.string "url", default: "http://localhost:3000/"
443
+ t.text "settings"
444
+ t.text "html_snippet"
445
+ t.string "book_jacket_source"
446
+ t.integer "max_number_of_results", default: 500
447
+ t.boolean "family_name_first", default: true
448
+ t.string "screenshot_generator"
449
+ t.integer "pub_year_facet_range_interval", default: 10
450
+ t.integer "user_id"
451
+ t.boolean "csv_charset_conversion", default: false, null: false
452
+ t.string "header_logo_file_name"
453
+ t.string "header_logo_content_type"
454
+ t.integer "header_logo_file_size"
476
455
  t.datetime "header_logo_updated_at"
477
- t.text "header_logo_meta"
456
+ t.text "header_logo_meta"
457
+ t.index ["short_name"], name: "index_library_groups_on_short_name"
458
+ t.index ["user_id"], name: "index_library_groups_on_user_id"
478
459
  end
479
460
 
480
- add_index "library_groups", ["short_name"], name: "index_library_groups_on_short_name"
481
- add_index "library_groups", ["user_id"], name: "index_library_groups_on_user_id"
482
-
483
461
  create_table "licenses", force: :cascade do |t|
484
- t.string "name", null: false
485
- t.string "display_name"
486
- t.text "note"
487
- t.integer "position"
462
+ t.string "name", null: false
463
+ t.string "display_name"
464
+ t.text "note"
465
+ t.integer "position"
488
466
  t.datetime "created_at"
489
467
  t.datetime "updated_at"
490
468
  end
491
469
 
492
470
  create_table "manifestation_relationship_types", force: :cascade do |t|
493
- t.string "name", null: false
494
- t.text "display_name"
495
- t.text "note"
496
- t.integer "position"
471
+ t.string "name", null: false
472
+ t.text "display_name"
473
+ t.text "note"
474
+ t.integer "position"
497
475
  t.datetime "created_at"
498
476
  t.datetime "updated_at"
499
477
  end
500
478
 
501
479
  create_table "manifestation_relationships", force: :cascade do |t|
502
- t.integer "parent_id"
503
- t.integer "child_id"
504
- t.integer "manifestation_relationship_type_id"
480
+ t.integer "parent_id"
481
+ t.integer "child_id"
482
+ t.integer "manifestation_relationship_type_id"
505
483
  t.datetime "created_at"
506
484
  t.datetime "updated_at"
507
- t.integer "position"
485
+ t.integer "position"
486
+ t.index ["child_id"], name: "index_manifestation_relationships_on_child_id"
487
+ t.index ["parent_id"], name: "index_manifestation_relationships_on_parent_id"
508
488
  end
509
489
 
510
- add_index "manifestation_relationships", ["child_id"], name: "index_manifestation_relationships_on_child_id"
511
- add_index "manifestation_relationships", ["parent_id"], name: "index_manifestation_relationships_on_parent_id"
512
-
513
490
  create_table "manifestations", force: :cascade do |t|
514
- t.text "original_title", null: false
515
- t.text "title_alternative"
516
- t.text "title_transcription"
517
- t.string "classification_number"
518
- t.string "manifestation_identifier"
491
+ t.text "original_title", null: false
492
+ t.text "title_alternative"
493
+ t.text "title_transcription"
494
+ t.string "classification_number"
495
+ t.string "manifestation_identifier"
519
496
  t.datetime "date_of_publication"
520
497
  t.datetime "date_copyrighted"
521
498
  t.datetime "created_at"
522
499
  t.datetime "updated_at"
523
500
  t.datetime "deleted_at"
524
- t.string "access_address"
525
- t.integer "language_id", default: 1, null: false
526
- t.integer "carrier_type_id", default: 1, null: false
527
- t.integer "start_page"
528
- t.integer "end_page"
529
- t.integer "height"
530
- t.integer "width"
531
- t.integer "depth"
532
- t.integer "price"
533
- t.text "fulltext"
534
- t.string "volume_number_string"
535
- t.string "issue_number_string"
536
- t.string "serial_number_string"
537
- t.integer "edition"
538
- t.text "note"
539
- t.boolean "repository_content", default: false, null: false
540
- t.integer "lock_version", default: 0, null: false
541
- t.integer "required_role_id", default: 1, null: false
542
- t.integer "required_score", default: 0, null: false
543
- t.integer "frequency_id", default: 1, null: false
544
- t.boolean "subscription_master", default: false, null: false
545
- t.string "attachment_file_name"
546
- t.string "attachment_content_type"
547
- t.integer "attachment_file_size"
501
+ t.string "access_address"
502
+ t.integer "language_id", default: 1, null: false
503
+ t.integer "carrier_type_id", default: 1, null: false
504
+ t.integer "start_page"
505
+ t.integer "end_page"
506
+ t.integer "height"
507
+ t.integer "width"
508
+ t.integer "depth"
509
+ t.integer "price"
510
+ t.text "fulltext"
511
+ t.string "volume_number_string"
512
+ t.string "issue_number_string"
513
+ t.string "serial_number_string"
514
+ t.integer "edition"
515
+ t.text "note"
516
+ t.boolean "repository_content", default: false, null: false
517
+ t.integer "lock_version", default: 0, null: false
518
+ t.integer "required_role_id", default: 1, null: false
519
+ t.integer "required_score", default: 0, null: false
520
+ t.integer "frequency_id", default: 1, null: false
521
+ t.boolean "subscription_master", default: false, null: false
522
+ t.string "attachment_file_name"
523
+ t.string "attachment_content_type"
524
+ t.integer "attachment_file_size"
548
525
  t.datetime "attachment_updated_at"
549
- t.text "title_alternative_transcription"
550
- t.text "description"
551
- t.text "abstract"
526
+ t.text "title_alternative_transcription"
527
+ t.text "description"
528
+ t.text "abstract"
552
529
  t.datetime "available_at"
553
530
  t.datetime "valid_until"
554
531
  t.datetime "date_submitted"
555
532
  t.datetime "date_accepted"
556
- t.datetime "date_captured"
557
- t.string "pub_date"
558
- t.string "edition_string"
559
- t.integer "volume_number"
560
- t.integer "issue_number"
561
- t.integer "serial_number"
562
- t.integer "content_type_id", default: 1
563
- t.integer "year_of_publication"
564
- t.text "attachment_meta"
565
- t.integer "month_of_publication"
566
- t.boolean "fulltext_content"
567
- t.boolean "serial"
568
- t.text "statement_of_responsibility"
569
- t.text "publication_place"
570
- t.text "extent"
571
- t.text "dimensions"
572
- end
573
-
574
- add_index "manifestations", ["access_address"], name: "index_manifestations_on_access_address"
575
- add_index "manifestations", ["date_of_publication"], name: "index_manifestations_on_date_of_publication"
576
- add_index "manifestations", ["manifestation_identifier"], name: "index_manifestations_on_manifestation_identifier"
577
- add_index "manifestations", ["updated_at"], name: "index_manifestations_on_updated_at"
533
+ t.datetime "date_caputured"
534
+ t.string "pub_date"
535
+ t.string "edition_string"
536
+ t.integer "volume_number"
537
+ t.integer "issue_number"
538
+ t.integer "serial_number"
539
+ t.integer "content_type_id", default: 1
540
+ t.integer "year_of_publication"
541
+ t.text "attachment_meta"
542
+ t.integer "month_of_publication"
543
+ t.boolean "fulltext_content"
544
+ t.boolean "serial"
545
+ t.text "statement_of_responsibility"
546
+ t.text "publication_place"
547
+ t.text "extent"
548
+ t.text "dimensions"
549
+ t.index ["access_address"], name: "index_manifestations_on_access_address"
550
+ t.index ["date_of_publication"], name: "index_manifestations_on_date_of_publication"
551
+ t.index ["manifestation_identifier"], name: "index_manifestations_on_manifestation_identifier"
552
+ t.index ["updated_at"], name: "index_manifestations_on_updated_at"
553
+ end
578
554
 
579
555
  create_table "medium_of_performances", force: :cascade do |t|
580
- t.string "name", null: false
581
- t.text "display_name"
582
- t.text "note"
583
- t.integer "position"
556
+ t.string "name", null: false
557
+ t.text "display_name"
558
+ t.text "note"
559
+ t.integer "position"
584
560
  t.datetime "created_at"
585
561
  t.datetime "updated_at"
586
562
  end
587
563
 
588
564
  create_table "owns", force: :cascade do |t|
589
- t.integer "agent_id", null: false
590
- t.integer "item_id", null: false
591
- t.integer "position"
565
+ t.integer "agent_id", null: false
566
+ t.integer "item_id", null: false
567
+ t.integer "position"
592
568
  t.datetime "created_at"
593
569
  t.datetime "updated_at"
570
+ t.index ["agent_id"], name: "index_owns_on_agent_id"
571
+ t.index ["item_id"], name: "index_owns_on_item_id"
594
572
  end
595
573
 
596
- add_index "owns", ["agent_id"], name: "index_owns_on_agent_id"
597
- add_index "owns", ["item_id"], name: "index_owns_on_item_id"
598
-
599
574
  create_table "picture_files", force: :cascade do |t|
600
- t.integer "picture_attachable_id"
601
- t.string "picture_attachable_type"
602
- t.string "content_type"
603
- t.text "title"
604
- t.string "thumbnail"
605
- t.integer "position"
575
+ t.integer "picture_attachable_id"
576
+ t.string "picture_attachable_type"
577
+ t.string "content_type"
578
+ t.text "title"
579
+ t.string "thumbnail"
580
+ t.integer "position"
606
581
  t.datetime "created_at"
607
582
  t.datetime "updated_at"
608
- t.string "picture_file_name"
609
- t.string "picture_content_type"
610
- t.integer "picture_file_size"
583
+ t.string "picture_file_name"
584
+ t.string "picture_content_type"
585
+ t.integer "picture_file_size"
611
586
  t.datetime "picture_updated_at"
612
- t.text "picture_meta"
613
- t.string "picture_fingerprint"
614
- t.integer "picture_width"
615
- t.integer "picture_height"
587
+ t.text "picture_meta"
588
+ t.string "picture_fingerprint"
589
+ t.integer "picture_width"
590
+ t.integer "picture_height"
591
+ t.index ["picture_attachable_id", "picture_attachable_type"], name: "index_picture_files_on_picture_attachable_id_and_type"
616
592
  end
617
593
 
618
- add_index "picture_files", ["picture_attachable_id", "picture_attachable_type"], name: "index_picture_files_on_picture_attachable_id_and_type"
619
-
620
594
  create_table "produce_types", force: :cascade do |t|
621
- t.string "name"
622
- t.text "display_name"
623
- t.text "note"
624
- t.integer "position"
595
+ t.string "name"
596
+ t.text "display_name"
597
+ t.text "note"
598
+ t.integer "position"
625
599
  t.datetime "created_at"
626
600
  t.datetime "updated_at"
627
601
  end
628
602
 
629
603
  create_table "produces", force: :cascade do |t|
630
- t.integer "agent_id", null: false
631
- t.integer "manifestation_id", null: false
632
- t.integer "position"
604
+ t.integer "agent_id", null: false
605
+ t.integer "manifestation_id", null: false
606
+ t.integer "position"
633
607
  t.datetime "created_at"
634
608
  t.datetime "updated_at"
635
- t.integer "produce_type_id"
609
+ t.integer "produce_type_id"
610
+ t.index ["agent_id"], name: "index_produces_on_agent_id"
611
+ t.index ["manifestation_id"], name: "index_produces_on_manifestation_id"
636
612
  end
637
613
 
638
- add_index "produces", ["agent_id"], name: "index_produces_on_agent_id"
639
- add_index "produces", ["manifestation_id"], name: "index_produces_on_manifestation_id"
640
-
641
614
  create_table "profiles", force: :cascade do |t|
642
- t.integer "user_id"
643
- t.integer "user_group_id"
644
- t.integer "library_id"
645
- t.string "locale"
646
- t.string "user_number"
647
- t.text "full_name"
648
- t.text "note"
649
- t.text "keyword_list"
650
- t.integer "required_role_id"
615
+ t.integer "user_id"
616
+ t.integer "user_group_id"
617
+ t.integer "library_id"
618
+ t.string "locale"
619
+ t.string "user_number"
620
+ t.text "full_name"
621
+ t.text "note"
622
+ t.text "keyword_list"
623
+ t.integer "required_role_id"
651
624
  t.datetime "created_at"
652
625
  t.datetime "updated_at"
653
626
  t.datetime "expired_at"
654
- t.text "full_name_transcription"
627
+ t.text "full_name_transcription"
655
628
  t.datetime "date_of_birth"
629
+ t.index ["user_id"], name: "index_profiles_on_user_id"
630
+ t.index ["user_number"], name: "index_profiles_on_user_number", unique: true
656
631
  end
657
632
 
658
- add_index "profiles", ["user_id"], name: "index_profiles_on_user_id"
659
- add_index "profiles", ["user_number"], name: "index_profiles_on_user_number", unique: true
660
-
661
633
  create_table "realize_types", force: :cascade do |t|
662
- t.string "name"
663
- t.text "display_name"
664
- t.text "note"
665
- t.integer "position"
634
+ t.string "name"
635
+ t.text "display_name"
636
+ t.text "note"
637
+ t.integer "position"
666
638
  t.datetime "created_at"
667
639
  t.datetime "updated_at"
668
640
  end
669
641
 
670
642
  create_table "realizes", force: :cascade do |t|
671
- t.integer "agent_id", null: false
672
- t.integer "expression_id", null: false
673
- t.integer "position"
643
+ t.integer "agent_id", null: false
644
+ t.integer "expression_id", null: false
645
+ t.integer "position"
674
646
  t.datetime "created_at"
675
647
  t.datetime "updated_at"
676
- t.integer "realize_type_id"
648
+ t.integer "realize_type_id"
649
+ t.index ["agent_id"], name: "index_realizes_on_agent_id"
650
+ t.index ["expression_id"], name: "index_realizes_on_expression_id"
677
651
  end
678
652
 
679
- add_index "realizes", ["agent_id"], name: "index_realizes_on_agent_id"
680
- add_index "realizes", ["expression_id"], name: "index_realizes_on_expression_id"
681
-
682
653
  create_table "request_status_types", force: :cascade do |t|
683
- t.string "name", null: false
684
- t.text "display_name"
685
- t.text "note"
686
- t.integer "position"
654
+ t.string "name", null: false
655
+ t.text "display_name"
656
+ t.text "note"
657
+ t.integer "position"
687
658
  t.datetime "created_at"
688
659
  t.datetime "updated_at"
689
660
  end
690
661
 
691
662
  create_table "request_types", force: :cascade do |t|
692
- t.string "name", null: false
693
- t.text "display_name"
694
- t.text "note"
695
- t.integer "position"
663
+ t.string "name", null: false
664
+ t.text "display_name"
665
+ t.text "note"
666
+ t.integer "position"
696
667
  t.datetime "created_at"
697
668
  t.datetime "updated_at"
698
669
  end
699
670
 
700
671
  create_table "resource_export_file_transitions", force: :cascade do |t|
701
- t.string "to_state"
702
- t.text "metadata", default: "{}"
703
- t.integer "sort_key"
704
- t.integer "resource_export_file_id"
672
+ t.string "to_state"
673
+ t.text "metadata", default: "{}"
674
+ t.integer "sort_key"
675
+ t.integer "resource_export_file_id"
705
676
  t.datetime "created_at"
706
677
  t.datetime "updated_at"
707
- t.boolean "most_recent", null: false
678
+ t.boolean "most_recent", null: false
679
+ t.index ["resource_export_file_id", "most_recent"], name: "index_resource_export_file_transitions_parent_most_recent", unique: true, where: "most_recent"
680
+ t.index ["resource_export_file_id"], name: "index_resource_export_file_transitions_on_file_id"
681
+ t.index ["sort_key", "resource_export_file_id"], name: "index_resource_export_file_transitions_on_sort_key_and_file_id", unique: true
708
682
  end
709
683
 
710
- add_index "resource_export_file_transitions", ["resource_export_file_id", "most_recent"], name: "index_resource_export_file_transitions_parent_most_recent", unique: true
711
- add_index "resource_export_file_transitions", ["resource_export_file_id"], name: "index_resource_export_file_transitions_on_file_id"
712
- 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
713
-
714
684
  create_table "resource_export_files", force: :cascade do |t|
715
- t.integer "user_id"
716
- t.string "resource_export_file_name"
717
- t.string "resource_export_content_type"
718
- t.integer "resource_export_file_size"
719
- t.datetime "resource_export_updated_at"
685
+ t.integer "user_id"
720
686
  t.datetime "executed_at"
721
687
  t.datetime "created_at"
722
688
  t.datetime "updated_at"
723
689
  end
724
690
 
725
691
  create_table "resource_import_file_transitions", force: :cascade do |t|
726
- t.string "to_state"
727
- t.text "metadata", default: "{}"
728
- t.integer "sort_key"
729
- t.integer "resource_import_file_id"
692
+ t.string "to_state"
693
+ t.text "metadata", default: "{}"
694
+ t.integer "sort_key"
695
+ t.integer "resource_import_file_id"
730
696
  t.datetime "created_at"
731
697
  t.datetime "updated_at"
732
- t.boolean "most_recent", null: false
698
+ t.boolean "most_recent", null: false
699
+ t.index ["resource_import_file_id", "most_recent"], name: "index_resource_import_file_transitions_parent_most_recent", unique: true, where: "most_recent"
700
+ t.index ["resource_import_file_id"], name: "index_resource_import_file_transitions_on_file_id"
701
+ t.index ["sort_key", "resource_import_file_id"], name: "index_resource_import_file_transitions_on_sort_key_and_file_id", unique: true
733
702
  end
734
703
 
735
- add_index "resource_import_file_transitions", ["resource_import_file_id", "most_recent"], name: "index_resource_import_file_transitions_parent_most_recent", unique: true
736
- add_index "resource_import_file_transitions", ["resource_import_file_id"], name: "index_resource_import_file_transitions_on_file_id"
737
- 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
738
-
739
704
  create_table "resource_import_files", force: :cascade do |t|
740
- t.integer "parent_id"
741
- t.string "content_type"
742
- t.integer "size"
743
- t.integer "user_id"
744
- t.text "note"
705
+ t.integer "parent_id"
706
+ t.string "content_type"
707
+ t.integer "size"
708
+ t.integer "user_id"
709
+ t.text "note"
745
710
  t.datetime "executed_at"
746
- t.string "resource_import_file_name"
747
- t.string "resource_import_content_type"
748
- t.integer "resource_import_file_size"
711
+ t.string "resource_import_file_name"
712
+ t.string "resource_import_content_type"
713
+ t.integer "resource_import_file_size"
749
714
  t.datetime "resource_import_updated_at"
750
715
  t.datetime "created_at"
751
716
  t.datetime "updated_at"
752
- t.string "edit_mode"
753
- t.string "resource_import_fingerprint"
754
- t.text "error_message"
755
- t.string "user_encoding"
756
- t.integer "default_shelf_id"
717
+ t.string "edit_mode"
718
+ t.string "resource_import_fingerprint"
719
+ t.text "error_message"
720
+ t.string "user_encoding"
721
+ t.integer "default_shelf_id"
722
+ t.index ["parent_id"], name: "index_resource_import_files_on_parent_id"
723
+ t.index ["user_id"], name: "index_resource_import_files_on_user_id"
757
724
  end
758
725
 
759
- add_index "resource_import_files", ["parent_id"], name: "index_resource_import_files_on_parent_id"
760
- add_index "resource_import_files", ["user_id"], name: "index_resource_import_files_on_user_id"
761
-
762
726
  create_table "resource_import_results", force: :cascade do |t|
763
- t.integer "resource_import_file_id"
764
- t.integer "manifestation_id"
765
- t.integer "item_id"
766
- t.text "body"
727
+ t.integer "resource_import_file_id"
728
+ t.integer "manifestation_id"
729
+ t.integer "item_id"
730
+ t.text "body"
767
731
  t.datetime "created_at"
768
732
  t.datetime "updated_at"
769
- t.text "error_message"
733
+ t.text "error_message"
734
+ t.index ["item_id"], name: "index_resource_import_results_on_item_id"
735
+ t.index ["manifestation_id"], name: "index_resource_import_results_on_manifestation_id"
736
+ t.index ["resource_import_file_id"], name: "index_resource_import_results_on_resource_import_file_id"
770
737
  end
771
738
 
772
- add_index "resource_import_results", ["item_id"], name: "index_resource_import_results_on_item_id"
773
- add_index "resource_import_results", ["manifestation_id"], name: "index_resource_import_results_on_manifestation_id"
774
- add_index "resource_import_results", ["resource_import_file_id"], name: "index_resource_import_results_on_resource_import_file_id"
775
-
776
739
  create_table "roles", force: :cascade do |t|
777
- t.string "name", null: false
778
- t.string "display_name"
779
- t.text "note"
740
+ t.string "name", null: false
741
+ t.string "display_name"
742
+ t.text "note"
780
743
  t.datetime "created_at"
781
744
  t.datetime "updated_at"
782
- t.integer "score", default: 0, null: false
783
- t.integer "position"
745
+ t.integer "score", default: 0, null: false
746
+ t.integer "position"
784
747
  end
785
748
 
786
749
  create_table "search_engines", force: :cascade do |t|
787
- t.string "name", null: false
788
- t.text "display_name"
789
- t.string "url", null: false
790
- t.text "base_url", null: false
791
- t.text "http_method", null: false
792
- t.text "query_param", null: false
793
- t.text "additional_param"
794
- t.text "note"
795
- t.integer "position"
750
+ t.string "name", null: false
751
+ t.text "display_name"
752
+ t.string "url", null: false
753
+ t.text "base_url", null: false
754
+ t.text "http_method", null: false
755
+ t.text "query_param", null: false
756
+ t.text "additional_param"
757
+ t.text "note"
758
+ t.integer "position"
796
759
  t.datetime "created_at"
797
760
  t.datetime "updated_at"
798
761
  end
799
762
 
800
763
  create_table "series_statement_merge_lists", force: :cascade do |t|
801
- t.string "title"
764
+ t.string "title"
802
765
  t.datetime "created_at"
803
766
  t.datetime "updated_at"
804
767
  end
805
768
 
806
769
  create_table "series_statement_merges", force: :cascade do |t|
807
- t.integer "series_statement_id", null: false
808
- t.integer "series_statement_merge_list_id", null: false
770
+ t.integer "series_statement_id", null: false
771
+ t.integer "series_statement_merge_list_id", null: false
809
772
  t.datetime "created_at"
810
773
  t.datetime "updated_at"
774
+ t.index ["series_statement_id"], name: "index_series_statement_merges_on_series_statement_id"
775
+ t.index ["series_statement_merge_list_id"], name: "index_series_statement_merges_on_list_id"
811
776
  end
812
777
 
813
- add_index "series_statement_merges", ["series_statement_id"], name: "index_series_statement_merges_on_series_statement_id"
814
- add_index "series_statement_merges", ["series_statement_merge_list_id"], name: "index_series_statement_merges_on_list_id"
815
-
816
778
  create_table "series_statements", force: :cascade do |t|
817
- t.text "original_title"
818
- t.text "numbering"
819
- t.text "title_subseries"
820
- t.text "numbering_subseries"
821
- t.integer "position"
822
- t.datetime "created_at"
823
- t.datetime "updated_at"
824
- t.text "title_transcription"
825
- t.text "title_alternative"
826
- t.string "series_statement_identifier"
827
- t.integer "manifestation_id"
828
- t.text "note"
829
- t.text "title_subseries_transcription"
830
- t.text "creator_string"
831
- t.text "volume_number_string"
832
- t.text "volume_number_transcription_string"
833
- t.boolean "series_master"
834
- t.integer "root_manifestation_id"
835
- end
836
-
837
- add_index "series_statements", ["manifestation_id"], name: "index_series_statements_on_manifestation_id"
838
- add_index "series_statements", ["root_manifestation_id"], name: "index_series_statements_on_root_manifestation_id"
839
- add_index "series_statements", ["series_statement_identifier"], name: "index_series_statements_on_series_statement_identifier"
779
+ t.text "original_title"
780
+ t.text "numbering"
781
+ t.text "title_subseries"
782
+ t.text "numbering_subseries"
783
+ t.integer "position"
784
+ t.datetime "created_at"
785
+ t.datetime "updated_at"
786
+ t.text "title_transcription"
787
+ t.text "title_alternative"
788
+ t.string "series_statement_identifier"
789
+ t.integer "manifestation_id"
790
+ t.text "note"
791
+ t.text "title_subseries_transcription"
792
+ t.text "creator_string"
793
+ t.text "volume_number_string"
794
+ t.text "volume_number_transcription_string"
795
+ t.boolean "series_master"
796
+ t.integer "root_manifestation_id"
797
+ t.index ["manifestation_id"], name: "index_series_statements_on_manifestation_id"
798
+ t.index ["root_manifestation_id"], name: "index_series_statements_on_root_manifestation_id"
799
+ t.index ["series_statement_identifier"], name: "index_series_statements_on_series_statement_identifier"
800
+ end
840
801
 
841
802
  create_table "shelves", force: :cascade do |t|
842
- t.string "name", null: false
843
- t.text "display_name"
844
- t.text "note"
845
- t.integer "library_id", null: false
846
- t.integer "items_count", default: 0, null: false
847
- t.integer "position"
803
+ t.string "name", null: false
804
+ t.text "display_name"
805
+ t.text "note"
806
+ t.integer "library_id", default: 1, null: false
807
+ t.integer "items_count", default: 0, null: false
808
+ t.integer "position"
848
809
  t.datetime "created_at"
849
810
  t.datetime "updated_at"
850
811
  t.datetime "deleted_at"
851
- t.boolean "closed", default: false, null: false
812
+ t.boolean "closed", default: false, null: false
813
+ t.index ["library_id"], name: "index_shelves_on_library_id"
852
814
  end
853
815
 
854
- add_index "shelves", ["library_id"], name: "index_shelves_on_library_id"
855
-
856
816
  create_table "subscribes", force: :cascade do |t|
857
- t.integer "subscription_id", null: false
858
- t.integer "work_id", null: false
859
- t.datetime "start_at", null: false
860
- t.datetime "end_at", null: false
817
+ t.integer "subscription_id", null: false
818
+ t.integer "work_id", null: false
819
+ t.datetime "start_at", null: false
820
+ t.datetime "end_at", null: false
861
821
  t.datetime "created_at"
862
822
  t.datetime "updated_at"
823
+ t.index ["subscription_id"], name: "index_subscribes_on_subscription_id"
824
+ t.index ["work_id"], name: "index_subscribes_on_work_id"
863
825
  end
864
826
 
865
- add_index "subscribes", ["subscription_id"], name: "index_subscribes_on_subscription_id"
866
- add_index "subscribes", ["work_id"], name: "index_subscribes_on_work_id"
867
-
868
827
  create_table "subscriptions", force: :cascade do |t|
869
- t.text "title", null: false
870
- t.text "note"
871
- t.integer "user_id"
872
- t.integer "order_list_id"
828
+ t.text "title", null: false
829
+ t.text "note"
830
+ t.integer "user_id"
831
+ t.integer "order_list_id"
873
832
  t.datetime "deleted_at"
874
- t.integer "subscribes_count", default: 0, null: false
833
+ t.integer "subscribes_count", default: 0, null: false
875
834
  t.datetime "created_at"
876
835
  t.datetime "updated_at"
836
+ t.index ["order_list_id"], name: "index_subscriptions_on_order_list_id"
837
+ t.index ["user_id"], name: "index_subscriptions_on_user_id"
877
838
  end
878
839
 
879
- add_index "subscriptions", ["order_list_id"], name: "index_subscriptions_on_order_list_id"
880
- add_index "subscriptions", ["user_id"], name: "index_subscriptions_on_user_id"
881
-
882
840
  create_table "user_export_file_transitions", force: :cascade do |t|
883
- t.string "to_state"
884
- t.text "metadata", default: "{}"
885
- t.integer "sort_key"
886
- t.integer "user_export_file_id"
841
+ t.string "to_state"
842
+ t.text "metadata", default: "{}"
843
+ t.integer "sort_key"
844
+ t.integer "user_export_file_id"
887
845
  t.datetime "created_at"
888
846
  t.datetime "updated_at"
889
- t.boolean "most_recent", null: false
847
+ t.boolean "most_recent", null: false
848
+ t.index ["sort_key", "user_export_file_id"], name: "index_user_export_file_transitions_on_sort_key_and_file_id", unique: true
849
+ t.index ["user_export_file_id", "most_recent"], name: "index_user_export_file_transitions_parent_most_recent", unique: true, where: "most_recent"
850
+ t.index ["user_export_file_id"], name: "index_user_export_file_transitions_on_file_id"
890
851
  end
891
852
 
892
- 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
893
- add_index "user_export_file_transitions", ["user_export_file_id", "most_recent"], name: "index_user_export_file_transitions_parent_most_recent", unique: true
894
- add_index "user_export_file_transitions", ["user_export_file_id"], name: "index_user_export_file_transitions_on_file_id"
895
- add_index "user_export_file_transitions", ["user_export_file_id"], name: "index_user_export_file_transitions_on_user_export_file_id"
896
-
897
853
  create_table "user_export_files", force: :cascade do |t|
898
- t.integer "user_id"
899
- t.string "user_export_file_name"
900
- t.string "user_export_content_type"
901
- t.integer "user_export_file_size"
902
- t.datetime "user_export_updated_at"
854
+ t.integer "user_id"
903
855
  t.datetime "executed_at"
904
856
  t.datetime "created_at"
905
857
  t.datetime "updated_at"
906
858
  end
907
859
 
908
- add_index "user_export_files", ["user_id"], name: "index_user_export_files_on_user_id"
909
-
910
860
  create_table "user_groups", force: :cascade do |t|
911
- t.string "name"
912
- t.text "display_name"
913
- t.text "note"
914
- t.integer "position"
861
+ t.string "name"
862
+ t.text "display_name"
863
+ t.text "note"
864
+ t.integer "position"
915
865
  t.datetime "created_at"
916
866
  t.datetime "updated_at"
917
867
  t.datetime "deleted_at"
918
- t.integer "valid_period_for_new_user", default: 0, null: false
868
+ t.integer "valid_period_for_new_user", default: 0, null: false
919
869
  t.datetime "expired_at"
920
870
  end
921
871
 
922
872
  create_table "user_has_roles", force: :cascade do |t|
923
- t.integer "user_id"
924
- t.integer "role_id"
873
+ t.integer "user_id"
874
+ t.integer "role_id"
925
875
  t.datetime "created_at"
926
876
  t.datetime "updated_at"
877
+ t.index ["role_id"], name: "index_user_has_roles_on_role_id"
878
+ t.index ["user_id"], name: "index_user_has_roles_on_user_id"
927
879
  end
928
880
 
929
- add_index "user_has_roles", ["role_id"], name: "index_user_has_roles_on_role_id"
930
- add_index "user_has_roles", ["user_id"], name: "index_user_has_roles_on_user_id"
931
-
932
881
  create_table "user_import_file_transitions", force: :cascade do |t|
933
- t.string "to_state"
934
- t.text "metadata", default: "{}"
935
- t.integer "sort_key"
936
- t.integer "user_import_file_id"
882
+ t.string "to_state"
883
+ t.text "metadata", default: "{}"
884
+ t.integer "sort_key"
885
+ t.integer "user_import_file_id"
937
886
  t.datetime "created_at"
938
887
  t.datetime "updated_at"
939
- t.boolean "most_recent", null: false
888
+ t.boolean "most_recent", null: false
889
+ t.index ["sort_key", "user_import_file_id"], name: "index_user_import_file_transitions_on_sort_key_and_file_id", unique: true
890
+ t.index ["user_import_file_id", "most_recent"], name: "index_user_import_file_transitions_parent_most_recent", unique: true, where: "most_recent"
891
+ t.index ["user_import_file_id"], name: "index_user_import_file_transitions_on_user_import_file_id"
940
892
  end
941
893
 
942
- 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
943
- add_index "user_import_file_transitions", ["user_import_file_id", "most_recent"], name: "index_user_import_file_transitions_parent_most_recent", unique: true
944
- add_index "user_import_file_transitions", ["user_import_file_id"], name: "index_user_import_file_transitions_on_user_import_file_id"
945
-
946
894
  create_table "user_import_files", force: :cascade do |t|
947
- t.integer "user_id"
948
- t.text "note"
895
+ t.integer "user_id"
896
+ t.text "note"
949
897
  t.datetime "executed_at"
950
- t.string "user_import_file_name"
951
- t.string "user_import_content_type"
952
- t.integer "user_import_file_size"
898
+ t.string "user_import_file_name"
899
+ t.string "user_import_content_type"
900
+ t.string "user_import_file_size"
953
901
  t.datetime "user_import_updated_at"
954
- t.string "user_import_fingerprint"
955
- t.string "edit_mode"
956
- t.text "error_message"
902
+ t.string "user_import_fingerprint"
903
+ t.string "edit_mode"
904
+ t.text "error_message"
957
905
  t.datetime "created_at"
958
906
  t.datetime "updated_at"
959
- t.string "user_encoding"
960
- t.integer "default_library_id"
961
- t.integer "default_user_group_id"
907
+ t.string "user_encoding"
908
+ t.integer "default_library_id"
909
+ t.integer "default_user_group_id"
962
910
  end
963
911
 
964
- add_index "user_import_files", ["user_id"], name: "index_user_import_files_on_user_id"
965
-
966
912
  create_table "user_import_results", force: :cascade do |t|
967
- t.integer "user_import_file_id"
968
- t.integer "user_id"
969
- t.text "body"
913
+ t.integer "user_import_file_id"
914
+ t.integer "user_id"
915
+ t.text "body"
970
916
  t.datetime "created_at"
971
917
  t.datetime "updated_at"
972
- t.text "error_message"
918
+ t.text "error_message"
973
919
  end
974
920
 
975
- add_index "user_import_results", ["user_id"], name: "index_user_import_results_on_user_id"
976
- add_index "user_import_results", ["user_import_file_id"], name: "index_user_import_results_on_user_import_file_id"
977
-
978
921
  create_table "users", force: :cascade do |t|
979
- t.string "email", default: "", null: false
980
- t.string "encrypted_password", default: "", null: false
981
- t.string "reset_password_token"
922
+ t.string "email", default: "", null: false
923
+ t.string "encrypted_password", default: "", null: false
924
+ t.string "reset_password_token"
982
925
  t.datetime "reset_password_sent_at"
983
926
  t.datetime "remember_created_at"
984
- t.integer "sign_in_count", default: 0
927
+ t.integer "sign_in_count", default: 0
985
928
  t.datetime "current_sign_in_at"
986
929
  t.datetime "last_sign_in_at"
987
- t.string "current_sign_in_ip"
988
- t.string "last_sign_in_ip"
930
+ t.string "current_sign_in_ip"
931
+ t.string "last_sign_in_ip"
989
932
  t.datetime "created_at"
990
933
  t.datetime "updated_at"
991
- t.string "username"
934
+ t.string "username"
992
935
  t.datetime "deleted_at"
993
936
  t.datetime "expired_at"
994
- t.integer "failed_attempts", default: 0
995
- t.string "unlock_token"
937
+ t.integer "failed_attempts", default: 0
938
+ t.string "unlock_token"
996
939
  t.datetime "locked_at"
997
940
  t.datetime "confirmed_at"
941
+ t.index ["email"], name: "index_users_on_email"
942
+ t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
943
+ t.index ["unlock_token"], name: "index_users_on_unlock_token", unique: true
944
+ t.index ["username"], name: "index_users_on_username", unique: true
998
945
  end
999
946
 
1000
- add_index "users", ["email"], name: "index_users_on_email"
1001
- add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
1002
- add_index "users", ["unlock_token"], name: "index_users_on_unlock_token", unique: true
1003
- add_index "users", ["username"], name: "index_users_on_username", unique: true
1004
-
1005
947
  create_table "versions", force: :cascade do |t|
1006
- t.string "item_type", null: false
1007
- t.integer "item_id", null: false
1008
- t.string "event", null: false
1009
- t.string "whodunnit"
1010
- t.text "object"
948
+ t.string "item_type", null: false
949
+ t.integer "item_id", null: false
950
+ t.string "event", null: false
951
+ t.string "whodunnit"
952
+ t.text "object"
1011
953
  t.datetime "created_at"
954
+ t.index ["item_type", "item_id"], name: "index_versions_on_item_type_and_item_id"
1012
955
  end
1013
956
 
1014
- add_index "versions", ["item_type", "item_id"], name: "index_versions_on_item_type_and_item_id"
1015
-
1016
957
  create_table "withdraws", force: :cascade do |t|
1017
- t.integer "basket_id"
1018
- t.integer "item_id"
1019
- t.integer "librarian_id"
1020
- t.datetime "created_at", null: false
1021
- t.datetime "updated_at", null: false
958
+ t.integer "basket_id"
959
+ t.integer "item_id"
960
+ t.integer "librarian_id"
961
+ t.datetime "created_at", null: false
962
+ t.datetime "updated_at", null: false
963
+ t.index ["basket_id"], name: "index_withdraws_on_basket_id"
964
+ t.index ["item_id"], name: "index_withdraws_on_item_id"
965
+ t.index ["librarian_id"], name: "index_withdraws_on_librarian_id"
1022
966
  end
1023
967
 
1024
- add_index "withdraws", ["basket_id"], name: "index_withdraws_on_basket_id"
1025
- add_index "withdraws", ["item_id"], name: "index_withdraws_on_item_id"
1026
- add_index "withdraws", ["librarian_id"], name: "index_withdraws_on_librarian_id"
1027
-
1028
968
  end