enju_library 0.1.0.pre33 → 0.1.0.pre34
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/accepts_controller.rb +14 -14
- data/app/controllers/baskets_controller.rb +15 -21
- data/app/controllers/libraries_controller.rb +12 -12
- data/app/controllers/library_groups_controller.rb +5 -6
- data/app/controllers/shelves_controller.rb +17 -17
- data/app/controllers/subscribes_controller.rb +10 -10
- data/app/controllers/subscriptions_controller.rb +11 -11
- data/app/models/accept.rb +7 -12
- data/app/models/basket.rb +6 -6
- data/app/models/bookstore.rb +2 -2
- data/app/models/budget_type.rb +1 -1
- data/app/models/library.rb +8 -8
- data/app/models/library_group.rb +5 -21
- data/app/models/request_status_type.rb +1 -1
- data/app/models/request_type.rb +1 -1
- data/app/models/search_engine.rb +6 -6
- data/app/models/shelf.rb +5 -5
- data/app/models/subscribe.rb +3 -3
- data/app/models/subscription.rb +5 -5
- data/app/views/accepts/_form.html.erb +1 -1
- data/app/views/accepts/_list.html.erb +3 -3
- data/app/views/accepts/edit.html.erb +1 -1
- data/app/views/accepts/index.html.erb +6 -6
- data/app/views/accepts/{index.csv.erb → index.txt.csv} +0 -0
- data/app/views/accepts/new.html.erb +1 -1
- data/app/views/accepts/show.html.erb +2 -2
- data/app/views/baskets/edit.html.erb +2 -2
- data/app/views/baskets/index.html.erb +3 -2
- data/app/views/baskets/new.html.erb +6 -6
- data/app/views/baskets/show.html.erb +1 -1
- data/app/views/bookstores/_form.html.erb +3 -3
- data/app/views/bookstores/edit.html.erb +1 -1
- data/app/views/bookstores/index.html.erb +3 -3
- data/app/views/bookstores/new.html.erb +1 -1
- data/app/views/bookstores/show.html.erb +1 -1
- data/app/views/budget_types/_form.html.erb +2 -2
- data/app/views/budget_types/edit.html.erb +1 -1
- data/app/views/budget_types/index.html.erb +6 -6
- data/app/views/budget_types/new.html.erb +1 -1
- data/app/views/budget_types/show.html.erb +1 -1
- data/app/views/libraries/_calendar.html.erb +2 -2
- data/app/views/libraries/_form.html.erb +12 -12
- data/app/views/libraries/edit.html.erb +1 -1
- data/app/views/libraries/index.html.erb +18 -14
- data/app/views/libraries/new.html.erb +1 -1
- data/app/views/libraries/show.html.erb +7 -7
- data/app/views/library_groups/_form.html.erb +4 -4
- data/app/views/library_groups/edit.html.erb +1 -1
- data/app/views/library_groups/index.html.erb +2 -2
- data/app/views/library_groups/new.html.erb +1 -1
- data/app/views/library_groups/show.html.erb +2 -2
- data/app/views/request_status_types/edit.html.erb +1 -1
- data/app/views/request_status_types/index.html.erb +3 -3
- data/app/views/request_status_types/new.html.erb +1 -1
- data/app/views/request_status_types/show.html.erb +1 -1
- data/app/views/request_types/edit.html.erb +1 -1
- data/app/views/request_types/index.html.erb +3 -3
- data/app/views/request_types/new.html.erb +1 -1
- data/app/views/request_types/show.html.erb +1 -1
- data/app/views/search_engines/_form.html.erb +4 -4
- data/app/views/search_engines/edit.html.erb +1 -1
- data/app/views/search_engines/index.html.erb +3 -3
- data/app/views/search_engines/new.html.erb +1 -1
- data/app/views/search_engines/show.html.erb +1 -1
- data/app/views/shelves/_form.html.erb +4 -4
- data/app/views/shelves/_library_facet.html.erb +1 -1
- data/app/views/shelves/edit.html.erb +1 -1
- data/app/views/shelves/index.html.erb +5 -5
- data/app/views/shelves/new.html.erb +2 -2
- data/app/views/shelves/show.html.erb +5 -5
- data/app/views/shelves/show.mobile.erb +1 -1
- data/app/views/subscribes/edit.html.erb +3 -3
- data/app/views/subscribes/index.html.erb +3 -3
- data/app/views/subscribes/new.html.erb +8 -8
- data/app/views/subscribes/show.html.erb +1 -1
- data/app/views/subscriptions/edit.html.erb +3 -3
- data/app/views/subscriptions/index.html.erb +4 -4
- data/app/views/subscriptions/new.html.erb +3 -3
- data/app/views/subscriptions/show.html.erb +1 -1
- data/config/locales/translation_ja.yml +1 -1
- data/db/migrate/080_create_library_groups.rb +0 -1
- data/lib/enju_library/version.rb +1 -1
- data/lib/generators/enju_library/setup/templates/db/fixtures/request_status_types.yml +37 -0
- data/lib/generators/enju_library/setup/templates/db/fixtures/request_types.yml +29 -0
- data/spec/controllers/accepts_controller_spec.rb +1 -1
- data/spec/controllers/baskets_controller_spec.rb +30 -30
- data/spec/controllers/bookstores_controller_spec.rb +21 -21
- data/spec/controllers/budget_types_controller_spec.rb +1 -1
- data/spec/controllers/libraries_controller_spec.rb +24 -24
- data/spec/controllers/library_groups_controller_spec.rb +7 -7
- data/spec/controllers/request_status_types_controller_spec.rb +21 -21
- data/spec/controllers/request_types_controller_spec.rb +21 -21
- data/spec/controllers/search_engines_controller_spec.rb +21 -21
- data/spec/controllers/shelves_controller_spec.rb +20 -20
- data/spec/controllers/subscribes_controller_spec.rb +21 -21
- data/spec/controllers/subscriptions_controller_spec.rb +21 -21
- data/spec/dummy/app/helpers/application_helper.rb +1 -0
- data/spec/dummy/app/models/user.rb +6 -86
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/001_create_agents.rb +0 -8
- data/spec/dummy/db/migrate/{20111201155513_add_devise_to_users.rb → 002_devise_create_users.rb} +18 -16
- data/spec/dummy/db/migrate/005_create_manifestations.rb +7 -24
- data/spec/dummy/db/migrate/006_create_items.rb +0 -6
- data/spec/dummy/db/migrate/041_create_roles.rb +13 -0
- data/spec/dummy/db/migrate/077_create_user_groups.rb +3 -7
- data/spec/dummy/db/migrate/112_create_frequencies.rb +12 -0
- data/spec/dummy/db/migrate/117_create_form_of_works.rb +12 -0
- data/spec/dummy/db/migrate/154_create_messages.rb +0 -1
- data/spec/dummy/db/migrate/20080819181903_create_message_requests.rb +0 -2
- data/spec/dummy/db/migrate/20081027150907_create_picture_files.rb +0 -1
- data/spec/dummy/db/migrate/20081028083142_create_agent_import_files.rb +20 -0
- data/spec/dummy/db/migrate/20081028083208_create_resource_import_files.rb +20 -0
- data/spec/dummy/db/migrate/20081028093607_create_event_import_files.rb +0 -2
- data/spec/dummy/db/migrate/20081212080038_create_manifestation_checkout_stats.rb +0 -1
- data/spec/dummy/db/migrate/20081215094302_create_user_checkout_stats.rb +0 -1
- data/spec/dummy/db/migrate/20081216190724_create_manifestation_reserve_stats.rb +0 -1
- data/spec/dummy/db/migrate/20081220023628_create_user_reserve_stats.rb +0 -1
- data/spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb +0 -4
- data/spec/dummy/db/migrate/20090705212043_add_attachments_attachment_to_manifestation.rb +15 -0
- data/spec/dummy/db/migrate/20090719201843_create_extents.rb +12 -0
- data/spec/dummy/db/migrate/20090720091106_create_medium_of_performances.rb +12 -0
- data/spec/dummy/db/migrate/20090720091429_create_content_types.rb +12 -0
- data/spec/dummy/db/migrate/20091025080447_create_licenses.rb +12 -0
- data/spec/dummy/db/migrate/20100129142347_create_import_requests.rb +14 -0
- data/spec/dummy/db/migrate/{20111201163718_create_user_has_roles.rb → 20100606065209_create_user_has_roles.rb} +2 -0
- data/spec/dummy/db/migrate/20100925043847_create_resource_import_results.rb +15 -0
- data/spec/dummy/db/migrate/20100925074559_create_agent_import_results.rb +12 -0
- data/spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb +0 -2
- data/spec/dummy/db/migrate/20110603184217_add_edit_mode_to_resource_import_file.rb +9 -0
- data/spec/dummy/db/migrate/20120129020544_add_budget_type_id_to_item.rb +6 -0
- data/spec/dummy/db/migrate/20120319120638_add_content_type_id_to_manifestation.rb +6 -0
- data/spec/dummy/db/migrate/20120410104851_add_year_of_publication_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20120413161340_add_fingerprint_to_resource_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20120413161403_add_fingerprint_to_agent_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20120413170705_add_error_message_to_resource_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20120413170720_add_error_message_to_agent_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20120415164821_add_attachment_meta_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20120418081407_add_month_of_publication_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20120511072422_add_agent_identifier_to_agent.rb +6 -0
- data/spec/dummy/db/migrate/20120602141129_add_edit_mode_to_agent_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20121116031206_add_fulltext_content_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20121116033446_add_doi_to_manifestation.rb +6 -0
- data/spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb +16 -0
- data/spec/dummy/db/migrate/{20111201121844_create_roles.rb → 20130506175303_create_identifier_types.rb} +2 -2
- data/spec/dummy/db/migrate/20130506175834_create_identifiers.rb +15 -0
- data/spec/dummy/db/migrate/20130509185724_add_statement_of_responsibility_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20140110122216_create_user_import_files.rb +18 -0
- data/spec/dummy/db/migrate/20140110131010_create_user_import_results.rb +11 -0
- data/spec/dummy/db/migrate/20140122054321_create_profiles.rb +20 -0
- data/spec/dummy/db/migrate/20140518050147_create_reserve_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140518111006_create_message_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140518135713_create_message_request_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140519170214_create_resource_import_file_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140523171309_create_event_import_file_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140528045518_create_user_checkout_stat_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140528045539_create_user_reserve_stat_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140528045600_create_manifestation_checkout_stat_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140528045617_create_manifestation_reserve_stat_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140610123439_drop_email_unique_constraint_enju_leaf_rc10.rb +11 -0
- data/spec/dummy/db/migrate/20140614065404_create_resource_export_files.rb +11 -0
- data/spec/dummy/db/migrate/20140614141500_create_resource_export_file_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140628071719_add_user_encoding_to_event_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140628072217_add_user_encoding_to_user_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140628073524_add_user_encoding_to_agent_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140628073535_add_user_encoding_to_resource_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140709113413_create_user_export_files.rb +11 -0
- data/spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb +14 -0
- data/spec/dummy/db/migrate/20140720140916_add_binding_item_identifier_to_item.rb +8 -0
- data/spec/dummy/db/migrate/20140720170714_add_default_library_id_to_user_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140720170735_add_default_user_group_id_to_user_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140720192418_add_default_library_id_to_event_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140721151416_add_default_shelf_id_to_resource_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20140802082007_add_manifestation_id_to_item.rb +6 -0
- data/spec/dummy/db/migrate/20140810061942_add_user_id_to_user_checkout_stat.rb +12 -0
- data/spec/dummy/db/migrate/20140810091231_add_checkout_icalendar_token_to_profile.rb +6 -0
- data/spec/dummy/db/migrate/20140810091417_add_save_checkout_history_to_profile.rb +5 -0
- data/spec/dummy/db/migrate/20140811031145_add_expired_at_to_profile.rb +5 -0
- data/spec/dummy/db/schema.rb +453 -74
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/solr/conf/admin-extra.html +31 -0
- data/spec/dummy/solr/conf/elevate.xml +36 -0
- data/spec/dummy/solr/conf/mapping-ISOLatin1Accent.txt +246 -0
- data/spec/dummy/solr/conf/protwords.txt +21 -0
- data/spec/dummy/solr/conf/schema.xml +255 -0
- data/spec/dummy/solr/conf/scripts.conf +24 -0
- data/spec/dummy/solr/conf/solrconfig.xml +667 -0
- data/spec/dummy/solr/conf/spellings.txt +2 -0
- data/spec/dummy/solr/conf/stopwords.txt +58 -0
- data/spec/dummy/solr/conf/synonyms.txt +31 -0
- data/spec/dummy/solr/default/data/index/_1vz.fdt +0 -0
- data/spec/dummy/solr/default/data/index/_1vz.fdx +0 -0
- data/spec/dummy/solr/default/data/index/_1vz.fnm +0 -0
- data/spec/dummy/solr/default/data/index/_1vz.nvd +0 -0
- data/spec/dummy/solr/default/data/index/_1vz.nvm +0 -0
- data/spec/dummy/solr/default/data/index/_1vz.si +0 -0
- data/spec/dummy/solr/default/data/index/_1vz_Lucene41_0.doc +0 -0
- data/spec/dummy/solr/default/data/index/_1vz_Lucene41_0.pos +0 -0
- data/spec/dummy/solr/default/data/index/_1vz_Lucene41_0.tim +0 -0
- data/spec/dummy/solr/default/data/index/_1vz_Lucene41_0.tip +0 -0
- data/spec/dummy/solr/default/data/index/segments.gen +0 -0
- data/spec/dummy/solr/default/data/index/segments_36s +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000004121 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000004122 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000004123 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000004124 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000004125 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000004126 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000004127 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000004128 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000004129 +0 -0
- data/spec/dummy/solr/default/data/tlog/tlog.0000000000000004130 +0 -0
- data/spec/dummy/solr/development/data/index/segments.gen +0 -0
- data/spec/dummy/solr/development/data/index/segments_1 +0 -0
- data/spec/dummy/solr/solr.xml +8 -0
- data/spec/dummy/solr/test/data/index/segments.gen +0 -0
- data/spec/dummy/solr/test/data/index/segments_1 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/0440b81b0aae840cf287a686585a8cec +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/0483120d2ec851526d1beb322a87b34d +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/096c3408c7592aaeb756778ce1775f16 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/09bc1fff0c1477a69e8cd36ed3fe771f +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/0c0062cfb97ef1437ab0020e724876c6 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/0c8f59d97121b79a2e2a0d009d6da9c3 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/0e3e358e4fe4601ba5e435f6d0c86f12 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/0e7592ffc95bd8b73854cc6453c64e33 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/0e8e7445a50fad85ab545fa283abf5b7 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/1260173072d9796c1ae7d7752b9916c3 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/129cec5384c0f26fcfb0ce65048298c5 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/1572dfd6f1e555f4be1aa60ddc3cb0c0 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/17c9f5037fae5b6ee1fc7466948001b5 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/1c1fbab93e4552626da626e0dbe70c74 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/1d450e5266eb3d679107d9a36dc22559 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/2258e83cd2e464c650334b6a72a87cb6 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/241a5d6ad6008e25a64a5092e8361ae8 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/2bf9c36d2bc8f8ca084394d139ce8edf +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/2f09f58943a88f21e3a0318621391785 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/2ffe508d0533d0afd2a37bb574eda40d +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/301d9ec69800d0dc163460a12304676a +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/3fbe8dcb9a5b2fbc7a22cc4b1ca4aa11 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/45f3c74e1e31b58d9bda6908d5623290 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/49d32c13d390c1b80d8b2705aac86579 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/4aa18096a209e515f5f1df487622cdf4 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/4c4d6b8fc44a49272793290caed29e24 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/4f877aaa67a006f34ad9643d7f82b6dc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/50e64f45f0cb4cee52fd3f3908f89a82 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/5762cca052dd5d3eb8bb35e2ed9a59b8 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/5ab3fcfe4078a2bb14bd91e9ce73ef29 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/5afd4f8068bdfb3d99f5ec4034d2410c +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/5db165a5b217a384aaa8885d6bcaf193 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/5dd0b61707256a0514d7f5e224188a1d +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/65a8d4d288e5f082f0166aa7be7a2464 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/66e8ff0ee49363fdd0e1866807515228 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/6738d1a07584e4b732d197e10afd6a19 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/6a83d3fd052b7923111a0ed838ff53e0 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/6a958d3fc0999c71aa19bae06bacdeb6 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/6df57ded762c97e6755758008bb3a660 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/6fdb4513af157010ef79b56df44d665e +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/7289cf11ae787f5e0639528dc155bffb +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/7c4b2e5317023fb751fa54ad41f95101 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/7eea3b9e54d8a23d8a05d354f1a93f51 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/811e5198d0dc4efe02d28c0c2215e207 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/84c8a64682205dba3f8edd60fc1ec8e5 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/8a73d1e841a4716b4f18ed4a23622092 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/8be2a49de16592553e0d0a09d92bf6ef +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/8f72bcc7284bf844ac8bec5dc4b71482 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/9604073a83f822f13caaabd7e157bbbb +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/979eaef456657e4fc79b9b967aef0587 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/9ad166e60e3d477c78328181979a7b77 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/9b78afe804f3870fbafb97d2d62e5f6b +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/a296264dcc89e1f8ab6382e678ffbe38 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/a3cea75f1356ef55329e78f86b4c72b1 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/a5bf9fc3822019953dee89c6ae2b32ea +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/a7387ef33f472faf58df3dd72623fbc6 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/aa2e1ada35daa496bb08e85fcb817536 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/abee2d4cb18d15789dcdc9c680f3e6de +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/ae706bde720905edffe622ae48f15740 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/b53fd979e77975479427d0b481b004d4 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/b57a0579a21bd3280d1db6f42550e5c7 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/b80bed2ef62ec65384f12272c185a9a8 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/bf33fb298844af06e55096420b989e3b +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/c3e97042b232e677d67679e11ebdb8ec +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/c4700cd893db92917b893a0e48f57a24 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/c488c91e58a235d36a0ff8058e5a1004 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/c4a984c6feb506f3e1f9120a8d029bda +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/c5ef868ba5f891f326945efdd43e3170 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/c6283ae59dff510d5a2bb2bb9194d045 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/c6bbf5ca5c9b58807ba226fde0ccc60f +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/ca5b985126fb033dec26015bd08d56ee +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/d26b3581068a8ec8af52f3b2cce8c32a +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/d34b5413caa9407126db68d5d590804a +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/d4ac74c17332ad931b72f42d7997fcc0 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/d648a0b0abb7fd7ff579d72ffe033d50 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/db6425848529903bdee75792cb2ed79a +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/dd672deb061233e0db1d2f413d27213f +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/e1fcfb0faa3c12467a1c35251e04c8b1 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/e22f9546f5d75bd3549886e979dcb96e +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/e44b4816bd1b2a7ba674c978dad35f3a +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/e513ee1af8fa24dcb4f473c18c09bf87 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/e8142c2b10712e79b6d2c2cba0894b4c +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/f964bf5dc3949774db54d7cda5761d43 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/fa8059ddbbe226114ba0c178de3fc31b +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/fa8e81ce1d45228121b9df5618542190 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/fbc69737b9b0dc77871fa2bb8647a38a +0 -0
- data/spec/factories/accepts.rb +12 -0
- data/spec/factories/budget_types.rb +13 -0
- data/spec/factories/profile.rb +10 -0
- data/spec/factories/user.rb +21 -12
- data/spec/fixtures/agents.yml +0 -12
- data/spec/fixtures/items.yml +49 -37
- data/spec/fixtures/libraries.yml +25 -28
- data/spec/fixtures/library_groups.yml +13 -18
- data/spec/fixtures/manifestation_checkout_stats.yml +0 -3
- data/spec/fixtures/manifestation_reserve_stats.yml +0 -3
- data/spec/fixtures/message_requests.yml +0 -3
- data/spec/fixtures/profiles.yml +98 -0
- data/spec/fixtures/request_status_types.yml +4 -5
- data/spec/fixtures/request_types.yml +4 -5
- data/spec/fixtures/reserve_transitions.yml +88 -0
- data/spec/fixtures/shelves.yml +7 -7
- data/spec/fixtures/user_checkout_stats.yml +0 -3
- data/spec/fixtures/user_groups.yml +3 -3
- data/spec/fixtures/user_reserve_stats.yml +0 -3
- data/spec/fixtures/users.yml +0 -55
- data/spec/models/library_group_spec.rb +0 -2
- data/spec/views/budget_types/index.html.erb_spec.rb +2 -2
- metadata +417 -28
- data/app/models/library_group_sweeper.rb +0 -12
- data/spec/dummy/db/migrate/20110425133109_add_issn_to_series_statement.rb +0 -9
- data/spec/dummy/db/migrate/20110618091240_add_periodical_to_series_statement.rb +0 -9
- data/spec/dummy/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb +0 -13
- data/spec/dummy/db/migrate/20111201155456_create_users.rb +0 -16
@@ -0,0 +1,14 @@
|
|
1
|
+
class CreateResourceExportFileTransitions < ActiveRecord::Migration
|
2
|
+
def change
|
3
|
+
create_table :resource_export_file_transitions do |t|
|
4
|
+
t.string :to_state
|
5
|
+
t.text :metadata, default: "{}"
|
6
|
+
t.integer :sort_key
|
7
|
+
t.integer :resource_export_file_id
|
8
|
+
t.timestamps
|
9
|
+
end
|
10
|
+
|
11
|
+
add_index :resource_export_file_transitions, :resource_export_file_id, name: "index_resource_export_file_transitions_on_file_id"
|
12
|
+
add_index :resource_export_file_transitions, [:sort_key, :resource_export_file_id], unique: true, name: "index_resource_export_file_transitions_on_sort_key_and_file_id"
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
class CreateUserExportFileTransitions < ActiveRecord::Migration
|
2
|
+
def change
|
3
|
+
create_table :user_export_file_transitions do |t|
|
4
|
+
t.string :to_state
|
5
|
+
t.text :metadata, default: "{}"
|
6
|
+
t.integer :sort_key
|
7
|
+
t.integer :user_export_file_id
|
8
|
+
t.timestamps
|
9
|
+
end
|
10
|
+
|
11
|
+
add_index :user_export_file_transitions, :user_export_file_id, name: "index_user_export_file_transitions_on_file_id"
|
12
|
+
add_index :user_export_file_transitions, [:sort_key, :user_export_file_id], unique: true, name: "index_user_export_file_transitions_on_sort_key_and_file_id"
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
class AddBindingItemIdentifierToItem < ActiveRecord::Migration
|
2
|
+
def change
|
3
|
+
add_column :items, :binding_item_identifier, :string
|
4
|
+
add_column :items, :binding_call_number, :string
|
5
|
+
add_column :items, :binded_at, :datetime
|
6
|
+
add_index :items, :binding_item_identifier
|
7
|
+
end
|
8
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
class AddUserIdToUserCheckoutStat < ActiveRecord::Migration
|
2
|
+
def change
|
3
|
+
add_column :user_checkout_stats, :user_id, :integer
|
4
|
+
add_column :user_reserve_stats, :user_id, :integer
|
5
|
+
add_column :manifestation_checkout_stats, :user_id, :integer
|
6
|
+
add_column :manifestation_reserve_stats, :user_id, :integer
|
7
|
+
add_index :user_checkout_stats, :user_id
|
8
|
+
add_index :user_reserve_stats, :user_id
|
9
|
+
add_index :manifestation_checkout_stats, :user_id
|
10
|
+
add_index :manifestation_reserve_stats, :user_id
|
11
|
+
end
|
12
|
+
end
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended to check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(:version =>
|
14
|
+
ActiveRecord::Schema.define(:version => 20140811031145) do
|
15
15
|
|
16
16
|
create_table "accepts", :force => true do |t|
|
17
17
|
t.integer "basket_id"
|
@@ -24,6 +24,49 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
|
|
24
24
|
add_index "accepts", ["basket_id"], :name => "index_accepts_on_basket_id"
|
25
25
|
add_index "accepts", ["item_id"], :name => "index_accepts_on_item_id"
|
26
26
|
|
27
|
+
create_table "agent_import_file_transitions", :force => true do |t|
|
28
|
+
t.string "to_state"
|
29
|
+
t.text "metadata", :default => "{}"
|
30
|
+
t.integer "sort_key"
|
31
|
+
t.integer "agent_import_file_id"
|
32
|
+
t.datetime "created_at", :null => false
|
33
|
+
t.datetime "updated_at", :null => false
|
34
|
+
end
|
35
|
+
|
36
|
+
add_index "agent_import_file_transitions", ["agent_import_file_id"], :name => "index_agent_import_file_transitions_on_agent_import_file_id"
|
37
|
+
add_index "agent_import_file_transitions", ["sort_key", "agent_import_file_id"], :name => "index_agent_import_file_transitions_on_sort_key_and_file_id", :unique => true
|
38
|
+
|
39
|
+
create_table "agent_import_files", :force => true do |t|
|
40
|
+
t.integer "parent_id"
|
41
|
+
t.string "content_type"
|
42
|
+
t.integer "size"
|
43
|
+
t.integer "user_id"
|
44
|
+
t.text "note"
|
45
|
+
t.datetime "executed_at"
|
46
|
+
t.string "agent_import_file_name"
|
47
|
+
t.string "agent_import_content_type"
|
48
|
+
t.integer "agent_import_file_size"
|
49
|
+
t.datetime "agent_import_updated_at"
|
50
|
+
t.datetime "created_at", :null => false
|
51
|
+
t.datetime "updated_at", :null => false
|
52
|
+
t.string "agent_import_fingerprint"
|
53
|
+
t.text "error_message"
|
54
|
+
t.string "edit_mode"
|
55
|
+
t.string "user_encoding"
|
56
|
+
end
|
57
|
+
|
58
|
+
add_index "agent_import_files", ["parent_id"], :name => "index_agent_import_files_on_parent_id"
|
59
|
+
add_index "agent_import_files", ["user_id"], :name => "index_agent_import_files_on_user_id"
|
60
|
+
|
61
|
+
create_table "agent_import_results", :force => true do |t|
|
62
|
+
t.integer "agent_import_file_id"
|
63
|
+
t.integer "agent_id"
|
64
|
+
t.integer "user_id"
|
65
|
+
t.text "body"
|
66
|
+
t.datetime "created_at", :null => false
|
67
|
+
t.datetime "updated_at", :null => false
|
68
|
+
end
|
69
|
+
|
27
70
|
create_table "agent_relationship_types", :force => true do |t|
|
28
71
|
t.string "name", :null => false
|
29
72
|
t.text "display_name"
|
@@ -55,7 +98,6 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
|
|
55
98
|
end
|
56
99
|
|
57
100
|
create_table "agents", :force => true do |t|
|
58
|
-
t.integer "user_id"
|
59
101
|
t.string "last_name"
|
60
102
|
t.string "middle_name"
|
61
103
|
t.string "first_name"
|
@@ -93,25 +135,21 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
|
|
93
135
|
t.integer "agent_type_id", :default => 1, :null => false
|
94
136
|
t.integer "lock_version", :default => 0, :null => false
|
95
137
|
t.text "note"
|
96
|
-
t.integer "creates_count", :default => 0, :null => false
|
97
|
-
t.integer "realizes_count", :default => 0, :null => false
|
98
|
-
t.integer "produces_count", :default => 0, :null => false
|
99
|
-
t.integer "owns_count", :default => 0, :null => false
|
100
138
|
t.integer "required_role_id", :default => 1, :null => false
|
101
139
|
t.integer "required_score", :default => 0, :null => false
|
102
|
-
t.string "state"
|
103
140
|
t.text "email"
|
104
141
|
t.text "url"
|
105
142
|
t.text "full_name_alternative_transcription"
|
106
143
|
t.string "birth_date"
|
107
144
|
t.string "death_date"
|
145
|
+
t.string "agent_identifier"
|
108
146
|
end
|
109
147
|
|
148
|
+
add_index "agents", ["agent_identifier"], :name => "index_agents_on_agent_identifier"
|
110
149
|
add_index "agents", ["country_id"], :name => "index_agents_on_country_id"
|
111
150
|
add_index "agents", ["full_name"], :name => "index_agents_on_full_name"
|
112
151
|
add_index "agents", ["language_id"], :name => "index_agents_on_language_id"
|
113
152
|
add_index "agents", ["required_role_id"], :name => "index_agents_on_required_role_id"
|
114
|
-
add_index "agents", ["user_id"], :name => "index_agents_on_user_id", :unique => true
|
115
153
|
|
116
154
|
create_table "baskets", :force => true do |t|
|
117
155
|
t.integer "user_id"
|
@@ -254,6 +292,15 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
|
|
254
292
|
t.datetime "updated_at", :null => false
|
255
293
|
end
|
256
294
|
|
295
|
+
create_table "content_types", :force => true do |t|
|
296
|
+
t.string "name", :null => false
|
297
|
+
t.text "display_name"
|
298
|
+
t.text "note"
|
299
|
+
t.integer "position"
|
300
|
+
t.datetime "created_at", :null => false
|
301
|
+
t.datetime "updated_at", :null => false
|
302
|
+
end
|
303
|
+
|
257
304
|
create_table "countries", :force => true do |t|
|
258
305
|
t.string "name", :null => false
|
259
306
|
t.text "display_name"
|
@@ -309,6 +356,18 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
|
|
309
356
|
t.datetime "updated_at", :null => false
|
310
357
|
end
|
311
358
|
|
359
|
+
create_table "event_import_file_transitions", :force => true do |t|
|
360
|
+
t.string "to_state"
|
361
|
+
t.text "metadata", :default => "{}"
|
362
|
+
t.integer "sort_key"
|
363
|
+
t.integer "event_import_file_id"
|
364
|
+
t.datetime "created_at", :null => false
|
365
|
+
t.datetime "updated_at", :null => false
|
366
|
+
end
|
367
|
+
|
368
|
+
add_index "event_import_file_transitions", ["event_import_file_id"], :name => "index_event_import_file_transitions_on_event_import_file_id"
|
369
|
+
add_index "event_import_file_transitions", ["sort_key", "event_import_file_id"], :name => "index_event_import_file_transitions_on_sort_key_and_file_id", :unique => true
|
370
|
+
|
312
371
|
create_table "event_import_files", :force => true do |t|
|
313
372
|
t.integer "parent_id"
|
314
373
|
t.string "content_type"
|
@@ -316,7 +375,6 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
|
|
316
375
|
t.integer "user_id"
|
317
376
|
t.text "note"
|
318
377
|
t.datetime "executed_at"
|
319
|
-
t.string "state"
|
320
378
|
t.string "event_import_file_name"
|
321
379
|
t.string "event_import_content_type"
|
322
380
|
t.integer "event_import_file_size"
|
@@ -326,10 +384,11 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
|
|
326
384
|
t.datetime "updated_at", :null => false
|
327
385
|
t.string "event_import_fingerprint"
|
328
386
|
t.text "error_message"
|
387
|
+
t.string "user_encoding"
|
388
|
+
t.integer "default_library_id"
|
329
389
|
end
|
330
390
|
|
331
391
|
add_index "event_import_files", ["parent_id"], :name => "index_event_import_files_on_parent_id"
|
332
|
-
add_index "event_import_files", ["state"], :name => "index_event_import_files_on_state"
|
333
392
|
add_index "event_import_files", ["user_id"], :name => "index_event_import_files_on_user_id"
|
334
393
|
|
335
394
|
create_table "event_import_results", :force => true do |t|
|
@@ -368,6 +427,79 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
|
|
368
427
|
add_index "exemplifies", ["item_id"], :name => "index_exemplifies_on_item_id", :unique => true
|
369
428
|
add_index "exemplifies", ["manifestation_id"], :name => "index_exemplifies_on_manifestation_id"
|
370
429
|
|
430
|
+
create_table "extents", :force => true do |t|
|
431
|
+
t.string "name", :null => false
|
432
|
+
t.text "display_name"
|
433
|
+
t.text "note"
|
434
|
+
t.integer "position"
|
435
|
+
t.datetime "created_at", :null => false
|
436
|
+
t.datetime "updated_at", :null => false
|
437
|
+
end
|
438
|
+
|
439
|
+
create_table "form_of_works", :force => true do |t|
|
440
|
+
t.string "name", :null => false
|
441
|
+
t.text "display_name"
|
442
|
+
t.text "note"
|
443
|
+
t.integer "position"
|
444
|
+
t.datetime "created_at", :null => false
|
445
|
+
t.datetime "updated_at", :null => false
|
446
|
+
end
|
447
|
+
|
448
|
+
create_table "frequencies", :force => true do |t|
|
449
|
+
t.string "name", :null => false
|
450
|
+
t.text "display_name"
|
451
|
+
t.text "note"
|
452
|
+
t.integer "position"
|
453
|
+
t.datetime "created_at", :null => false
|
454
|
+
t.datetime "updated_at", :null => false
|
455
|
+
end
|
456
|
+
|
457
|
+
create_table "identifier_types", :force => true do |t|
|
458
|
+
t.string "name"
|
459
|
+
t.text "display_name"
|
460
|
+
t.text "note"
|
461
|
+
t.integer "position"
|
462
|
+
t.datetime "created_at", :null => false
|
463
|
+
t.datetime "updated_at", :null => false
|
464
|
+
end
|
465
|
+
|
466
|
+
create_table "identifiers", :force => true do |t|
|
467
|
+
t.string "body", :null => false
|
468
|
+
t.integer "identifier_type_id", :null => false
|
469
|
+
t.integer "manifestation_id"
|
470
|
+
t.boolean "primary"
|
471
|
+
t.integer "position"
|
472
|
+
t.datetime "created_at", :null => false
|
473
|
+
t.datetime "updated_at", :null => false
|
474
|
+
end
|
475
|
+
|
476
|
+
add_index "identifiers", ["body", "identifier_type_id"], :name => "index_identifiers_on_body_and_identifier_type_id"
|
477
|
+
add_index "identifiers", ["manifestation_id"], :name => "index_identifiers_on_manifestation_id"
|
478
|
+
|
479
|
+
create_table "import_request_transitions", :force => true do |t|
|
480
|
+
t.string "to_state"
|
481
|
+
t.text "metadata", :default => "{}"
|
482
|
+
t.integer "sort_key"
|
483
|
+
t.integer "import_request_id"
|
484
|
+
t.datetime "created_at", :null => false
|
485
|
+
t.datetime "updated_at", :null => false
|
486
|
+
end
|
487
|
+
|
488
|
+
add_index "import_request_transitions", ["import_request_id"], :name => "index_import_request_transitions_on_import_request_id"
|
489
|
+
add_index "import_request_transitions", ["sort_key", "import_request_id"], :name => "index_import_request_transitions_on_sort_key_and_request_id", :unique => true
|
490
|
+
|
491
|
+
create_table "import_requests", :force => true do |t|
|
492
|
+
t.string "isbn"
|
493
|
+
t.integer "manifestation_id"
|
494
|
+
t.integer "user_id"
|
495
|
+
t.datetime "created_at", :null => false
|
496
|
+
t.datetime "updated_at", :null => false
|
497
|
+
end
|
498
|
+
|
499
|
+
add_index "import_requests", ["isbn"], :name => "index_import_requests_on_isbn"
|
500
|
+
add_index "import_requests", ["manifestation_id"], :name => "index_import_requests_on_manifestation_id"
|
501
|
+
add_index "import_requests", ["user_id"], :name => "index_import_requests_on_user_id"
|
502
|
+
|
371
503
|
create_table "item_has_use_restrictions", :force => true do |t|
|
372
504
|
t.integer "item_id", :null => false
|
373
505
|
t.integer "use_restriction_id", :null => false
|
@@ -381,31 +513,34 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
|
|
381
513
|
create_table "items", :force => true do |t|
|
382
514
|
t.string "call_number"
|
383
515
|
t.string "item_identifier"
|
384
|
-
t.datetime "created_at",
|
385
|
-
t.datetime "updated_at",
|
516
|
+
t.datetime "created_at", :null => false
|
517
|
+
t.datetime "updated_at", :null => false
|
386
518
|
t.datetime "deleted_at"
|
387
|
-
t.integer "shelf_id",
|
388
|
-
t.boolean "include_supplements",
|
389
|
-
t.integer "checkouts_count", :default => 0, :null => false
|
390
|
-
t.integer "owns_count", :default => 0, :null => false
|
391
|
-
t.integer "resource_has_subjects_count", :default => 0, :null => false
|
519
|
+
t.integer "shelf_id", :default => 1, :null => false
|
520
|
+
t.boolean "include_supplements", :default => false, :null => false
|
392
521
|
t.text "note"
|
393
522
|
t.string "url"
|
394
523
|
t.integer "price"
|
395
|
-
t.integer "lock_version",
|
396
|
-
t.integer "required_role_id",
|
397
|
-
t.
|
398
|
-
t.integer "required_score", :default => 0, :null => false
|
524
|
+
t.integer "lock_version", :default => 0, :null => false
|
525
|
+
t.integer "required_role_id", :default => 1, :null => false
|
526
|
+
t.integer "required_score", :default => 0, :null => false
|
399
527
|
t.datetime "acquired_at"
|
400
528
|
t.integer "bookstore_id"
|
401
|
-
t.integer "
|
402
|
-
t.integer "
|
529
|
+
t.integer "budget_type_id"
|
530
|
+
t.integer "circulation_status_id", :default => 5, :null => false
|
531
|
+
t.integer "checkout_type_id", :default => 1, :null => false
|
532
|
+
t.string "binding_item_identifier"
|
533
|
+
t.string "binding_call_number"
|
534
|
+
t.datetime "binded_at"
|
535
|
+
t.integer "manifestation_id"
|
403
536
|
end
|
404
537
|
|
538
|
+
add_index "items", ["binding_item_identifier"], :name => "index_items_on_binding_item_identifier"
|
405
539
|
add_index "items", ["bookstore_id"], :name => "index_items_on_bookstore_id"
|
406
540
|
add_index "items", ["checkout_type_id"], :name => "index_items_on_checkout_type_id"
|
407
541
|
add_index "items", ["circulation_status_id"], :name => "index_items_on_circulation_status_id"
|
408
542
|
add_index "items", ["item_identifier"], :name => "index_items_on_item_identifier"
|
543
|
+
add_index "items", ["manifestation_id"], :name => "index_items_on_manifestation_id"
|
409
544
|
add_index "items", ["required_role_id"], :name => "index_items_on_required_role_id"
|
410
545
|
add_index "items", ["shelf_id"], :name => "index_items_on_shelf_id"
|
411
546
|
|
@@ -474,7 +609,6 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
|
|
474
609
|
t.string "name", :null => false
|
475
610
|
t.text "display_name"
|
476
611
|
t.string "short_name", :null => false
|
477
|
-
t.string "email"
|
478
612
|
t.text "my_networks"
|
479
613
|
t.text "login_banner"
|
480
614
|
t.text "note"
|
@@ -488,18 +622,39 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
|
|
488
622
|
|
489
623
|
add_index "library_groups", ["short_name"], :name => "index_library_groups_on_short_name"
|
490
624
|
|
625
|
+
create_table "licenses", :force => true do |t|
|
626
|
+
t.string "name", :null => false
|
627
|
+
t.string "display_name"
|
628
|
+
t.text "note"
|
629
|
+
t.integer "position"
|
630
|
+
t.datetime "created_at", :null => false
|
631
|
+
t.datetime "updated_at", :null => false
|
632
|
+
end
|
633
|
+
|
634
|
+
create_table "manifestation_checkout_stat_transitions", :force => true do |t|
|
635
|
+
t.string "to_state"
|
636
|
+
t.text "metadata", :default => "{}"
|
637
|
+
t.integer "sort_key"
|
638
|
+
t.integer "manifestation_checkout_stat_id"
|
639
|
+
t.datetime "created_at", :null => false
|
640
|
+
t.datetime "updated_at", :null => false
|
641
|
+
end
|
642
|
+
|
643
|
+
add_index "manifestation_checkout_stat_transitions", ["manifestation_checkout_stat_id"], :name => "index_manifestation_checkout_stat_transitions_on_stat_id"
|
644
|
+
add_index "manifestation_checkout_stat_transitions", ["sort_key", "manifestation_checkout_stat_id"], :name => "index_manifestation_checkout_stat_transitions_on_transition", :unique => true
|
645
|
+
|
491
646
|
create_table "manifestation_checkout_stats", :force => true do |t|
|
492
647
|
t.datetime "start_date"
|
493
648
|
t.datetime "end_date"
|
494
649
|
t.text "note"
|
495
|
-
t.string "state"
|
496
650
|
t.datetime "created_at", :null => false
|
497
651
|
t.datetime "updated_at", :null => false
|
498
652
|
t.datetime "started_at"
|
499
653
|
t.datetime "completed_at"
|
654
|
+
t.integer "user_id"
|
500
655
|
end
|
501
656
|
|
502
|
-
add_index "manifestation_checkout_stats", ["
|
657
|
+
add_index "manifestation_checkout_stats", ["user_id"], :name => "index_manifestation_checkout_stats_on_user_id"
|
503
658
|
|
504
659
|
create_table "manifestation_relationship_types", :force => true do |t|
|
505
660
|
t.string "name", :null => false
|
@@ -522,18 +677,30 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
|
|
522
677
|
add_index "manifestation_relationships", ["child_id"], :name => "index_manifestation_relationships_on_child_id"
|
523
678
|
add_index "manifestation_relationships", ["parent_id"], :name => "index_manifestation_relationships_on_parent_id"
|
524
679
|
|
680
|
+
create_table "manifestation_reserve_stat_transitions", :force => true do |t|
|
681
|
+
t.string "to_state"
|
682
|
+
t.text "metadata", :default => "{}"
|
683
|
+
t.integer "sort_key"
|
684
|
+
t.integer "manifestation_reserve_stat_id"
|
685
|
+
t.datetime "created_at", :null => false
|
686
|
+
t.datetime "updated_at", :null => false
|
687
|
+
end
|
688
|
+
|
689
|
+
add_index "manifestation_reserve_stat_transitions", ["manifestation_reserve_stat_id"], :name => "index_manifestation_reserve_stat_transitions_on_stat_id"
|
690
|
+
add_index "manifestation_reserve_stat_transitions", ["sort_key", "manifestation_reserve_stat_id"], :name => "index_manifestation_reserve_stat_transitions_on_transition", :unique => true
|
691
|
+
|
525
692
|
create_table "manifestation_reserve_stats", :force => true do |t|
|
526
693
|
t.datetime "start_date"
|
527
694
|
t.datetime "end_date"
|
528
695
|
t.text "note"
|
529
|
-
t.string "state"
|
530
696
|
t.datetime "created_at", :null => false
|
531
697
|
t.datetime "updated_at", :null => false
|
532
698
|
t.datetime "started_at"
|
533
699
|
t.datetime "completed_at"
|
700
|
+
t.integer "user_id"
|
534
701
|
end
|
535
702
|
|
536
|
-
add_index "manifestation_reserve_stats", ["
|
703
|
+
add_index "manifestation_reserve_stats", ["user_id"], :name => "index_manifestation_reserve_stats_on_user_id"
|
537
704
|
|
538
705
|
create_table "manifestations", :force => true do |t|
|
539
706
|
t.text "original_title", :null => false
|
@@ -555,13 +722,6 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
|
|
555
722
|
t.integer "height"
|
556
723
|
t.integer "width"
|
557
724
|
t.integer "depth"
|
558
|
-
t.string "isbn"
|
559
|
-
t.string "isbn10"
|
560
|
-
t.string "wrong_isbn"
|
561
|
-
t.string "nbn"
|
562
|
-
t.string "lccn"
|
563
|
-
t.string "oclc_number"
|
564
|
-
t.string "issn"
|
565
725
|
t.integer "price"
|
566
726
|
t.text "fulltext"
|
567
727
|
t.string "volume_number_string"
|
@@ -569,17 +729,16 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
|
|
569
729
|
t.string "serial_number_string"
|
570
730
|
t.integer "edition"
|
571
731
|
t.text "note"
|
572
|
-
t.integer "produces_count", :default => 0, :null => false
|
573
|
-
t.integer "exemplifies_count", :default => 0, :null => false
|
574
|
-
t.integer "embodies_count", :default => 0, :null => false
|
575
|
-
t.integer "work_has_subjects_count", :default => 0, :null => false
|
576
732
|
t.boolean "repository_content", :default => false, :null => false
|
577
733
|
t.integer "lock_version", :default => 0, :null => false
|
578
734
|
t.integer "required_role_id", :default => 1, :null => false
|
579
|
-
t.string "state"
|
580
735
|
t.integer "required_score", :default => 0, :null => false
|
581
736
|
t.integer "frequency_id", :default => 1, :null => false
|
582
737
|
t.boolean "subscription_master", :default => false, :null => false
|
738
|
+
t.string "attachment_file_name"
|
739
|
+
t.string "attachment_content_type"
|
740
|
+
t.integer "attachment_file_size"
|
741
|
+
t.datetime "attachment_updated_at"
|
583
742
|
t.text "title_alternative_transcription"
|
584
743
|
t.text "description"
|
585
744
|
t.text "abstract"
|
@@ -593,21 +752,43 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
|
|
593
752
|
t.integer "volume_number"
|
594
753
|
t.integer "issue_number"
|
595
754
|
t.integer "serial_number"
|
755
|
+
t.integer "content_type_id", :default => 1
|
756
|
+
t.integer "year_of_publication"
|
757
|
+
t.text "attachment_meta"
|
758
|
+
t.integer "month_of_publication"
|
759
|
+
t.boolean "fulltext_content"
|
760
|
+
t.string "doi"
|
596
761
|
t.boolean "periodical"
|
762
|
+
t.text "statement_of_responsibility"
|
597
763
|
end
|
598
764
|
|
599
765
|
add_index "manifestations", ["access_address"], :name => "index_manifestations_on_access_address"
|
600
|
-
add_index "manifestations", ["
|
601
|
-
add_index "manifestations", ["
|
602
|
-
add_index "manifestations", ["isbn"], :name => "index_manifestations_on_isbn"
|
603
|
-
add_index "manifestations", ["issn"], :name => "index_manifestations_on_issn"
|
604
|
-
add_index "manifestations", ["lccn"], :name => "index_manifestations_on_lccn"
|
766
|
+
add_index "manifestations", ["date_of_publication"], :name => "index_manifestations_on_date_of_publication"
|
767
|
+
add_index "manifestations", ["doi"], :name => "index_manifestations_on_doi"
|
605
768
|
add_index "manifestations", ["manifestation_identifier"], :name => "index_manifestations_on_manifestation_identifier"
|
606
|
-
add_index "manifestations", ["nbn"], :name => "index_manifestations_on_nbn"
|
607
|
-
add_index "manifestations", ["oclc_number"], :name => "index_manifestations_on_oclc_number"
|
608
|
-
add_index "manifestations", ["required_role_id"], :name => "index_manifestations_on_required_role_id"
|
609
769
|
add_index "manifestations", ["updated_at"], :name => "index_manifestations_on_updated_at"
|
610
770
|
|
771
|
+
create_table "medium_of_performances", :force => true do |t|
|
772
|
+
t.string "name", :null => false
|
773
|
+
t.text "display_name"
|
774
|
+
t.text "note"
|
775
|
+
t.integer "position"
|
776
|
+
t.datetime "created_at", :null => false
|
777
|
+
t.datetime "updated_at", :null => false
|
778
|
+
end
|
779
|
+
|
780
|
+
create_table "message_request_transitions", :force => true do |t|
|
781
|
+
t.string "to_state"
|
782
|
+
t.text "metadata", :default => "{}"
|
783
|
+
t.integer "sort_key"
|
784
|
+
t.integer "message_request_id"
|
785
|
+
t.datetime "created_at", :null => false
|
786
|
+
t.datetime "updated_at", :null => false
|
787
|
+
end
|
788
|
+
|
789
|
+
add_index "message_request_transitions", ["message_request_id"], :name => "index_message_request_transitions_on_message_request_id"
|
790
|
+
add_index "message_request_transitions", ["sort_key", "message_request_id"], :name => "index_message_request_transitions_on_sort_key_and_request_id", :unique => true
|
791
|
+
|
611
792
|
create_table "message_requests", :force => true do |t|
|
612
793
|
t.integer "sender_id"
|
613
794
|
t.integer "receiver_id"
|
@@ -615,13 +796,10 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
|
|
615
796
|
t.datetime "sent_at"
|
616
797
|
t.datetime "deleted_at"
|
617
798
|
t.text "body"
|
618
|
-
t.string "state"
|
619
799
|
t.datetime "created_at", :null => false
|
620
800
|
t.datetime "updated_at", :null => false
|
621
801
|
end
|
622
802
|
|
623
|
-
add_index "message_requests", ["state"], :name => "index_message_requests_on_state"
|
624
|
-
|
625
803
|
create_table "message_templates", :force => true do |t|
|
626
804
|
t.string "status", :null => false
|
627
805
|
t.text "title", :null => false
|
@@ -634,6 +812,18 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
|
|
634
812
|
|
635
813
|
add_index "message_templates", ["status"], :name => "index_message_templates_on_status", :unique => true
|
636
814
|
|
815
|
+
create_table "message_transitions", :force => true do |t|
|
816
|
+
t.string "to_state"
|
817
|
+
t.text "metadata", :default => "{}"
|
818
|
+
t.integer "sort_key"
|
819
|
+
t.integer "message_id"
|
820
|
+
t.datetime "created_at", :null => false
|
821
|
+
t.datetime "updated_at", :null => false
|
822
|
+
end
|
823
|
+
|
824
|
+
add_index "message_transitions", ["message_id"], :name => "index_message_transitions_on_message_id"
|
825
|
+
add_index "message_transitions", ["sort_key", "message_id"], :name => "index_message_transitions_on_sort_key_and_message_id", :unique => true
|
826
|
+
|
637
827
|
create_table "messages", :force => true do |t|
|
638
828
|
t.datetime "read_at"
|
639
829
|
t.integer "receiver_id"
|
@@ -641,7 +831,6 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
|
|
641
831
|
t.string "subject", :null => false
|
642
832
|
t.text "body"
|
643
833
|
t.integer "message_request_id"
|
644
|
-
t.string "state"
|
645
834
|
t.integer "parent_id"
|
646
835
|
t.datetime "created_at", :null => false
|
647
836
|
t.datetime "updated_at", :null => false
|
@@ -682,7 +871,6 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
|
|
682
871
|
t.string "picture_attachable_type"
|
683
872
|
t.string "content_type"
|
684
873
|
t.text "title"
|
685
|
-
t.text "filename"
|
686
874
|
t.string "thumbnail"
|
687
875
|
t.integer "position"
|
688
876
|
t.datetime "created_at", :null => false
|
@@ -718,6 +906,27 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
|
|
718
906
|
add_index "produces", ["agent_id"], :name => "index_produces_on_agent_id"
|
719
907
|
add_index "produces", ["manifestation_id"], :name => "index_produces_on_manifestation_id"
|
720
908
|
|
909
|
+
create_table "profiles", :force => true do |t|
|
910
|
+
t.integer "user_id"
|
911
|
+
t.integer "user_group_id"
|
912
|
+
t.integer "library_id"
|
913
|
+
t.string "locale"
|
914
|
+
t.string "user_number"
|
915
|
+
t.text "full_name"
|
916
|
+
t.text "note"
|
917
|
+
t.text "keyword_list"
|
918
|
+
t.integer "required_role_id"
|
919
|
+
t.datetime "created_at", :null => false
|
920
|
+
t.datetime "updated_at", :null => false
|
921
|
+
t.string "checkout_icalendar_token"
|
922
|
+
t.boolean "save_checkout_history", :default => false, :null => false
|
923
|
+
t.datetime "expired_at"
|
924
|
+
end
|
925
|
+
|
926
|
+
add_index "profiles", ["checkout_icalendar_token"], :name => "index_profiles_on_checkout_icalendar_token", :unique => true
|
927
|
+
add_index "profiles", ["user_id"], :name => "index_profiles_on_user_id"
|
928
|
+
add_index "profiles", ["user_number"], :name => "index_profiles_on_user_number", :unique => true
|
929
|
+
|
721
930
|
create_table "realize_types", :force => true do |t|
|
722
931
|
t.string "name"
|
723
932
|
t.text "display_name"
|
@@ -779,6 +988,18 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
|
|
779
988
|
add_index "reserve_stat_has_users", ["user_id"], :name => "index_reserve_stat_has_users_on_user_id"
|
780
989
|
add_index "reserve_stat_has_users", ["user_reserve_stat_id"], :name => "index_reserve_stat_has_users_on_user_reserve_stat_id"
|
781
990
|
|
991
|
+
create_table "reserve_transitions", :force => true do |t|
|
992
|
+
t.string "to_state"
|
993
|
+
t.text "metadata", :default => "{}"
|
994
|
+
t.integer "sort_key"
|
995
|
+
t.integer "reserve_id"
|
996
|
+
t.datetime "created_at", :null => false
|
997
|
+
t.datetime "updated_at", :null => false
|
998
|
+
end
|
999
|
+
|
1000
|
+
add_index "reserve_transitions", ["reserve_id"], :name => "index_reserve_transitions_on_reserve_id"
|
1001
|
+
add_index "reserve_transitions", ["sort_key", "reserve_id"], :name => "index_reserve_transitions_on_sort_key_and_reserve_id", :unique => true
|
1002
|
+
|
782
1003
|
create_table "reserves", :force => true do |t|
|
783
1004
|
t.integer "user_id", :null => false
|
784
1005
|
t.integer "manifestation_id", :null => false
|
@@ -804,13 +1025,85 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
|
|
804
1025
|
add_index "reserves", ["state"], :name => "index_reserves_on_state"
|
805
1026
|
add_index "reserves", ["user_id"], :name => "index_reserves_on_user_id"
|
806
1027
|
|
1028
|
+
create_table "resource_export_file_transitions", :force => true do |t|
|
1029
|
+
t.string "to_state"
|
1030
|
+
t.text "metadata", :default => "{}"
|
1031
|
+
t.integer "sort_key"
|
1032
|
+
t.integer "resource_export_file_id"
|
1033
|
+
t.datetime "created_at", :null => false
|
1034
|
+
t.datetime "updated_at", :null => false
|
1035
|
+
end
|
1036
|
+
|
1037
|
+
add_index "resource_export_file_transitions", ["resource_export_file_id"], :name => "index_resource_export_file_transitions_on_file_id"
|
1038
|
+
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
|
1039
|
+
|
1040
|
+
create_table "resource_export_files", :force => true do |t|
|
1041
|
+
t.integer "user_id"
|
1042
|
+
t.string "resource_export_file_name"
|
1043
|
+
t.string "resource_export_content_type"
|
1044
|
+
t.integer "resource_export_file_size"
|
1045
|
+
t.datetime "resource_export_updated_at"
|
1046
|
+
t.datetime "executed_at"
|
1047
|
+
t.datetime "created_at", :null => false
|
1048
|
+
t.datetime "updated_at", :null => false
|
1049
|
+
end
|
1050
|
+
|
1051
|
+
create_table "resource_import_file_transitions", :force => true do |t|
|
1052
|
+
t.string "to_state"
|
1053
|
+
t.text "metadata", :default => "{}"
|
1054
|
+
t.integer "sort_key"
|
1055
|
+
t.integer "resource_import_file_id"
|
1056
|
+
t.datetime "created_at", :null => false
|
1057
|
+
t.datetime "updated_at", :null => false
|
1058
|
+
end
|
1059
|
+
|
1060
|
+
add_index "resource_import_file_transitions", ["resource_import_file_id"], :name => "index_resource_import_file_transitions_on_file_id"
|
1061
|
+
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
|
1062
|
+
|
1063
|
+
create_table "resource_import_files", :force => true do |t|
|
1064
|
+
t.integer "parent_id"
|
1065
|
+
t.string "content_type"
|
1066
|
+
t.integer "size"
|
1067
|
+
t.integer "user_id"
|
1068
|
+
t.text "note"
|
1069
|
+
t.datetime "executed_at"
|
1070
|
+
t.string "resource_import_file_name"
|
1071
|
+
t.string "resource_import_content_type"
|
1072
|
+
t.integer "resource_import_file_size"
|
1073
|
+
t.datetime "resource_import_updated_at"
|
1074
|
+
t.datetime "created_at", :null => false
|
1075
|
+
t.datetime "updated_at", :null => false
|
1076
|
+
t.string "edit_mode"
|
1077
|
+
t.string "resource_import_fingerprint"
|
1078
|
+
t.text "error_message"
|
1079
|
+
t.string "user_encoding"
|
1080
|
+
t.integer "default_shelf_id"
|
1081
|
+
end
|
1082
|
+
|
1083
|
+
add_index "resource_import_files", ["parent_id"], :name => "index_resource_import_files_on_parent_id"
|
1084
|
+
add_index "resource_import_files", ["user_id"], :name => "index_resource_import_files_on_user_id"
|
1085
|
+
|
1086
|
+
create_table "resource_import_results", :force => true do |t|
|
1087
|
+
t.integer "resource_import_file_id"
|
1088
|
+
t.integer "manifestation_id"
|
1089
|
+
t.integer "item_id"
|
1090
|
+
t.text "body"
|
1091
|
+
t.datetime "created_at", :null => false
|
1092
|
+
t.datetime "updated_at", :null => false
|
1093
|
+
end
|
1094
|
+
|
1095
|
+
add_index "resource_import_results", ["item_id"], :name => "index_resource_import_results_on_item_id"
|
1096
|
+
add_index "resource_import_results", ["manifestation_id"], :name => "index_resource_import_results_on_manifestation_id"
|
1097
|
+
add_index "resource_import_results", ["resource_import_file_id"], :name => "index_resource_import_results_on_resource_import_file_id"
|
1098
|
+
|
807
1099
|
create_table "roles", :force => true do |t|
|
808
|
-
t.string "name"
|
809
|
-
t.
|
1100
|
+
t.string "name", :null => false
|
1101
|
+
t.string "display_name"
|
810
1102
|
t.text "note"
|
1103
|
+
t.datetime "created_at"
|
1104
|
+
t.datetime "updated_at"
|
1105
|
+
t.integer "score", :default => 0, :null => false
|
811
1106
|
t.integer "position"
|
812
|
-
t.datetime "created_at", :null => false
|
813
|
-
t.datetime "updated_at", :null => false
|
814
1107
|
end
|
815
1108
|
|
816
1109
|
create_table "search_engines", :force => true do |t|
|
@@ -854,8 +1147,6 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
|
|
854
1147
|
t.text "title_transcription"
|
855
1148
|
t.text "title_alternative"
|
856
1149
|
t.string "series_statement_identifier"
|
857
|
-
t.string "issn"
|
858
|
-
t.boolean "periodical"
|
859
1150
|
t.integer "manifestation_id"
|
860
1151
|
t.text "note"
|
861
1152
|
t.text "title_subseries_transcription"
|
@@ -920,18 +1211,53 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
|
|
920
1211
|
t.datetime "updated_at", :null => false
|
921
1212
|
end
|
922
1213
|
|
1214
|
+
create_table "user_checkout_stat_transitions", :force => true do |t|
|
1215
|
+
t.string "to_state"
|
1216
|
+
t.text "metadata", :default => "{}"
|
1217
|
+
t.integer "sort_key"
|
1218
|
+
t.integer "user_checkout_stat_id"
|
1219
|
+
t.datetime "created_at", :null => false
|
1220
|
+
t.datetime "updated_at", :null => false
|
1221
|
+
end
|
1222
|
+
|
1223
|
+
add_index "user_checkout_stat_transitions", ["sort_key", "user_checkout_stat_id"], :name => "index_user_checkout_stat_transitions_on_sort_key_and_stat_id", :unique => true
|
1224
|
+
add_index "user_checkout_stat_transitions", ["user_checkout_stat_id"], :name => "index_user_checkout_stat_transitions_on_user_checkout_stat_id"
|
1225
|
+
|
923
1226
|
create_table "user_checkout_stats", :force => true do |t|
|
924
1227
|
t.datetime "start_date"
|
925
1228
|
t.datetime "end_date"
|
926
1229
|
t.text "note"
|
927
|
-
t.string "state"
|
928
1230
|
t.datetime "created_at", :null => false
|
929
1231
|
t.datetime "updated_at", :null => false
|
930
1232
|
t.datetime "started_at"
|
931
1233
|
t.datetime "completed_at"
|
1234
|
+
t.integer "user_id"
|
1235
|
+
end
|
1236
|
+
|
1237
|
+
add_index "user_checkout_stats", ["user_id"], :name => "index_user_checkout_stats_on_user_id"
|
1238
|
+
|
1239
|
+
create_table "user_export_file_transitions", :force => true do |t|
|
1240
|
+
t.string "to_state"
|
1241
|
+
t.text "metadata", :default => "{}"
|
1242
|
+
t.integer "sort_key"
|
1243
|
+
t.integer "user_export_file_id"
|
1244
|
+
t.datetime "created_at", :null => false
|
1245
|
+
t.datetime "updated_at", :null => false
|
932
1246
|
end
|
933
1247
|
|
934
|
-
add_index "
|
1248
|
+
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
|
1249
|
+
add_index "user_export_file_transitions", ["user_export_file_id"], :name => "index_user_export_file_transitions_on_file_id"
|
1250
|
+
|
1251
|
+
create_table "user_export_files", :force => true do |t|
|
1252
|
+
t.integer "user_id"
|
1253
|
+
t.string "user_export_file_name"
|
1254
|
+
t.string "user_export_content_type"
|
1255
|
+
t.integer "user_export_file_size"
|
1256
|
+
t.datetime "user_export_updated_at"
|
1257
|
+
t.datetime "executed_at"
|
1258
|
+
t.datetime "created_at", :null => false
|
1259
|
+
t.datetime "updated_at", :null => false
|
1260
|
+
end
|
935
1261
|
|
936
1262
|
create_table "user_group_has_checkout_types", :force => true do |t|
|
937
1263
|
t.integer "user_group_id", :null => false
|
@@ -955,7 +1281,6 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
|
|
955
1281
|
|
956
1282
|
create_table "user_groups", :force => true do |t|
|
957
1283
|
t.string "name"
|
958
|
-
t.string "string"
|
959
1284
|
t.text "display_name"
|
960
1285
|
t.text "note"
|
961
1286
|
t.integer "position"
|
@@ -976,30 +1301,73 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
|
|
976
1301
|
t.datetime "updated_at", :null => false
|
977
1302
|
end
|
978
1303
|
|
1304
|
+
add_index "user_has_roles", ["role_id"], :name => "index_user_has_roles_on_role_id"
|
1305
|
+
add_index "user_has_roles", ["user_id"], :name => "index_user_has_roles_on_user_id"
|
1306
|
+
|
1307
|
+
create_table "user_import_file_transitions", :force => true do |t|
|
1308
|
+
t.string "to_state"
|
1309
|
+
t.text "metadata", :default => "{}"
|
1310
|
+
t.integer "sort_key"
|
1311
|
+
t.integer "user_import_file_id"
|
1312
|
+
t.datetime "created_at", :null => false
|
1313
|
+
t.datetime "updated_at", :null => false
|
1314
|
+
end
|
1315
|
+
|
1316
|
+
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
|
1317
|
+
add_index "user_import_file_transitions", ["user_import_file_id"], :name => "index_user_import_file_transitions_on_user_import_file_id"
|
1318
|
+
|
1319
|
+
create_table "user_import_files", :force => true do |t|
|
1320
|
+
t.integer "user_id"
|
1321
|
+
t.text "note"
|
1322
|
+
t.datetime "executed_at"
|
1323
|
+
t.string "user_import_file_name"
|
1324
|
+
t.string "user_import_content_type"
|
1325
|
+
t.string "user_import_file_size"
|
1326
|
+
t.datetime "user_import_updated_at"
|
1327
|
+
t.string "user_import_fingerprint"
|
1328
|
+
t.string "edit_mode"
|
1329
|
+
t.text "error_message"
|
1330
|
+
t.datetime "created_at", :null => false
|
1331
|
+
t.datetime "updated_at", :null => false
|
1332
|
+
t.string "user_encoding"
|
1333
|
+
t.integer "default_library_id"
|
1334
|
+
t.integer "default_user_group_id"
|
1335
|
+
end
|
1336
|
+
|
1337
|
+
create_table "user_import_results", :force => true do |t|
|
1338
|
+
t.integer "user_import_file_id"
|
1339
|
+
t.integer "user_id"
|
1340
|
+
t.text "body"
|
1341
|
+
t.datetime "created_at", :null => false
|
1342
|
+
t.datetime "updated_at", :null => false
|
1343
|
+
end
|
1344
|
+
|
1345
|
+
create_table "user_reserve_stat_transitions", :force => true do |t|
|
1346
|
+
t.string "to_state"
|
1347
|
+
t.text "metadata", :default => "{}"
|
1348
|
+
t.integer "sort_key"
|
1349
|
+
t.integer "user_reserve_stat_id"
|
1350
|
+
t.datetime "created_at", :null => false
|
1351
|
+
t.datetime "updated_at", :null => false
|
1352
|
+
end
|
1353
|
+
|
1354
|
+
add_index "user_reserve_stat_transitions", ["sort_key", "user_reserve_stat_id"], :name => "index_user_reserve_stat_transitions_on_sort_key_and_stat_id", :unique => true
|
1355
|
+
add_index "user_reserve_stat_transitions", ["user_reserve_stat_id"], :name => "index_user_reserve_stat_transitions_on_user_reserve_stat_id"
|
1356
|
+
|
979
1357
|
create_table "user_reserve_stats", :force => true do |t|
|
980
1358
|
t.datetime "start_date"
|
981
1359
|
t.datetime "end_date"
|
982
1360
|
t.text "note"
|
983
|
-
t.string "state"
|
984
1361
|
t.datetime "created_at", :null => false
|
985
1362
|
t.datetime "updated_at", :null => false
|
986
1363
|
t.datetime "started_at"
|
987
1364
|
t.datetime "completed_at"
|
1365
|
+
t.integer "user_id"
|
988
1366
|
end
|
989
1367
|
|
990
|
-
add_index "user_reserve_stats", ["
|
1368
|
+
add_index "user_reserve_stats", ["user_id"], :name => "index_user_reserve_stats_on_user_id"
|
991
1369
|
|
992
1370
|
create_table "users", :force => true do |t|
|
993
|
-
t.integer "user_group_id"
|
994
|
-
t.integer "required_role_id"
|
995
|
-
t.string "username"
|
996
|
-
t.text "note"
|
997
|
-
t.string "locale"
|
998
|
-
t.string "user_number"
|
999
|
-
t.integer "library_id"
|
1000
|
-
t.datetime "locked_at"
|
1001
|
-
t.datetime "created_at", :null => false
|
1002
|
-
t.datetime "updated_at", :null => false
|
1003
1371
|
t.string "email", :default => "", :null => false
|
1004
1372
|
t.string "encrypted_password", :default => "", :null => false
|
1005
1373
|
t.string "reset_password_token"
|
@@ -1010,13 +1378,24 @@ ActiveRecord::Schema.define(:version => 20130519065837) do
|
|
1010
1378
|
t.datetime "last_sign_in_at"
|
1011
1379
|
t.string "current_sign_in_ip"
|
1012
1380
|
t.string "last_sign_in_ip"
|
1381
|
+
t.datetime "created_at", :null => false
|
1382
|
+
t.datetime "updated_at", :null => false
|
1013
1383
|
t.boolean "save_checkout_history", :default => false, :null => false
|
1014
1384
|
t.string "checkout_icalendar_token"
|
1385
|
+
t.string "username"
|
1386
|
+
t.datetime "deleted_at"
|
1387
|
+
t.datetime "expired_at"
|
1388
|
+
t.integer "failed_attempts", :default => 0
|
1389
|
+
t.string "unlock_token"
|
1390
|
+
t.datetime "locked_at"
|
1391
|
+
t.datetime "confirmed_at"
|
1015
1392
|
end
|
1016
1393
|
|
1017
1394
|
add_index "users", ["checkout_icalendar_token"], :name => "index_users_on_checkout_icalendar_token", :unique => true
|
1018
1395
|
add_index "users", ["email"], :name => "index_users_on_email"
|
1019
1396
|
add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true
|
1397
|
+
add_index "users", ["unlock_token"], :name => "index_users_on_unlock_token", :unique => true
|
1398
|
+
add_index "users", ["username"], :name => "index_users_on_username", :unique => true
|
1020
1399
|
|
1021
1400
|
create_table "versions", :force => true do |t|
|
1022
1401
|
t.string "item_type", :null => false
|