hyrax 3.0.0.pre.rc2 → 3.0.0.pre.rc3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +5 -5
- data/.dassie/.env +4 -0
- data/.dassie/.gitignore +27 -0
- data/.dassie/Gemfile +57 -0
- data/.dassie/README.md +3 -0
- data/.dassie/Rakefile +6 -0
- data/.dassie/app/actors/hyrax/actors/generic_work_actor.rb +8 -0
- data/.dassie/app/actors/hyrax/actors/namespaced_works/nested_work_actor.rb +8 -0
- data/.dassie/app/assets/config/manifest.js +3 -0
- data/.dassie/app/assets/images/.keep +0 -0
- data/.dassie/app/assets/images/unauthorized.png +0 -0
- data/.dassie/app/assets/images/us_404.svg +91 -0
- data/.dassie/app/assets/javascripts/application.js +26 -0
- data/.dassie/app/assets/javascripts/blacklight_gallery.js +1 -0
- data/.dassie/app/assets/javascripts/cable.js +13 -0
- data/.dassie/app/assets/javascripts/channels/.keep +0 -0
- data/.dassie/app/assets/javascripts/openseadragon.js +2 -0
- data/.dassie/app/assets/stylesheets/application.css +16 -0
- data/.dassie/app/assets/stylesheets/hyrax.scss +17 -0
- data/.dassie/app/assets/stylesheets/openseadragon.css +3 -0
- data/.dassie/app/channels/application_cable/channel.rb +4 -0
- data/.dassie/app/channels/application_cable/connection.rb +4 -0
- data/.dassie/app/controllers/application_controller.rb +14 -0
- data/.dassie/app/controllers/catalog_controller.rb +300 -0
- data/.dassie/app/controllers/concerns/.keep +0 -0
- data/.dassie/app/controllers/hyrax/generic_works_controller.rb +14 -0
- data/.dassie/app/controllers/hyrax/monographs_controller.rb +17 -0
- data/.dassie/app/controllers/hyrax/namespaced_works/nested_works_controller.rb +14 -0
- data/.dassie/app/forms/hyrax/generic_work_form.rb +9 -0
- data/.dassie/app/forms/hyrax/namespaced_works/nested_work_form.rb +9 -0
- data/.dassie/app/forms/monograph_form.rb +20 -0
- data/.dassie/app/helpers/application_helper.rb +2 -0
- data/.dassie/app/helpers/hyrax_helper.rb +6 -0
- data/.dassie/app/indexers/generic_work_indexer.rb +18 -0
- data/.dassie/app/indexers/monograph_indexer.rb +16 -0
- data/.dassie/app/indexers/namespaced_works/nested_work_indexer.rb +18 -0
- data/.dassie/app/jobs/application_job.rb +2 -0
- data/.dassie/app/mailers/application_mailer.rb +4 -0
- data/.dassie/app/models/ability.rb +21 -0
- data/.dassie/app/models/application_record.rb +3 -0
- data/.dassie/app/models/collection.rb +8 -0
- data/.dassie/app/models/concerns/.keep +0 -0
- data/.dassie/app/models/file_set.rb +5 -0
- data/.dassie/app/models/generic_work.rb +14 -0
- data/.dassie/app/models/monograph.rb +8 -0
- data/.dassie/app/models/namespaced_works/nested_work.rb +16 -0
- data/.dassie/app/models/qa.rb +5 -0
- data/.dassie/app/models/qa/local_authority.rb +2 -0
- data/.dassie/app/models/qa/local_authority_entry.rb +3 -0
- data/.dassie/app/models/search_builder.rb +16 -0
- data/.dassie/app/models/solr_document.rb +28 -0
- data/.dassie/app/models/time_span.rb +22 -0
- data/.dassie/app/models/user.rb +26 -0
- data/.dassie/app/presenters/hyrax/generic_work_presenter.rb +6 -0
- data/.dassie/app/presenters/hyrax/namespaced_works/nested_work_presenter.rb +6 -0
- data/.dassie/app/views/hyrax/generic_works/_generic_work.html.erb +2 -0
- data/.dassie/app/views/hyrax/monographs/_monograph.html.erb +2 -0
- data/.dassie/app/views/hyrax/namespaced_works/nested_works/_nested_work.html.erb +2 -0
- data/.dassie/app/views/layouts/application.html.erb +15 -0
- data/.dassie/app/views/layouts/mailer.html.erb +13 -0
- data/.dassie/app/views/layouts/mailer.text.erb +1 -0
- data/.dassie/bin/bundle +3 -0
- data/.dassie/bin/rails +9 -0
- data/.dassie/bin/rake +9 -0
- data/.dassie/bin/setup +36 -0
- data/.dassie/bin/spring +17 -0
- data/.dassie/bin/update +31 -0
- data/.dassie/bin/yarn +11 -0
- data/.dassie/config.ru +5 -0
- data/.dassie/config/analytics.yml +6 -0
- data/.dassie/config/application.rb +22 -0
- data/.dassie/config/arkivo.yml +6 -0
- data/.dassie/config/authorities/licenses.yml +46 -0
- data/.dassie/config/authorities/resource_types.yml +41 -0
- data/.dassie/config/authorities/rights_statements.yml +37 -0
- data/.dassie/config/blacklight.yml +9 -0
- data/.dassie/config/boot.rb +4 -0
- data/.dassie/config/browse_everything_providers.yml +2 -0
- data/.dassie/config/cable.yml +10 -0
- data/.dassie/config/credentials.yml.enc +1 -0
- data/.dassie/config/environment.rb +5 -0
- data/.dassie/config/environments/development.rb +69 -0
- data/.dassie/config/environments/production.rb +94 -0
- data/.dassie/config/environments/test.rb +51 -0
- data/.dassie/config/fedora.yml +15 -0
- data/.dassie/config/initializers/arkivo_constraint.rb +12 -0
- data/.dassie/config/initializers/assets.rb +2 -0
- data/.dassie/config/initializers/clamav.rb +2 -0
- data/.dassie/config/initializers/cookies_serializer.rb +1 -0
- data/.dassie/config/initializers/devise.rb +13 -0
- data/.dassie/config/initializers/filter_parameter_logging.rb +1 -0
- data/.dassie/config/initializers/hydra_config.rb +6 -0
- data/.dassie/config/initializers/hyrax.rb +48 -0
- data/.dassie/config/initializers/mailboxer.rb +21 -0
- data/.dassie/config/initializers/mime_types.rb +4 -0
- data/.dassie/config/initializers/mini_magick.rb +6 -0
- data/.dassie/config/initializers/redis_config.rb +4 -0
- data/.dassie/config/initializers/riiif.rb +27 -0
- data/.dassie/config/initializers/simple_form.rb +28 -0
- data/.dassie/config/initializers/simple_form_bootstrap.rb +143 -0
- data/.dassie/config/initializers/wrap_parameters.rb +3 -0
- data/.dassie/config/locales/blacklight.en.yml +3 -0
- data/.dassie/config/locales/devise.en.yml +65 -0
- data/.dassie/config/locales/generic_work.de.yml +8 -0
- data/.dassie/config/locales/generic_work.en.yml +8 -0
- data/.dassie/config/locales/generic_work.es.yml +10 -0
- data/.dassie/config/locales/generic_work.fr.yml +8 -0
- data/.dassie/config/locales/generic_work.it.yml +8 -0
- data/.dassie/config/locales/generic_work.pt-BR.yml +8 -0
- data/.dassie/config/locales/generic_work.zh.yml +10 -0
- data/.dassie/config/locales/hyrax.de.yml +58 -0
- data/.dassie/config/locales/hyrax.en.yml +58 -0
- data/.dassie/config/locales/hyrax.es.yml +58 -0
- data/.dassie/config/locales/hyrax.fr.yml +58 -0
- data/.dassie/config/locales/hyrax.it.yml +58 -0
- data/.dassie/config/locales/hyrax.pt-BR.yml +58 -0
- data/.dassie/config/locales/hyrax.zh.yml +58 -0
- data/.dassie/config/locales/namespaced_works/nested_work.de.yml +8 -0
- data/.dassie/config/locales/namespaced_works/nested_work.en.yml +8 -0
- data/.dassie/config/locales/namespaced_works/nested_work.es.yml +10 -0
- data/.dassie/config/locales/namespaced_works/nested_work.fr.yml +8 -0
- data/.dassie/config/locales/namespaced_works/nested_work.it.yml +8 -0
- data/.dassie/config/locales/namespaced_works/nested_work.pt-BR.yml +8 -0
- data/.dassie/config/locales/namespaced_works/nested_work.zh.yml +10 -0
- data/.dassie/config/metadata/monograph.yaml +55 -0
- data/.dassie/config/metadata/sample_metadata.yaml +3 -0
- data/.dassie/config/puma.rb +6 -0
- data/.dassie/config/redis.yml +9 -0
- data/.dassie/config/role_map.yml +24 -0
- data/.dassie/config/routes.rb +35 -0
- data/.dassie/config/solr.yml +7 -0
- data/.dassie/config/spring.rb +6 -0
- data/.dassie/config/storage.yml +7 -0
- data/.dassie/config/tinymce.yml +12 -0
- data/.dassie/config/uv/uv-config.json +3 -0
- data/.dassie/config/uv/uv.html +87 -0
- data/.dassie/config/valkyrie_index.yml +12 -0
- data/.dassie/config/workflows/default_workflow.json +21 -0
- data/.dassie/config/workflows/mediated_deposit_workflow.json +76 -0
- data/.dassie/config/zotero.yml +6 -0
- data/.dassie/db/migrate/20200821212749_create_searches.blacklight.rb +17 -0
- data/.dassie/db/migrate/20200821212750_create_bookmarks.blacklight.rb +19 -0
- data/.dassie/db/migrate/20200821212751_add_polymorphic_type_to_bookmarks.blacklight.rb +9 -0
- data/.dassie/db/migrate/20200821212803_devise_create_users.rb +44 -0
- data/.dassie/db/migrate/20200821212806_add_devise_guests_to_users.rb +15 -0
- data/.dassie/db/migrate/20200821212828_create_version_committers.hyrax.rb +15 -0
- data/.dassie/db/migrate/20200821212829_create_checksum_audit_logs.hyrax.rb +19 -0
- data/.dassie/db/migrate/20200821212830_create_single_use_links.hyrax.rb +12 -0
- data/.dassie/db/migrate/20200821212831_add_social_to_users.hyrax.rb +13 -0
- data/.dassie/db/migrate/20200821212832_add_ldap_attrs_to_user.hyrax.rb +27 -0
- data/.dassie/db/migrate/20200821212833_add_avatars_to_users.hyrax.rb +15 -0
- data/.dassie/db/migrate/20200821212834_create_trophies.hyrax.rb +10 -0
- data/.dassie/db/migrate/20200821212835_add_linkedin_to_users.hyrax.rb +5 -0
- data/.dassie/db/migrate/20200821212836_create_tinymce_assets.hyrax.rb +8 -0
- data/.dassie/db/migrate/20200821212837_create_content_blocks.hyrax.rb +10 -0
- data/.dassie/db/migrate/20200821212838_create_featured_works.hyrax.rb +12 -0
- data/.dassie/db/migrate/20200821212839_add_external_key_to_content_blocks.hyrax.rb +6 -0
- data/.dassie/db/migrate/20200821212840_create_proxy_deposit_rights.hyrax.rb +10 -0
- data/.dassie/db/migrate/20200821212841_create_proxy_deposit_requests.hyrax.rb +15 -0
- data/.dassie/db/migrate/20200821212842_create_file_view_stats.hyrax.rb +12 -0
- data/.dassie/db/migrate/20200821212843_create_file_download_stats.hyrax.rb +12 -0
- data/.dassie/db/migrate/20200821212844_add_orcid_to_users.hyrax.rb +5 -0
- data/.dassie/db/migrate/20200821212845_create_user_stats.hyrax.rb +19 -0
- data/.dassie/db/migrate/20200821212846_create_work_view_stats.hyrax.rb +12 -0
- data/.dassie/db/migrate/20200821212847_add_works_to_user_stats.hyrax.rb +13 -0
- data/.dassie/db/migrate/20200821212848_change_trophy_generic_file_id_to_work_id.hyrax.rb +5 -0
- data/.dassie/db/migrate/20200821212849_change_proxy_deposit_generic_file_id_to_work_id.hyrax.rb +5 -0
- data/.dassie/db/migrate/20200821212850_change_audit_log_generic_file_id_to_file_set_id.hyrax.rb +5 -0
- data/.dassie/db/migrate/20200821212851_change_proxy_deposit_request_generic_file_id_to_work_id.hyrax.rb +5 -0
- data/.dassie/db/migrate/20200821212852_create_uploaded_files.hyrax.rb +10 -0
- data/.dassie/db/migrate/20200821212853_create_features.hyrax.rb +10 -0
- data/.dassie/db/migrate/20200821212854_create_operations.hyrax.rb +23 -0
- data/.dassie/db/migrate/20200821212855_change_featured_work_generic_file_id_to_work_id.hyrax.rb +6 -0
- data/.dassie/db/migrate/20200821212856_add_arkivo_to_users.hyrax.rb +8 -0
- data/.dassie/db/migrate/20200821212857_create_sipity.hyrax.rb +163 -0
- data/.dassie/db/migrate/20200821212858_create_sipity_workflow_methods.hyrax.rb +10 -0
- data/.dassie/db/migrate/20200821212859_create_permission_template.hyrax.rb +11 -0
- data/.dassie/db/migrate/20200821212860_create_permission_template_access.hyrax.rb +11 -0
- data/.dassie/db/migrate/20200821212861_add_release_to_permission_templates.hyrax.rb +6 -0
- data/.dassie/db/migrate/20200821212862_add_permission_template_to_sipity_workflow.hyrax.rb +26 -0
- data/.dassie/db/migrate/20200821212863_tidy_up_because_of_bad_exception.hyrax.rb +13 -0
- data/.dassie/db/migrate/20200821212864_add_allows_access_grant_to_workflow.hyrax.rb +5 -0
- data/.dassie/db/migrate/20200821212865_change_checksum_audit_log.hyrax.rb +18 -0
- data/.dassie/db/migrate/20200821212866_create_job_io_wrappers.hyrax.rb +15 -0
- data/.dassie/db/migrate/20200821212867_create_collection_types.hyrax.rb +17 -0
- data/.dassie/db/migrate/20200821212868_update_collection_type_column_names.hyrax.rb +9 -0
- data/.dassie/db/migrate/20200821212869_update_collection_type_column_options.hyrax.rb +17 -0
- data/.dassie/db/migrate/20200821212870_create_collection_branding_infos.hyrax.rb +15 -0
- data/.dassie/db/migrate/20200821212871_create_collection_type_participants.hyrax.rb +11 -0
- data/.dassie/db/migrate/20200821212872_rename_admin_set_id_to_source_id.hyrax.rb +5 -0
- data/.dassie/db/migrate/20200821212873_add_preferred_locale_to_users.hyrax.rb +5 -0
- data/.dassie/db/migrate/20200821212874_add_collection_type_sharing_options.hyrax.rb +5 -0
- data/.dassie/db/migrate/20200821212875_add_unique_constraint_to_permission_template_accesses.hyrax.rb +8 -0
- data/.dassie/db/migrate/20200821212876_add_branding_to_collection_type.hyrax.rb +5 -0
- data/.dassie/db/migrate/20200821212877_add_badge_color_to_collection_types.hyrax.rb +5 -0
- data/.dassie/db/migrate/20200821212878_update_single_use_links_column_names.hyrax.rb +6 -0
- data/.dassie/db/migrate/20200821212879_change_sipity_entity_specific_responsibility.hyrax.rb +9 -0
- data/.dassie/db/migrate/20200821212880_create_mailboxer.mailboxer_engine.rb +65 -0
- data/.dassie/db/migrate/20200821212881_add_conversation_optout.mailboxer_engine.rb +15 -0
- data/.dassie/db/migrate/20200821212882_add_missing_indices.mailboxer_engine.rb +20 -0
- data/.dassie/db/migrate/20200821212883_add_delivery_tracking_info_to_mailboxer_receipts.mailboxer_engine.rb +8 -0
- data/.dassie/db/migrate/20200821212884_create_qa_local_authorities.rb +10 -0
- data/.dassie/db/migrate/20200821212885_create_qa_local_authority_entries.rb +12 -0
- data/.dassie/db/migrate/20200821212902_create_minter_states.noid_rails_engine.rb +17 -0
- data/.dassie/db/migrate/20200821212903_rename_minter_state_random_to_rand.noid_rails_engine.rb +8 -0
- data/.dassie/db/schema.rb +563 -0
- data/.dassie/db/seeds.rb +14 -0
- data/.dassie/lib/assets/.keep +0 -0
- data/.dassie/lib/tasks/.keep +0 -0
- data/.dassie/log/.keep +0 -0
- data/.dassie/package.json +17 -0
- data/.dassie/public/404.html +67 -0
- data/.dassie/public/422.html +67 -0
- data/.dassie/public/500.html +66 -0
- data/.dassie/public/apple-touch-icon-precomposed.png +0 -0
- data/.dassie/public/apple-touch-icon.png +0 -0
- data/.dassie/public/favicon.ico +0 -0
- data/.dassie/public/robots.txt +1 -0
- data/.dassie/solr/conf/_rest_managed.json +3 -0
- data/.dassie/solr/conf/mapping-ISOLatin1Accent.txt +246 -0
- data/.dassie/solr/conf/schema.xml +367 -0
- data/.dassie/solr/conf/scripts.conf +24 -0
- data/.dassie/solr/conf/solrconfig.xml +208 -0
- data/.dassie/solr/conf/stopwords.txt +58 -0
- data/.dassie/solr/conf/stopwords_en.txt +58 -0
- data/.dassie/solr/conf/xslt/example.xsl +132 -0
- data/.dassie/solr/conf/xslt/example_atom.xsl +67 -0
- data/.dassie/solr/conf/xslt/example_rss.xsl +66 -0
- data/.dassie/solr/conf/xslt/luke.xsl +337 -0
- data/.dassie/solr/sample_solr_documents.yml +2692 -0
- data/.dassie/storage/.keep +0 -0
- data/.dassie/values.stage.yaml +7 -0
- data/.dassie/values.yaml +15 -0
- data/.dassie/vendor/.keep +0 -0
- data/.dockerignore +11 -0
- data/.env +26 -0
- data/.github/CODE_OF_CONDUCT.md +4 -4
- data/.github/CONTRIBUTING.md +1 -1
- data/.github/SUPPORT.md +13 -1
- data/.gitignore +1 -1
- data/.regen +1 -1
- data/.rubocop.yml +1 -0
- data/.rubocop_fixme.yml +4 -0
- data/CODE_OF_CONDUCT.md +4 -4
- data/CONTAINERS.md +148 -0
- data/CONTRIBUTING.md +1 -1
- data/Dockerfile +75 -0
- data/Gemfile +26 -35
- data/README.md +61 -288
- data/app/actors/hyrax/actors/attach_members_actor.rb +7 -5
- data/app/actors/hyrax/actors/base_actor.rb +0 -1
- data/app/actors/hyrax/actors/create_with_files_ordered_members_actor.rb +28 -28
- data/app/actors/hyrax/actors/create_with_remote_files_actor.rb +2 -3
- data/app/actors/hyrax/actors/create_with_remote_files_ordered_members_actor.rb +23 -28
- data/app/actors/hyrax/actors/default_admin_set_actor.rb +20 -21
- data/app/actors/hyrax/actors/file_actor.rb +32 -32
- data/app/actors/hyrax/actors/file_set_actor.rb +4 -15
- data/app/actors/hyrax/actors/initialize_workflow_actor.rb +8 -0
- data/app/actors/hyrax/actors/transfer_request_actor.rb +5 -0
- data/app/assets/javascripts/hyrax.js +1 -0
- data/app/assets/javascripts/hyrax/skip_to_content.js +15 -0
- data/app/assets/stylesheets/hyrax/_usage-stats.scss +1 -1
- data/app/authorities/qa/authorities/collections.rb +18 -8
- data/app/authorities/qa/authorities/find_works.rb +20 -5
- data/app/controllers/concerns/hyrax/collections_controller_behavior.rb +15 -6
- data/app/controllers/concerns/hyrax/works_controller_behavior.rb +62 -31
- data/app/controllers/hyrax/dashboard/collections_controller.rb +22 -12
- data/app/controllers/hyrax/dashboard/works_controller.rb +3 -4
- data/app/controllers/hyrax/file_sets_controller.rb +19 -10
- data/app/controllers/hyrax/homepage_controller.rb +11 -11
- data/app/controllers/hyrax/my/collections_controller.rb +5 -6
- data/app/controllers/hyrax/my/highlights_controller.rb +2 -3
- data/app/controllers/hyrax/my/shares_controller.rb +2 -3
- data/app/controllers/hyrax/my/works_controller.rb +1 -6
- data/app/controllers/hyrax/my_controller.rb +10 -2
- data/app/controllers/hyrax/permissions_controller.rb +1 -0
- data/app/controllers/hyrax/single_use_links_viewer_controller.rb +11 -5
- data/app/controllers/hyrax/users_controller.rb +5 -10
- data/app/forms/hyrax/forms/failed_submission_form_wrapper.rb +136 -0
- data/app/forms/hyrax/forms/resource_form.rb +8 -4
- data/app/helpers/hyrax/collections_helper.rb +1 -1
- data/app/helpers/hyrax/dashboard_helper_behavior.rb +7 -2
- data/app/helpers/hyrax/embargo_helper.rb +5 -1
- data/app/helpers/hyrax/hyrax_helper_behavior.rb +10 -5
- data/app/helpers/hyrax/lease_helper.rb +5 -1
- data/app/indexers/hyrax/pcdm_collection_indexer.rb +21 -0
- data/app/indexers/hyrax/resource_indexer.rb +3 -1
- data/app/indexers/hyrax/valkyrie_collection_indexer.rb +3 -12
- data/app/indexers/hyrax/valkyrie_indexer.rb +45 -17
- data/app/indexers/hyrax/valkyrie_work_indexer.rb +16 -0
- data/app/jobs/attach_files_to_work_job.rb +3 -41
- data/app/jobs/embargo_expiry_job.rb +15 -0
- data/app/jobs/event_job.rb +14 -7
- data/app/jobs/hyrax/application_job.rb +6 -1
- data/app/jobs/import_url_job.rb +11 -5
- data/app/jobs/inherit_permissions_job.rb +6 -25
- data/app/jobs/lease_expiry_job.rb +15 -0
- data/app/models/admin_set.rb +1 -1
- data/app/models/concerns/hyrax/ability.rb +192 -21
- data/app/models/concerns/hyrax/ability/admin_set_ability.rb +0 -5
- data/app/models/concerns/hyrax/collection_behavior.rb +7 -13
- data/app/models/concerns/hyrax/permissions/writable.rb +2 -2
- data/app/models/concerns/hyrax/solr_document/characterization.rb +35 -2
- data/app/models/concerns/hyrax/solr_document_behavior.rb +37 -5
- data/app/models/hyrax/change_set.rb +5 -1
- data/app/models/hyrax/collection_type.rb +59 -22
- data/app/models/hyrax/event.rb +5 -7
- data/app/models/hyrax/file_metadata.rb +15 -4
- data/app/models/hyrax/pcdm_collection.rb +13 -0
- data/app/models/hyrax/uploaded_file.rb +9 -2
- data/app/models/hyrax/{active_job_proxy.rb → valkyrie_global_id_proxy.rb} +6 -5
- data/app/models/hyrax/virus_scanner.rb +2 -1
- data/app/models/hyrax/work.rb +1 -1
- data/app/models/sipity.rb +6 -0
- data/app/models/sipity/entity.rb +1 -1
- data/app/models/sipity/workflow.rb +23 -3
- data/app/presenters/hyrax/admin/repository_object_presenter.rb +7 -2
- data/app/presenters/hyrax/collection_presenter.rb +1 -1
- data/app/presenters/hyrax/file_set_presenter.rb +3 -0
- data/app/presenters/hyrax/iiif_manifest_presenter.rb +3 -3
- data/app/presenters/hyrax/permission_badge.rb +1 -1
- data/app/presenters/hyrax/presenter_factory.rb +0 -2
- data/app/presenters/hyrax/select_collection_type_presenter.rb +16 -3
- data/app/presenters/hyrax/select_type_presenter.rb +3 -2
- data/app/presenters/hyrax/stats_usage_presenter.rb +0 -1
- data/app/presenters/hyrax/work_show_presenter.rb +1 -1
- data/app/renderers/hyrax/renderers/attribute_renderer.rb +16 -6
- data/app/search_builders/hyrax/README.md +3 -3
- data/app/search_builders/hyrax/admin_admin_set_member_search_builder.rb +8 -2
- data/app/search_builders/hyrax/collection_member_search_builder.rb +21 -7
- data/app/search_builders/hyrax/dashboard/managed_search_filters.rb +1 -1
- data/app/search_builders/hyrax/dashboard/nested_collections_search_builder.rb +1 -1
- data/app/search_builders/hyrax/embargo_search_builder.rb +0 -1
- data/app/search_builders/hyrax/filter_by_type.rb +3 -1
- data/app/search_builders/hyrax/lease_search_builder.rb +0 -1
- data/app/search_builders/hyrax/nested_collections_parent_search_builder.rb +12 -2
- data/app/search_builders/hyrax/search_builder.rb +1 -4
- data/app/search_builders/hyrax/search_filters.rb +0 -2
- data/app/services/hyrax/access_control_list.rb +33 -2
- data/app/services/hyrax/adapters/nesting_index_adapter.rb +26 -7
- data/app/services/hyrax/admin_set_member_service.rb +18 -4
- data/{lib/hyrax/callbacks/registry.rb → app/services/hyrax/callbacks.rb} +23 -0
- data/app/services/hyrax/change_content_depositor_service.rb +4 -1
- data/app/services/hyrax/collection_member_service.rb +5 -1
- data/app/services/hyrax/collection_types/permissions_service.rb +0 -2
- data/app/services/hyrax/collections/collection_member_service.rb +44 -64
- data/app/services/hyrax/collections/managed_collections_service.rb +15 -2
- data/app/services/hyrax/collections/migration_service.rb +9 -3
- data/app/services/hyrax/collections/nested_collection_persistence_service.rb +1 -1
- data/app/services/hyrax/collections/nested_collection_query_service.rb +39 -19
- data/app/services/hyrax/collections/permissions_service.rb +0 -1
- data/app/services/hyrax/collections_service.rb +12 -12
- data/app/services/hyrax/custom_queries/find_collections_by_type.rb +1 -1
- data/app/services/hyrax/custom_queries/navigators/child_collections_navigator.rb +14 -3
- data/app/services/hyrax/custom_queries/navigators/child_filesets_navigator.rb +14 -3
- data/app/services/hyrax/custom_queries/navigators/child_works_navigator.rb +10 -3
- data/app/services/hyrax/custom_queries/navigators/collection_members.rb +1 -0
- data/app/services/hyrax/custom_queries/navigators/find_files.rb +3 -0
- data/app/services/hyrax/database_migrator.rb +13 -10
- data/app/services/hyrax/default_middleware_stack.rb +0 -6
- data/app/services/hyrax/ensure_well_formed_admin_set_service.rb +27 -0
- data/app/services/hyrax/file_set_fixity_check_service.rb +16 -17
- data/app/services/hyrax/file_set_type_service.rb +55 -0
- data/app/services/hyrax/graph_exporter.rb +64 -8
- data/app/services/hyrax/list_source_exporter.rb +16 -34
- data/app/services/hyrax/listeners.rb +22 -0
- data/app/services/hyrax/listeners/proxy_deposit_listener.rb +20 -0
- data/app/services/hyrax/listeners/workflow_listener.rb +36 -0
- data/app/services/hyrax/multiple_membership_checker.rb +2 -1
- data/app/services/hyrax/quick_classification_query.rb +2 -3
- data/app/services/hyrax/resource_visibility_propagator.rb +1 -1
- data/app/services/hyrax/search_service.rb +108 -0
- data/app/services/hyrax/simple_schema_loader.rb +3 -1
- data/app/services/hyrax/statistics/depositors/summary.rb +0 -1
- data/app/services/hyrax/statistics/system_stats.rb +0 -1
- data/app/services/hyrax/thumbnail_path_service.rb +6 -1
- data/app/services/hyrax/time_service.rb +10 -0
- data/app/services/hyrax/versioning_service.rb +4 -28
- data/app/services/hyrax/work_uploads_handler.rb +166 -0
- data/app/services/hyrax/workflow/action_taken_service.rb +14 -1
- data/app/services/hyrax/workflow/grant_edit_to_depositor.rb +3 -1
- data/app/services/hyrax/workflow/permission_generator.rb +14 -9
- data/app/services/hyrax/workflow/workflow_action_service.rb +1 -1
- data/app/services/hyrax/workflow/workflow_factory.rb +12 -10
- data/app/services/hyrax/working_directory.rb +0 -1
- data/app/services/hyrax/works/managed_works_service.rb +14 -2
- data/app/views/_controls.html.erb +1 -1
- data/app/views/hyrax/admin/collection_types/index.html.erb +1 -1
- data/app/views/hyrax/base/_member.html.erb +1 -1
- data/app/views/hyrax/base/_representative_media.html.erb +1 -1
- data/app/views/hyrax/base/iiif_viewers/_universal_viewer.html.erb +1 -1
- data/app/views/hyrax/base/show.html.erb +2 -2
- data/app/views/hyrax/batch_select/_add_button.html.erb +1 -1
- data/app/views/hyrax/collections/_default_group.html.erb +2 -0
- data/app/views/hyrax/collections/show.html.erb +1 -1
- data/app/views/hyrax/dashboard/works/_default_group.html.erb +2 -0
- data/app/views/hyrax/embargoes/_list_expired_active_embargoes.html.erb +1 -1
- data/app/views/hyrax/leases/_list_expired_active_leases.html.erb +2 -1
- data/app/views/hyrax/my/works/_default_group.html.erb +2 -0
- data/app/views/layouts/hyrax.html.erb +0 -15
- data/bin/db-migrate-seed.sh +9 -0
- data/bin/db-wait.sh +14 -0
- data/bin/hyrax-entrypoint.sh +15 -0
- data/chart/fcrepo/.gitignore +2 -0
- data/chart/fcrepo/.helmignore +23 -0
- data/chart/fcrepo/Chart.yaml +11 -0
- data/chart/fcrepo/README.md +50 -0
- data/chart/fcrepo/templates/NOTES.txt +21 -0
- data/chart/fcrepo/templates/_helpers.tpl +68 -0
- data/chart/fcrepo/templates/configmap-env.yaml +19 -0
- data/chart/fcrepo/templates/deployment.yaml +109 -0
- data/chart/fcrepo/templates/ingress.yaml +41 -0
- data/chart/fcrepo/templates/pvc.yaml +20 -0
- data/chart/fcrepo/templates/secret.yaml +12 -0
- data/chart/fcrepo/templates/service.yaml +15 -0
- data/chart/fcrepo/templates/serviceaccount.yaml +12 -0
- data/chart/fcrepo/templates/tests/test-connection.yaml +15 -0
- data/chart/fcrepo/values.yaml +79 -0
- data/chart/hyrax/.gitignore +2 -0
- data/chart/hyrax/.helmignore +23 -0
- data/chart/hyrax/Chart.yaml +27 -0
- data/chart/hyrax/README.md +69 -0
- data/chart/hyrax/templates/NOTES.txt +21 -0
- data/chart/hyrax/templates/_helpers.tpl +92 -0
- data/chart/hyrax/templates/configmap-env.yaml +32 -0
- data/chart/hyrax/templates/deployment.yaml +79 -0
- data/chart/hyrax/templates/fcrepo-secret.yaml +13 -0
- data/chart/hyrax/templates/hpa.yaml +28 -0
- data/chart/hyrax/templates/ingress.yaml +41 -0
- data/chart/hyrax/templates/secrets.yaml +12 -0
- data/chart/hyrax/templates/service.yaml +15 -0
- data/chart/hyrax/templates/serviceaccount.yaml +12 -0
- data/chart/hyrax/templates/tests/test-connection.yaml +15 -0
- data/chart/hyrax/values.yaml +97 -0
- data/config/initializers/indexing_adapter_initializer.rb +7 -12
- data/config/initializers/listeners.rb +2 -0
- data/config/locales/hyrax.en.yml +1 -1
- data/config/metadata/basic_metadata.yaml +13 -0
- data/db/seeds.rb +20 -0
- data/docker-compose.yml +132 -0
- data/documentation/developing-your-hyrax-based-app.md +271 -0
- data/documentation/legacyREADME.md +336 -0
- data/documentation/note-about-versions.md +15 -0
- data/hyrax.gemspec +7 -8
- data/lib/generators/hyrax/templates/config/initializers/hyrax.rb +4 -6
- data/lib/generators/hyrax/templates/config/locales/hyrax.es.yml +1 -1
- data/lib/generators/hyrax/templates/db/seeds.rb +16 -14
- data/lib/generators/hyrax/templates/uv.html +1 -1
- data/lib/generators/hyrax/work_resource/templates/controller.rb.erb +0 -5
- data/lib/generators/hyrax/work_resource/templates/form.rb.erb +1 -1
- data/lib/generators/hyrax/work_resource/templates/work.html.erb_spec.rb.erb +3 -2
- data/lib/hyrax.rb +17 -0
- data/lib/hyrax/configuration.rb +340 -200
- data/lib/hyrax/event_store.rb +5 -0
- data/lib/hyrax/form_fields.rb +1 -1
- data/lib/hyrax/indexer.rb +19 -3
- data/lib/hyrax/publisher.rb +71 -2
- data/lib/hyrax/resource_sync/change_list_writer.rb +1 -1
- data/lib/hyrax/resource_sync/resource_list_writer.rb +1 -1
- data/lib/hyrax/schema.rb +2 -2
- data/lib/hyrax/specs/capybara.rb +98 -0
- data/lib/hyrax/specs/clamav.rb +15 -0
- data/lib/hyrax/specs/disable_animations_in_test_environment.rb +53 -0
- data/lib/hyrax/specs/engine_routes.rb +11 -0
- data/lib/hyrax/specs/shared_specs/change_set.rb +11 -0
- data/lib/hyrax/specs/shared_specs/factories/strategies/json_strategy.rb +13 -0
- data/lib/hyrax/specs/shared_specs/factories/strategies/valkyrie_resource.rb +0 -11
- data/lib/hyrax/specs/shared_specs/hydra_works.rb +6 -0
- data/lib/hyrax/specs/shared_specs/indexers.rb +22 -5
- data/lib/hyrax/specs/shared_specs/metadata.rb +64 -0
- data/lib/hyrax/specs/spy_listener.rb +52 -26
- data/lib/hyrax/transactions/container.rb +13 -1
- data/lib/hyrax/transactions/steps/add_file_sets.rb +35 -0
- data/lib/hyrax/transactions/steps/save.rb +10 -4
- data/lib/hyrax/transactions/steps/save_access_control.rb +29 -0
- data/lib/hyrax/transactions/steps/set_default_admin_set.rb +1 -1
- data/lib/hyrax/transactions/update_work.rb +3 -1
- data/lib/hyrax/transactions/work_create.rb +3 -1
- data/lib/hyrax/version.rb +1 -1
- data/lib/tasks/collection_type_global_id.rake +22 -0
- data/lib/tasks/default_admin_set.rake +5 -0
- data/lib/wings.rb +1 -1
- data/lib/wings/active_fedora_converter.rb +71 -123
- data/lib/wings/active_fedora_converter/default_work.rb +129 -0
- data/lib/wings/active_fedora_converter/nested_resource.rb +25 -0
- data/lib/wings/attribute_transformer.rb +28 -1
- data/lib/wings/converter_value_mapper.rb +70 -3
- data/lib/wings/model_registry.rb +4 -3
- data/lib/wings/model_transformer.rb +25 -7
- data/lib/wings/orm_converter.rb +19 -23
- data/lib/wings/services/custom_queries/find_collections_by_type.rb +1 -1
- data/lib/wings/services/custom_queries/find_file_metadata.rb +65 -38
- data/lib/wings/services/file_converter_service.rb +6 -55
- data/lib/wings/services/file_metadata_builder.rb +12 -8
- data/lib/wings/setup.rb +56 -9
- data/lib/wings/transformer_value_mapper.rb +1 -0
- data/lib/wings/valkyrie/metadata_adapter.rb +2 -2
- data/lib/wings/valkyrie/persister.rb +13 -14
- data/lib/wings/valkyrie/storage.rb +94 -0
- data/tasks/benchmark.rake +56 -0
- data/template.rb +1 -3
- metadata +346 -54
- data/lib/hyrax/callbacks.rb +0 -27
- data/lib/wings/hydra/pcdm/models/concerns/collection_valkyrie_behavior.rb +0 -28
- data/lib/wings/hydra/pcdm/models/concerns/object_valkyrie_behavior.rb +0 -28
- data/lib/wings/hydra/pcdm/models/concerns/pcdm_valkyrie_behavior.rb +0 -171
- data/lib/wings/hydra/works/models/concerns/collection_valkyrie_behavior.rb +0 -31
- data/lib/wings/hydra/works/models/concerns/file_set_valkyrie_behavior.rb +0 -31
- data/lib/wings/hydra/works/models/concerns/work_valkyrie_behavior.rb +0 -60
- data/lib/wings/models/concerns/collection_behavior.rb +0 -39
- data/lib/wings/models/multi_checksum.rb +0 -18
- data/lib/wings/services/id_converter_service.rb +0 -15
- data/lib/wings/valkyrie/storage/active_fedora.rb +0 -27
@@ -0,0 +1,8 @@
|
|
1
|
+
class AddUniqueConstraintToPermissionTemplateAccesses < ActiveRecord::Migration[5.2]
|
2
|
+
def change
|
3
|
+
add_index :permission_template_accesses,
|
4
|
+
[:permission_template_id, :agent_id, :agent_type, :access],
|
5
|
+
unique: true,
|
6
|
+
name: 'uk_permission_template_accesses'
|
7
|
+
end
|
8
|
+
end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
class ChangeSipityEntitySpecificResponsibility < ActiveRecord::Migration[5.2]
|
2
|
+
def change
|
3
|
+
if ActiveRecord::Base.connection.adapter_name == "PostgreSQL"
|
4
|
+
change_column :sipity_entity_specific_responsibilities, :entity_id, 'integer USING CAST(entity_id AS integer)'
|
5
|
+
else
|
6
|
+
change_column :sipity_entity_specific_responsibilities, :entity_id, :integer
|
7
|
+
end
|
8
|
+
end
|
9
|
+
end
|
@@ -0,0 +1,65 @@
|
|
1
|
+
# This migration comes from mailboxer_engine (originally 20110511145103)
|
2
|
+
class CreateMailboxer < ActiveRecord::Migration[4.2]
|
3
|
+
def self.up
|
4
|
+
#Tables
|
5
|
+
#Conversations
|
6
|
+
create_table :mailboxer_conversations do |t|
|
7
|
+
t.column :subject, :string, :default => ""
|
8
|
+
t.column :created_at, :datetime, :null => false
|
9
|
+
t.column :updated_at, :datetime, :null => false
|
10
|
+
end
|
11
|
+
#Receipts
|
12
|
+
create_table :mailboxer_receipts do |t|
|
13
|
+
t.references :receiver, :polymorphic => true
|
14
|
+
t.column :notification_id, :integer, :null => false
|
15
|
+
t.column :is_read, :boolean, :default => false
|
16
|
+
t.column :trashed, :boolean, :default => false
|
17
|
+
t.column :deleted, :boolean, :default => false
|
18
|
+
t.column :mailbox_type, :string, :limit => 25
|
19
|
+
t.column :created_at, :datetime, :null => false
|
20
|
+
t.column :updated_at, :datetime, :null => false
|
21
|
+
end
|
22
|
+
#Notifications and Messages
|
23
|
+
create_table :mailboxer_notifications do |t|
|
24
|
+
t.column :type, :string
|
25
|
+
t.column :body, :text
|
26
|
+
t.column :subject, :string, :default => ""
|
27
|
+
t.references :sender, :polymorphic => true
|
28
|
+
t.column :conversation_id, :integer
|
29
|
+
t.column :draft, :boolean, :default => false
|
30
|
+
t.string :notification_code, :default => nil
|
31
|
+
t.references :notified_object, :polymorphic => true, index: { name: 'mailboxer_notifications_notified_object' }
|
32
|
+
t.column :attachment, :string
|
33
|
+
t.column :updated_at, :datetime, :null => false
|
34
|
+
t.column :created_at, :datetime, :null => false
|
35
|
+
t.boolean :global, default: false
|
36
|
+
t.datetime :expires
|
37
|
+
end
|
38
|
+
|
39
|
+
#Indexes
|
40
|
+
#Conversations
|
41
|
+
#Receipts
|
42
|
+
add_index "mailboxer_receipts","notification_id"
|
43
|
+
|
44
|
+
#Messages
|
45
|
+
add_index "mailboxer_notifications","conversation_id"
|
46
|
+
|
47
|
+
#Foreign keys
|
48
|
+
#Conversations
|
49
|
+
#Receipts
|
50
|
+
add_foreign_key "mailboxer_receipts", "mailboxer_notifications", :name => "receipts_on_notification_id", :column => "notification_id"
|
51
|
+
#Messages
|
52
|
+
add_foreign_key "mailboxer_notifications", "mailboxer_conversations", :name => "notifications_on_conversation_id", :column => "conversation_id"
|
53
|
+
end
|
54
|
+
|
55
|
+
def self.down
|
56
|
+
#Tables
|
57
|
+
remove_foreign_key "mailboxer_receipts", :name => "receipts_on_notification_id"
|
58
|
+
remove_foreign_key "mailboxer_notifications", :name => "notifications_on_conversation_id"
|
59
|
+
|
60
|
+
#Indexes
|
61
|
+
drop_table :mailboxer_receipts
|
62
|
+
drop_table :mailboxer_conversations
|
63
|
+
drop_table :mailboxer_notifications
|
64
|
+
end
|
65
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# This migration comes from mailboxer_engine (originally 20131206080416)
|
2
|
+
class AddConversationOptout < ActiveRecord::Migration[4.2]
|
3
|
+
def self.up
|
4
|
+
create_table :mailboxer_conversation_opt_outs do |t|
|
5
|
+
t.references :unsubscriber, :polymorphic => true
|
6
|
+
t.references :conversation
|
7
|
+
end
|
8
|
+
add_foreign_key "mailboxer_conversation_opt_outs", "mailboxer_conversations", :name => "mb_opt_outs_on_conversations_id", :column => "conversation_id"
|
9
|
+
end
|
10
|
+
|
11
|
+
def self.down
|
12
|
+
remove_foreign_key "mailboxer_conversation_opt_outs", :name => "mb_opt_outs_on_conversations_id"
|
13
|
+
drop_table :mailboxer_conversation_opt_outs
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# This migration comes from mailboxer_engine (originally 20131206080417)
|
2
|
+
class AddMissingIndices < ActiveRecord::Migration[4.2]
|
3
|
+
def change
|
4
|
+
# We'll explicitly specify its name, as the auto-generated name is too long and exceeds 63
|
5
|
+
# characters limitation.
|
6
|
+
add_index :mailboxer_conversation_opt_outs, [:unsubscriber_id, :unsubscriber_type],
|
7
|
+
name: 'index_mailboxer_conversation_opt_outs_on_unsubscriber_id_type'
|
8
|
+
add_index :mailboxer_conversation_opt_outs, :conversation_id
|
9
|
+
|
10
|
+
add_index :mailboxer_notifications, :type
|
11
|
+
add_index :mailboxer_notifications, [:sender_id, :sender_type]
|
12
|
+
|
13
|
+
# We'll explicitly specify its name, as the auto-generated name is too long and exceeds 63
|
14
|
+
# characters limitation.
|
15
|
+
add_index :mailboxer_notifications, [:notified_object_id, :notified_object_type],
|
16
|
+
name: 'index_mailboxer_notifications_on_notified_object_id_and_type'
|
17
|
+
|
18
|
+
add_index :mailboxer_receipts, [:receiver_id, :receiver_type]
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# This migration comes from mailboxer_engine (originally 20151103080417)
|
2
|
+
class AddDeliveryTrackingInfoToMailboxerReceipts < ActiveRecord::Migration[4.2]
|
3
|
+
def change
|
4
|
+
add_column :mailboxer_receipts, :is_delivered, :boolean, default: false
|
5
|
+
add_column :mailboxer_receipts, :delivery_method, :string
|
6
|
+
add_column :mailboxer_receipts, :message_id, :string
|
7
|
+
end
|
8
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
class CreateQaLocalAuthorityEntries < ActiveRecord::Migration[5.2]
|
2
|
+
def change
|
3
|
+
create_table :qa_local_authority_entries do |t|
|
4
|
+
t.references :local_authority, foreign_key: { to_table: :qa_local_authorities }, index: true
|
5
|
+
t.string :label
|
6
|
+
t.string :uri
|
7
|
+
|
8
|
+
t.timestamps
|
9
|
+
end
|
10
|
+
add_index :qa_local_authority_entries, :uri, unique: true
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# This migration comes from noid_rails_engine (originally 20160610010003)
|
3
|
+
|
4
|
+
class CreateMinterStates < ActiveRecord::Migration[4.2]
|
5
|
+
def change
|
6
|
+
create_table :minter_states do |t|
|
7
|
+
t.string :namespace, null: false, default: 'default'
|
8
|
+
t.string :template, null: false
|
9
|
+
t.text :counters
|
10
|
+
t.bigint :seq, default: 0
|
11
|
+
t.binary :random
|
12
|
+
t.timestamps null: false
|
13
|
+
end
|
14
|
+
# Use both model and DB-level constraints for consistency while scaling horizontally
|
15
|
+
add_index :minter_states, :namespace, unique: true
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,563 @@
|
|
1
|
+
# This file is auto-generated from the current state of the database. Instead
|
2
|
+
# of editing this file, please use the migrations feature of Active Record to
|
3
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
4
|
+
#
|
5
|
+
# Note that this schema.rb definition is the authoritative source for your
|
6
|
+
# database schema. If you need to create the application database on another
|
7
|
+
# system, you should be using db:schema:load, not running all the migrations
|
8
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
9
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
10
|
+
#
|
11
|
+
# It's strongly recommended that you check this file into your version control system.
|
12
|
+
|
13
|
+
ActiveRecord::Schema.define(version: 2020_08_21_212903) do
|
14
|
+
|
15
|
+
# These are extensions that must be enabled in order to support this database
|
16
|
+
enable_extension "plpgsql"
|
17
|
+
|
18
|
+
create_table "bookmarks", id: :serial, force: :cascade do |t|
|
19
|
+
t.integer "user_id", null: false
|
20
|
+
t.string "user_type"
|
21
|
+
t.string "document_id"
|
22
|
+
t.string "document_type"
|
23
|
+
t.binary "title"
|
24
|
+
t.datetime "created_at", null: false
|
25
|
+
t.datetime "updated_at", null: false
|
26
|
+
t.index ["document_id"], name: "index_bookmarks_on_document_id"
|
27
|
+
t.index ["user_id"], name: "index_bookmarks_on_user_id"
|
28
|
+
end
|
29
|
+
|
30
|
+
create_table "checksum_audit_logs", force: :cascade do |t|
|
31
|
+
t.string "file_set_id"
|
32
|
+
t.string "file_id"
|
33
|
+
t.string "checked_uri"
|
34
|
+
t.string "expected_result"
|
35
|
+
t.string "actual_result"
|
36
|
+
t.datetime "created_at", null: false
|
37
|
+
t.datetime "updated_at", null: false
|
38
|
+
t.boolean "passed"
|
39
|
+
t.index ["checked_uri"], name: "index_checksum_audit_logs_on_checked_uri"
|
40
|
+
t.index ["file_set_id", "file_id"], name: "by_file_set_id_and_file_id"
|
41
|
+
end
|
42
|
+
|
43
|
+
create_table "collection_branding_infos", force: :cascade do |t|
|
44
|
+
t.string "collection_id"
|
45
|
+
t.string "role"
|
46
|
+
t.string "local_path"
|
47
|
+
t.string "alt_text"
|
48
|
+
t.string "target_url"
|
49
|
+
t.integer "height"
|
50
|
+
t.integer "width"
|
51
|
+
t.datetime "created_at", null: false
|
52
|
+
t.datetime "updated_at", null: false
|
53
|
+
end
|
54
|
+
|
55
|
+
create_table "collection_type_participants", force: :cascade do |t|
|
56
|
+
t.bigint "hyrax_collection_type_id"
|
57
|
+
t.string "agent_type"
|
58
|
+
t.string "agent_id"
|
59
|
+
t.string "access"
|
60
|
+
t.datetime "created_at", null: false
|
61
|
+
t.datetime "updated_at", null: false
|
62
|
+
t.index ["hyrax_collection_type_id"], name: "hyrax_collection_type_id"
|
63
|
+
end
|
64
|
+
|
65
|
+
create_table "content_blocks", force: :cascade do |t|
|
66
|
+
t.string "name"
|
67
|
+
t.text "value"
|
68
|
+
t.datetime "created_at", null: false
|
69
|
+
t.datetime "updated_at", null: false
|
70
|
+
t.string "external_key"
|
71
|
+
end
|
72
|
+
|
73
|
+
create_table "curation_concerns_operations", force: :cascade do |t|
|
74
|
+
t.string "status"
|
75
|
+
t.string "operation_type"
|
76
|
+
t.string "job_class"
|
77
|
+
t.string "job_id"
|
78
|
+
t.string "type"
|
79
|
+
t.text "message"
|
80
|
+
t.bigint "user_id"
|
81
|
+
t.integer "parent_id"
|
82
|
+
t.integer "lft", null: false
|
83
|
+
t.integer "rgt", null: false
|
84
|
+
t.integer "depth", default: 0, null: false
|
85
|
+
t.integer "children_count", default: 0, null: false
|
86
|
+
t.datetime "created_at", null: false
|
87
|
+
t.datetime "updated_at", null: false
|
88
|
+
t.index ["lft"], name: "index_curation_concerns_operations_on_lft"
|
89
|
+
t.index ["parent_id"], name: "index_curation_concerns_operations_on_parent_id"
|
90
|
+
t.index ["rgt"], name: "index_curation_concerns_operations_on_rgt"
|
91
|
+
t.index ["user_id"], name: "index_curation_concerns_operations_on_user_id"
|
92
|
+
end
|
93
|
+
|
94
|
+
create_table "featured_works", force: :cascade do |t|
|
95
|
+
t.integer "order", default: 5
|
96
|
+
t.string "work_id"
|
97
|
+
t.datetime "created_at", null: false
|
98
|
+
t.datetime "updated_at", null: false
|
99
|
+
t.index ["order"], name: "index_featured_works_on_order"
|
100
|
+
t.index ["work_id"], name: "index_featured_works_on_work_id"
|
101
|
+
end
|
102
|
+
|
103
|
+
create_table "file_download_stats", force: :cascade do |t|
|
104
|
+
t.datetime "date"
|
105
|
+
t.integer "downloads"
|
106
|
+
t.string "file_id"
|
107
|
+
t.datetime "created_at", null: false
|
108
|
+
t.datetime "updated_at", null: false
|
109
|
+
t.integer "user_id"
|
110
|
+
t.index ["file_id"], name: "index_file_download_stats_on_file_id"
|
111
|
+
t.index ["user_id"], name: "index_file_download_stats_on_user_id"
|
112
|
+
end
|
113
|
+
|
114
|
+
create_table "file_view_stats", force: :cascade do |t|
|
115
|
+
t.datetime "date"
|
116
|
+
t.integer "views"
|
117
|
+
t.string "file_id"
|
118
|
+
t.datetime "created_at", null: false
|
119
|
+
t.datetime "updated_at", null: false
|
120
|
+
t.integer "user_id"
|
121
|
+
t.index ["file_id"], name: "index_file_view_stats_on_file_id"
|
122
|
+
t.index ["user_id"], name: "index_file_view_stats_on_user_id"
|
123
|
+
end
|
124
|
+
|
125
|
+
create_table "hyrax_collection_types", force: :cascade do |t|
|
126
|
+
t.string "title"
|
127
|
+
t.text "description"
|
128
|
+
t.string "machine_id"
|
129
|
+
t.boolean "nestable", default: true, null: false
|
130
|
+
t.boolean "discoverable", default: true, null: false
|
131
|
+
t.boolean "sharable", default: true, null: false
|
132
|
+
t.boolean "allow_multiple_membership", default: true, null: false
|
133
|
+
t.boolean "require_membership", default: false, null: false
|
134
|
+
t.boolean "assigns_workflow", default: false, null: false
|
135
|
+
t.boolean "assigns_visibility", default: false, null: false
|
136
|
+
t.boolean "share_applies_to_new_works", default: true, null: false
|
137
|
+
t.boolean "brandable", default: true, null: false
|
138
|
+
t.string "badge_color", default: "#663333"
|
139
|
+
t.index ["machine_id"], name: "index_hyrax_collection_types_on_machine_id", unique: true
|
140
|
+
end
|
141
|
+
|
142
|
+
create_table "hyrax_features", force: :cascade do |t|
|
143
|
+
t.string "key", null: false
|
144
|
+
t.boolean "enabled", default: false, null: false
|
145
|
+
t.datetime "created_at", null: false
|
146
|
+
t.datetime "updated_at", null: false
|
147
|
+
end
|
148
|
+
|
149
|
+
create_table "job_io_wrappers", force: :cascade do |t|
|
150
|
+
t.bigint "user_id"
|
151
|
+
t.bigint "uploaded_file_id"
|
152
|
+
t.string "file_set_id"
|
153
|
+
t.string "mime_type"
|
154
|
+
t.string "original_name"
|
155
|
+
t.string "path"
|
156
|
+
t.string "relation"
|
157
|
+
t.datetime "created_at", null: false
|
158
|
+
t.datetime "updated_at", null: false
|
159
|
+
t.index ["uploaded_file_id"], name: "index_job_io_wrappers_on_uploaded_file_id"
|
160
|
+
t.index ["user_id"], name: "index_job_io_wrappers_on_user_id"
|
161
|
+
end
|
162
|
+
|
163
|
+
create_table "mailboxer_conversation_opt_outs", id: :serial, force: :cascade do |t|
|
164
|
+
t.string "unsubscriber_type"
|
165
|
+
t.integer "unsubscriber_id"
|
166
|
+
t.integer "conversation_id"
|
167
|
+
t.index ["conversation_id"], name: "index_mailboxer_conversation_opt_outs_on_conversation_id"
|
168
|
+
t.index ["unsubscriber_id", "unsubscriber_type"], name: "index_mailboxer_conversation_opt_outs_on_unsubscriber_id_type"
|
169
|
+
end
|
170
|
+
|
171
|
+
create_table "mailboxer_conversations", id: :serial, force: :cascade do |t|
|
172
|
+
t.string "subject", default: ""
|
173
|
+
t.datetime "created_at", null: false
|
174
|
+
t.datetime "updated_at", null: false
|
175
|
+
end
|
176
|
+
|
177
|
+
create_table "mailboxer_notifications", id: :serial, force: :cascade do |t|
|
178
|
+
t.string "type"
|
179
|
+
t.text "body"
|
180
|
+
t.string "subject", default: ""
|
181
|
+
t.string "sender_type"
|
182
|
+
t.integer "sender_id"
|
183
|
+
t.integer "conversation_id"
|
184
|
+
t.boolean "draft", default: false
|
185
|
+
t.string "notification_code"
|
186
|
+
t.string "notified_object_type"
|
187
|
+
t.integer "notified_object_id"
|
188
|
+
t.string "attachment"
|
189
|
+
t.datetime "updated_at", null: false
|
190
|
+
t.datetime "created_at", null: false
|
191
|
+
t.boolean "global", default: false
|
192
|
+
t.datetime "expires"
|
193
|
+
t.index ["conversation_id"], name: "index_mailboxer_notifications_on_conversation_id"
|
194
|
+
t.index ["notified_object_id", "notified_object_type"], name: "index_mailboxer_notifications_on_notified_object_id_and_type"
|
195
|
+
t.index ["notified_object_type", "notified_object_id"], name: "mailboxer_notifications_notified_object"
|
196
|
+
t.index ["sender_id", "sender_type"], name: "index_mailboxer_notifications_on_sender_id_and_sender_type"
|
197
|
+
t.index ["type"], name: "index_mailboxer_notifications_on_type"
|
198
|
+
end
|
199
|
+
|
200
|
+
create_table "mailboxer_receipts", id: :serial, force: :cascade do |t|
|
201
|
+
t.string "receiver_type"
|
202
|
+
t.integer "receiver_id"
|
203
|
+
t.integer "notification_id", null: false
|
204
|
+
t.boolean "is_read", default: false
|
205
|
+
t.boolean "trashed", default: false
|
206
|
+
t.boolean "deleted", default: false
|
207
|
+
t.string "mailbox_type", limit: 25
|
208
|
+
t.datetime "created_at", null: false
|
209
|
+
t.datetime "updated_at", null: false
|
210
|
+
t.boolean "is_delivered", default: false
|
211
|
+
t.string "delivery_method"
|
212
|
+
t.string "message_id"
|
213
|
+
t.index ["notification_id"], name: "index_mailboxer_receipts_on_notification_id"
|
214
|
+
t.index ["receiver_id", "receiver_type"], name: "index_mailboxer_receipts_on_receiver_id_and_receiver_type"
|
215
|
+
end
|
216
|
+
|
217
|
+
create_table "minter_states", id: :serial, force: :cascade do |t|
|
218
|
+
t.string "namespace", default: "default", null: false
|
219
|
+
t.string "template", null: false
|
220
|
+
t.text "counters"
|
221
|
+
t.bigint "seq", default: 0
|
222
|
+
t.binary "rand"
|
223
|
+
t.datetime "created_at", null: false
|
224
|
+
t.datetime "updated_at", null: false
|
225
|
+
t.index ["namespace"], name: "index_minter_states_on_namespace", unique: true
|
226
|
+
end
|
227
|
+
|
228
|
+
create_table "permission_template_accesses", force: :cascade do |t|
|
229
|
+
t.bigint "permission_template_id"
|
230
|
+
t.string "agent_type"
|
231
|
+
t.string "agent_id"
|
232
|
+
t.string "access"
|
233
|
+
t.datetime "created_at", null: false
|
234
|
+
t.datetime "updated_at", null: false
|
235
|
+
t.index ["permission_template_id", "agent_id", "agent_type", "access"], name: "uk_permission_template_accesses", unique: true
|
236
|
+
t.index ["permission_template_id"], name: "index_permission_template_accesses_on_permission_template_id"
|
237
|
+
end
|
238
|
+
|
239
|
+
create_table "permission_templates", force: :cascade do |t|
|
240
|
+
t.string "source_id"
|
241
|
+
t.string "visibility"
|
242
|
+
t.datetime "created_at", null: false
|
243
|
+
t.datetime "updated_at", null: false
|
244
|
+
t.date "release_date"
|
245
|
+
t.string "release_period"
|
246
|
+
t.index ["source_id"], name: "index_permission_templates_on_source_id", unique: true
|
247
|
+
end
|
248
|
+
|
249
|
+
create_table "proxy_deposit_requests", force: :cascade do |t|
|
250
|
+
t.string "work_id", null: false
|
251
|
+
t.bigint "sending_user_id", null: false
|
252
|
+
t.bigint "receiving_user_id", null: false
|
253
|
+
t.datetime "fulfillment_date"
|
254
|
+
t.string "status", default: "pending", null: false
|
255
|
+
t.text "sender_comment"
|
256
|
+
t.text "receiver_comment"
|
257
|
+
t.datetime "created_at", null: false
|
258
|
+
t.datetime "updated_at", null: false
|
259
|
+
t.index ["receiving_user_id"], name: "index_proxy_deposit_requests_on_receiving_user_id"
|
260
|
+
t.index ["sending_user_id"], name: "index_proxy_deposit_requests_on_sending_user_id"
|
261
|
+
end
|
262
|
+
|
263
|
+
create_table "proxy_deposit_rights", force: :cascade do |t|
|
264
|
+
t.bigint "grantor_id"
|
265
|
+
t.bigint "grantee_id"
|
266
|
+
t.datetime "created_at", null: false
|
267
|
+
t.datetime "updated_at", null: false
|
268
|
+
t.index ["grantee_id"], name: "index_proxy_deposit_rights_on_grantee_id"
|
269
|
+
t.index ["grantor_id"], name: "index_proxy_deposit_rights_on_grantor_id"
|
270
|
+
end
|
271
|
+
|
272
|
+
create_table "qa_local_authorities", force: :cascade do |t|
|
273
|
+
t.string "name"
|
274
|
+
t.datetime "created_at", null: false
|
275
|
+
t.datetime "updated_at", null: false
|
276
|
+
t.index ["name"], name: "index_qa_local_authorities_on_name", unique: true
|
277
|
+
end
|
278
|
+
|
279
|
+
create_table "qa_local_authority_entries", force: :cascade do |t|
|
280
|
+
t.bigint "local_authority_id"
|
281
|
+
t.string "label"
|
282
|
+
t.string "uri"
|
283
|
+
t.datetime "created_at", null: false
|
284
|
+
t.datetime "updated_at", null: false
|
285
|
+
t.index ["local_authority_id"], name: "index_qa_local_authority_entries_on_local_authority_id"
|
286
|
+
t.index ["uri"], name: "index_qa_local_authority_entries_on_uri", unique: true
|
287
|
+
end
|
288
|
+
|
289
|
+
create_table "searches", id: :serial, force: :cascade do |t|
|
290
|
+
t.binary "query_params"
|
291
|
+
t.integer "user_id"
|
292
|
+
t.string "user_type"
|
293
|
+
t.datetime "created_at", null: false
|
294
|
+
t.datetime "updated_at", null: false
|
295
|
+
t.index ["user_id"], name: "index_searches_on_user_id"
|
296
|
+
end
|
297
|
+
|
298
|
+
create_table "single_use_links", force: :cascade do |t|
|
299
|
+
t.string "download_key"
|
300
|
+
t.string "path"
|
301
|
+
t.string "item_id"
|
302
|
+
t.datetime "expires"
|
303
|
+
t.datetime "created_at", null: false
|
304
|
+
t.datetime "updated_at", null: false
|
305
|
+
end
|
306
|
+
|
307
|
+
create_table "sipity_agents", force: :cascade do |t|
|
308
|
+
t.string "proxy_for_id", null: false
|
309
|
+
t.string "proxy_for_type", null: false
|
310
|
+
t.datetime "created_at", null: false
|
311
|
+
t.datetime "updated_at", null: false
|
312
|
+
t.index ["proxy_for_id", "proxy_for_type"], name: "sipity_agents_proxy_for", unique: true
|
313
|
+
end
|
314
|
+
|
315
|
+
create_table "sipity_comments", force: :cascade do |t|
|
316
|
+
t.integer "entity_id", null: false
|
317
|
+
t.integer "agent_id", null: false
|
318
|
+
t.text "comment"
|
319
|
+
t.datetime "created_at", null: false
|
320
|
+
t.datetime "updated_at", null: false
|
321
|
+
t.index ["agent_id"], name: "index_sipity_comments_on_agent_id"
|
322
|
+
t.index ["created_at"], name: "index_sipity_comments_on_created_at"
|
323
|
+
t.index ["entity_id"], name: "index_sipity_comments_on_entity_id"
|
324
|
+
end
|
325
|
+
|
326
|
+
create_table "sipity_entities", force: :cascade do |t|
|
327
|
+
t.string "proxy_for_global_id", null: false
|
328
|
+
t.integer "workflow_id", null: false
|
329
|
+
t.integer "workflow_state_id"
|
330
|
+
t.datetime "created_at", null: false
|
331
|
+
t.datetime "updated_at", null: false
|
332
|
+
t.index ["proxy_for_global_id"], name: "sipity_entities_proxy_for_global_id", unique: true
|
333
|
+
t.index ["workflow_id"], name: "index_sipity_entities_on_workflow_id"
|
334
|
+
t.index ["workflow_state_id"], name: "index_sipity_entities_on_workflow_state_id"
|
335
|
+
end
|
336
|
+
|
337
|
+
create_table "sipity_entity_specific_responsibilities", force: :cascade do |t|
|
338
|
+
t.integer "workflow_role_id", null: false
|
339
|
+
t.integer "entity_id", null: false
|
340
|
+
t.integer "agent_id", null: false
|
341
|
+
t.datetime "created_at", null: false
|
342
|
+
t.datetime "updated_at", null: false
|
343
|
+
t.index ["agent_id"], name: "sipity_entity_specific_responsibilities_agent"
|
344
|
+
t.index ["entity_id"], name: "sipity_entity_specific_responsibilities_entity"
|
345
|
+
t.index ["workflow_role_id", "entity_id", "agent_id"], name: "sipity_entity_specific_responsibilities_aggregate", unique: true
|
346
|
+
t.index ["workflow_role_id"], name: "sipity_entity_specific_responsibilities_role"
|
347
|
+
end
|
348
|
+
|
349
|
+
create_table "sipity_notifiable_contexts", force: :cascade do |t|
|
350
|
+
t.integer "scope_for_notification_id", null: false
|
351
|
+
t.string "scope_for_notification_type", null: false
|
352
|
+
t.string "reason_for_notification", null: false
|
353
|
+
t.integer "notification_id", null: false
|
354
|
+
t.datetime "created_at", null: false
|
355
|
+
t.datetime "updated_at", null: false
|
356
|
+
t.index ["notification_id"], name: "sipity_notifiable_contexts_notification_id"
|
357
|
+
t.index ["scope_for_notification_id", "scope_for_notification_type", "reason_for_notification", "notification_id"], name: "sipity_notifiable_contexts_concern_surrogate", unique: true
|
358
|
+
t.index ["scope_for_notification_id", "scope_for_notification_type", "reason_for_notification"], name: "sipity_notifiable_contexts_concern_context"
|
359
|
+
t.index ["scope_for_notification_id", "scope_for_notification_type"], name: "sipity_notifiable_contexts_concern"
|
360
|
+
end
|
361
|
+
|
362
|
+
create_table "sipity_notification_recipients", force: :cascade do |t|
|
363
|
+
t.integer "notification_id", null: false
|
364
|
+
t.integer "role_id", null: false
|
365
|
+
t.string "recipient_strategy", null: false
|
366
|
+
t.datetime "created_at", null: false
|
367
|
+
t.datetime "updated_at", null: false
|
368
|
+
t.index ["notification_id", "role_id", "recipient_strategy"], name: "sipity_notifications_recipients_surrogate"
|
369
|
+
t.index ["notification_id"], name: "sipity_notification_recipients_notification"
|
370
|
+
t.index ["recipient_strategy"], name: "sipity_notification_recipients_recipient_strategy"
|
371
|
+
t.index ["role_id"], name: "sipity_notification_recipients_role"
|
372
|
+
end
|
373
|
+
|
374
|
+
create_table "sipity_notifications", force: :cascade do |t|
|
375
|
+
t.string "name", null: false
|
376
|
+
t.string "notification_type", null: false
|
377
|
+
t.datetime "created_at", null: false
|
378
|
+
t.datetime "updated_at", null: false
|
379
|
+
t.index ["name"], name: "index_sipity_notifications_on_name", unique: true
|
380
|
+
t.index ["notification_type"], name: "index_sipity_notifications_on_notification_type"
|
381
|
+
end
|
382
|
+
|
383
|
+
create_table "sipity_roles", force: :cascade do |t|
|
384
|
+
t.string "name", null: false
|
385
|
+
t.text "description"
|
386
|
+
t.datetime "created_at", null: false
|
387
|
+
t.datetime "updated_at", null: false
|
388
|
+
t.index ["name"], name: "index_sipity_roles_on_name", unique: true
|
389
|
+
end
|
390
|
+
|
391
|
+
create_table "sipity_workflow_actions", force: :cascade do |t|
|
392
|
+
t.integer "workflow_id", null: false
|
393
|
+
t.integer "resulting_workflow_state_id"
|
394
|
+
t.string "name", null: false
|
395
|
+
t.datetime "created_at", null: false
|
396
|
+
t.datetime "updated_at", null: false
|
397
|
+
t.index ["resulting_workflow_state_id"], name: "sipity_workflow_actions_resulting_workflow_state"
|
398
|
+
t.index ["workflow_id", "name"], name: "sipity_workflow_actions_aggregate", unique: true
|
399
|
+
t.index ["workflow_id"], name: "sipity_workflow_actions_workflow"
|
400
|
+
end
|
401
|
+
|
402
|
+
create_table "sipity_workflow_methods", force: :cascade do |t|
|
403
|
+
t.string "service_name", null: false
|
404
|
+
t.integer "weight", null: false
|
405
|
+
t.integer "workflow_action_id", null: false
|
406
|
+
t.datetime "created_at", null: false
|
407
|
+
t.datetime "updated_at", null: false
|
408
|
+
t.index ["workflow_action_id"], name: "index_sipity_workflow_methods_on_workflow_action_id"
|
409
|
+
end
|
410
|
+
|
411
|
+
create_table "sipity_workflow_responsibilities", force: :cascade do |t|
|
412
|
+
t.integer "agent_id", null: false
|
413
|
+
t.integer "workflow_role_id", null: false
|
414
|
+
t.datetime "created_at", null: false
|
415
|
+
t.datetime "updated_at", null: false
|
416
|
+
t.index ["agent_id", "workflow_role_id"], name: "sipity_workflow_responsibilities_aggregate", unique: true
|
417
|
+
end
|
418
|
+
|
419
|
+
create_table "sipity_workflow_roles", force: :cascade do |t|
|
420
|
+
t.integer "workflow_id", null: false
|
421
|
+
t.integer "role_id", null: false
|
422
|
+
t.datetime "created_at", null: false
|
423
|
+
t.datetime "updated_at", null: false
|
424
|
+
t.index ["workflow_id", "role_id"], name: "sipity_workflow_roles_aggregate", unique: true
|
425
|
+
end
|
426
|
+
|
427
|
+
create_table "sipity_workflow_state_action_permissions", force: :cascade do |t|
|
428
|
+
t.integer "workflow_role_id", null: false
|
429
|
+
t.integer "workflow_state_action_id", null: false
|
430
|
+
t.datetime "created_at", null: false
|
431
|
+
t.datetime "updated_at", null: false
|
432
|
+
t.index ["workflow_role_id", "workflow_state_action_id"], name: "sipity_workflow_state_action_permissions_aggregate", unique: true
|
433
|
+
end
|
434
|
+
|
435
|
+
create_table "sipity_workflow_state_actions", force: :cascade do |t|
|
436
|
+
t.integer "originating_workflow_state_id", null: false
|
437
|
+
t.integer "workflow_action_id", null: false
|
438
|
+
t.datetime "created_at", null: false
|
439
|
+
t.datetime "updated_at", null: false
|
440
|
+
t.index ["originating_workflow_state_id", "workflow_action_id"], name: "sipity_workflow_state_actions_aggregate", unique: true
|
441
|
+
end
|
442
|
+
|
443
|
+
create_table "sipity_workflow_states", force: :cascade do |t|
|
444
|
+
t.integer "workflow_id", null: false
|
445
|
+
t.string "name", null: false
|
446
|
+
t.datetime "created_at", null: false
|
447
|
+
t.datetime "updated_at", null: false
|
448
|
+
t.index ["name"], name: "index_sipity_workflow_states_on_name"
|
449
|
+
t.index ["workflow_id", "name"], name: "sipity_type_state_aggregate", unique: true
|
450
|
+
end
|
451
|
+
|
452
|
+
create_table "sipity_workflows", force: :cascade do |t|
|
453
|
+
t.string "name", null: false
|
454
|
+
t.string "label"
|
455
|
+
t.text "description"
|
456
|
+
t.datetime "created_at", null: false
|
457
|
+
t.datetime "updated_at", null: false
|
458
|
+
t.integer "permission_template_id"
|
459
|
+
t.boolean "active"
|
460
|
+
t.boolean "allows_access_grant"
|
461
|
+
t.index ["permission_template_id", "name"], name: "index_sipity_workflows_on_permission_template_and_name", unique: true
|
462
|
+
end
|
463
|
+
|
464
|
+
create_table "tinymce_assets", force: :cascade do |t|
|
465
|
+
t.string "file"
|
466
|
+
t.datetime "created_at", null: false
|
467
|
+
t.datetime "updated_at", null: false
|
468
|
+
end
|
469
|
+
|
470
|
+
create_table "trophies", force: :cascade do |t|
|
471
|
+
t.integer "user_id"
|
472
|
+
t.string "work_id"
|
473
|
+
t.datetime "created_at", null: false
|
474
|
+
t.datetime "updated_at", null: false
|
475
|
+
end
|
476
|
+
|
477
|
+
create_table "uploaded_files", force: :cascade do |t|
|
478
|
+
t.string "file"
|
479
|
+
t.bigint "user_id"
|
480
|
+
t.string "file_set_uri"
|
481
|
+
t.datetime "created_at", null: false
|
482
|
+
t.datetime "updated_at", null: false
|
483
|
+
t.index ["file_set_uri"], name: "index_uploaded_files_on_file_set_uri"
|
484
|
+
t.index ["user_id"], name: "index_uploaded_files_on_user_id"
|
485
|
+
end
|
486
|
+
|
487
|
+
create_table "user_stats", force: :cascade do |t|
|
488
|
+
t.integer "user_id"
|
489
|
+
t.datetime "date"
|
490
|
+
t.integer "file_views"
|
491
|
+
t.integer "file_downloads"
|
492
|
+
t.datetime "created_at", null: false
|
493
|
+
t.datetime "updated_at", null: false
|
494
|
+
t.integer "work_views"
|
495
|
+
t.index ["user_id"], name: "index_user_stats_on_user_id"
|
496
|
+
end
|
497
|
+
|
498
|
+
create_table "users", force: :cascade do |t|
|
499
|
+
t.string "email", default: "", null: false
|
500
|
+
t.string "encrypted_password", default: "", null: false
|
501
|
+
t.string "reset_password_token"
|
502
|
+
t.datetime "reset_password_sent_at"
|
503
|
+
t.datetime "remember_created_at"
|
504
|
+
t.datetime "created_at", null: false
|
505
|
+
t.datetime "updated_at", null: false
|
506
|
+
t.boolean "guest", default: false
|
507
|
+
t.string "facebook_handle"
|
508
|
+
t.string "twitter_handle"
|
509
|
+
t.string "googleplus_handle"
|
510
|
+
t.string "display_name"
|
511
|
+
t.string "address"
|
512
|
+
t.string "admin_area"
|
513
|
+
t.string "department"
|
514
|
+
t.string "title"
|
515
|
+
t.string "office"
|
516
|
+
t.string "chat_id"
|
517
|
+
t.string "website"
|
518
|
+
t.string "affiliation"
|
519
|
+
t.string "telephone"
|
520
|
+
t.string "avatar_file_name"
|
521
|
+
t.string "avatar_content_type"
|
522
|
+
t.integer "avatar_file_size"
|
523
|
+
t.datetime "avatar_updated_at"
|
524
|
+
t.string "linkedin_handle"
|
525
|
+
t.string "orcid"
|
526
|
+
t.string "arkivo_token"
|
527
|
+
t.string "arkivo_subscription"
|
528
|
+
t.binary "zotero_token"
|
529
|
+
t.string "zotero_userid"
|
530
|
+
t.string "preferred_locale"
|
531
|
+
t.index ["email"], name: "index_users_on_email", unique: true
|
532
|
+
t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
|
533
|
+
end
|
534
|
+
|
535
|
+
create_table "version_committers", force: :cascade do |t|
|
536
|
+
t.string "obj_id"
|
537
|
+
t.string "datastream_id"
|
538
|
+
t.string "version_id"
|
539
|
+
t.string "committer_login"
|
540
|
+
t.datetime "created_at", null: false
|
541
|
+
t.datetime "updated_at", null: false
|
542
|
+
end
|
543
|
+
|
544
|
+
create_table "work_view_stats", force: :cascade do |t|
|
545
|
+
t.datetime "date"
|
546
|
+
t.integer "work_views"
|
547
|
+
t.string "work_id"
|
548
|
+
t.datetime "created_at", null: false
|
549
|
+
t.datetime "updated_at", null: false
|
550
|
+
t.integer "user_id"
|
551
|
+
t.index ["user_id"], name: "index_work_view_stats_on_user_id"
|
552
|
+
t.index ["work_id"], name: "index_work_view_stats_on_work_id"
|
553
|
+
end
|
554
|
+
|
555
|
+
add_foreign_key "collection_type_participants", "hyrax_collection_types"
|
556
|
+
add_foreign_key "curation_concerns_operations", "users"
|
557
|
+
add_foreign_key "mailboxer_conversation_opt_outs", "mailboxer_conversations", column: "conversation_id", name: "mb_opt_outs_on_conversations_id"
|
558
|
+
add_foreign_key "mailboxer_notifications", "mailboxer_conversations", column: "conversation_id", name: "notifications_on_conversation_id"
|
559
|
+
add_foreign_key "mailboxer_receipts", "mailboxer_notifications", column: "notification_id", name: "receipts_on_notification_id"
|
560
|
+
add_foreign_key "permission_template_accesses", "permission_templates"
|
561
|
+
add_foreign_key "qa_local_authority_entries", "qa_local_authorities", column: "local_authority_id"
|
562
|
+
add_foreign_key "uploaded_files", "users"
|
563
|
+
end
|