enju_leaf 1.1.0.rc15 → 1.1.0.rc16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (213) hide show
  1. checksums.yaml +4 -4
  2. data/README.rdoc +2 -2
  3. data/app/assets/javascripts/mobile.js +1 -1
  4. data/app/assets/stylesheets/mobile.css +1 -1
  5. data/app/controllers/my_accounts_controller.rb +5 -5
  6. data/app/controllers/page_controller.rb +10 -2
  7. data/app/models/profile.rb +15 -5
  8. data/app/models/user_export_file.rb +1 -1
  9. data/app/models/user_import_file.rb +2 -2
  10. data/app/views/my_accounts/_edit_credential.html.erb +10 -0
  11. data/app/views/my_accounts/edit.html.erb +2 -4
  12. data/app/views/page/_header.html.erb +3 -3
  13. data/app/views/page/_menu.html.erb +3 -0
  14. data/app/views/page/configuration.html.erb +3 -0
  15. data/app/views/page/opensearch.xml.builder +1 -1
  16. data/app/views/page/system_information.html.erb +23 -0
  17. data/app/views/profiles/_edit_credential.html.erb +10 -0
  18. data/app/views/profiles/edit.html.erb +3 -4
  19. data/app/views/profiles/index.html.erb +4 -4
  20. data/app/views/profiles/new.html.erb +10 -0
  21. data/config/locales/translation_en.yml +3 -0
  22. data/config/locales/translation_ja.yml +3 -0
  23. data/config/routes.rb +1 -0
  24. data/db/migrate/20140524074813_create_user_import_file_transitions.rb +5 -1
  25. data/db/migrate/20140709113905_create_user_export_file_transitions.rb +5 -1
  26. data/db/migrate/20141003181336_add_full_name_transcription_to_profile.rb +5 -0
  27. data/db/migrate/20141003182825_add_date_of_birth_to_profile.rb +5 -0
  28. data/lib/enju_leaf/controller.rb +4 -4
  29. data/lib/enju_leaf/helper.rb +7 -0
  30. data/lib/enju_leaf/version.rb +1 -1
  31. data/lib/enju_leaf.rb +0 -48
  32. data/lib/generators/enju_leaf/quick_install/quick_install_generator.rb +1 -1
  33. data/lib/generators/enju_leaf/setup/setup_generator.rb +9 -0
  34. data/lib/generators/enju_leaf/setup/templates/Procfile +1 -1
  35. data/lib/tasks/enju_leaf_tasks.rake +6 -0
  36. data/lib/tasks/profile.rb +1 -1
  37. data/spec/controllers/page_controller_spec.rb +15 -0
  38. data/spec/dummy/config/database.yml +23 -18
  39. data/spec/dummy/db/migrate/001_create_agents.rb +0 -2
  40. data/spec/dummy/db/migrate/005_create_manifestations.rb +1 -2
  41. data/spec/dummy/db/migrate/006_create_items.rb +0 -2
  42. data/spec/dummy/db/migrate/035_create_reserves.rb +0 -1
  43. data/spec/dummy/db/migrate/133_create_agent_merges.rb +15 -0
  44. data/spec/dummy/db/migrate/134_create_agent_merge_lists.rb +13 -0
  45. data/spec/dummy/db/migrate/20081212080038_create_manifestation_checkout_stats.rb +0 -1
  46. data/spec/dummy/db/migrate/20081212151614_create_bookmark_stats.rb +0 -3
  47. data/spec/dummy/db/migrate/20081215094302_create_user_checkout_stats.rb +0 -1
  48. data/spec/dummy/db/migrate/20081216190724_create_manifestation_reserve_stats.rb +0 -1
  49. data/spec/dummy/db/migrate/20081220023628_create_user_reserve_stats.rb +0 -1
  50. data/spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb +0 -4
  51. data/spec/dummy/db/migrate/20100925074559_create_agent_import_results.rb +0 -1
  52. data/spec/dummy/db/migrate/20140518050147_create_reserve_transitions.rb +5 -1
  53. data/spec/dummy/db/migrate/20140518111006_create_message_transitions.rb +5 -1
  54. data/spec/dummy/db/migrate/20140518135713_create_message_request_transitions.rb +5 -1
  55. data/spec/dummy/db/migrate/20140519170214_create_resource_import_file_transitions.rb +5 -1
  56. data/spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb +5 -1
  57. data/spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb +5 -1
  58. data/spec/dummy/db/migrate/20140524135607_create_bookmark_stat_transitions.rb +5 -1
  59. data/spec/dummy/db/migrate/20140528045518_create_user_checkout_stat_transitions.rb +5 -1
  60. data/spec/dummy/db/migrate/20140528045539_create_user_reserve_stat_transitions.rb +5 -1
  61. data/spec/dummy/db/migrate/20140528045600_create_manifestation_checkout_stat_transitions.rb +5 -1
  62. data/spec/dummy/db/migrate/20140528045617_create_manifestation_reserve_stat_transitions.rb +5 -1
  63. data/spec/dummy/db/migrate/20140529014410_create_item_transitions.rb +5 -1
  64. data/spec/dummy/db/migrate/20140614141500_create_resource_export_file_transitions.rb +5 -1
  65. data/spec/dummy/db/migrate/20140720140916_add_binding_item_identifier_to_item.rb +8 -0
  66. data/spec/dummy/db/migrate/20140721151416_add_default_shelf_id_to_resource_import_file.rb +5 -0
  67. data/spec/dummy/db/migrate/20140802082007_add_manifestation_id_to_item.rb +6 -0
  68. data/spec/dummy/db/migrate/{20140810061942_add_user_id_to_stat.rb → 20140810061942_add_user_id_to_user_checkout_stat.rb} +1 -1
  69. data/spec/dummy/db/migrate/20140813182425_add_publication_place_to_manifestation.rb +5 -0
  70. data/spec/dummy/db/migrate/20140822114527_add_error_message_to_resource_import_result.rb +5 -0
  71. data/spec/dummy/db/migrate/20140823083524_add_extent_to_manifestation.rb +5 -0
  72. data/spec/dummy/db/migrate/20141014065831_add_shelf_id_to_checkout.rb +6 -0
  73. data/spec/dummy/db/schema.rb +674 -663
  74. data/spec/fixtures/agent_import_results.yml +0 -3
  75. data/spec/fixtures/agents.yml +0 -12
  76. data/spec/fixtures/checked_items.yml +4 -4
  77. data/spec/fixtures/checkouts.yml +12 -12
  78. data/spec/fixtures/manifestation_checkout_stats.yml +0 -3
  79. data/spec/fixtures/manifestation_reserve_stats.yml +0 -3
  80. data/spec/fixtures/manifestations.yml +114 -114
  81. data/spec/fixtures/reserves.yml +17 -17
  82. data/spec/fixtures/user_checkout_stats.yml +0 -3
  83. data/spec/fixtures/user_reserve_stats.yml +0 -3
  84. data/spec/fixtures/users.yml +1 -1
  85. data/spec/spec_helper.rb +2 -0
  86. data/vendor/assets/javascripts/{jquery.mobile-1.4.3.js → jquery.mobile-1.4.4.js} +191 -116
  87. data/vendor/assets/stylesheets/{jquery.mobile-1.4.3.css → jquery.mobile-1.4.4.css} +10 -2
  88. metadata +79 -264
  89. data/app/models/local_patron.rb +0 -27
  90. data/lib/enju_leaf/bookmark_url.rb +0 -45
  91. data/spec/dummy/db/development.sqlite3 +0 -0
  92. data/spec/dummy/db/migrate/20111020063828_remove_dsbl_from_library_group.rb +0 -11
  93. data/spec/dummy/db/migrate/20130303104849_add_state_index_to_reserve.rb +0 -5
  94. data/spec/dummy/db/test.sqlite3 +0 -0
  95. data/spec/dummy/private/system/user_import_files/user_imports/980/190/963/original/user_delete_file.tsv +0 -4
  96. data/spec/dummy/private/system/user_import_files/user_imports/980/190/963/original/user_import_file_sample.tsv +0 -7
  97. data/spec/dummy/private/system/user_import_files/user_imports/980/190/963/original/user_update_file.tsv +0 -4
  98. data/spec/dummy/private/system/user_import_files/user_imports/980/190/964/original/user_delete_file.tsv +0 -4
  99. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140815-3963-1s1td26.txt +0 -8
  100. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140815-69229-i0rcty.txt +0 -8
  101. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140816-21120-1w731r8.txt +0 -8
  102. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140818-59118-14fm7df.txt +0 -8
  103. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140818-59989-vmovk5.txt +0 -8
  104. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140818-75062-kpzjyb.txt +0 -8
  105. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140818-75773-1lhgyub.txt +0 -8
  106. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140818-75927-j8wteq.txt +0 -8
  107. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140820-9103-mfcugd.txt +0 -8
  108. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140822-13160-wz7o56.txt +0 -8
  109. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140824-39018-fw3fdj.txt +0 -8
  110. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140828-69043-tbwoqv.txt +0 -8
  111. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140915-22971-1jmyywh.txt +0 -8
  112. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140915-23153-j4x3ru.txt +0 -8
  113. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140915-67244-1uo8pkb.txt +0 -8
  114. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140922-80298-14af9pc.txt +0 -8
  115. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140922-80450-1qhv5cf.txt +0 -8
  116. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140922-80529-1hahtrn.txt +0 -8
  117. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140922-80725-tqmhnv.txt +0 -8
  118. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140922-81018-wl1hgj.txt +0 -8
  119. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140922-81246-wll5s.txt +0 -8
  120. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140922-81371-8uz50r.txt +0 -8
  121. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140922-84122-1u96hw6.txt +0 -8
  122. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20140926-7716-bbs13d.txt +0 -8
  123. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20141002-57000-yu6qop.txt +0 -8
  124. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20141002-57206-2j8sg2.txt +0 -8
  125. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20141002-57328-p8lryh.txt +0 -8
  126. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20141002-57609-1j3dd67.txt +0 -8
  127. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20141003-78097-dw5i2k.txt +0 -8
  128. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140711-28652-1dj3e98.txt +0 -148
  129. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140711-29117-13jb6ol.txt +0 -148
  130. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140721-65743-1tnagd4.txt +0 -8
  131. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140815-3963-1kk8o87.txt +0 -8
  132. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140815-69229-188nwub.txt +0 -8
  133. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140816-21120-twzfb6.txt +0 -8
  134. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140818-59118-1lhrtka.txt +0 -8
  135. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140818-59989-1prz707.txt +0 -8
  136. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140818-75062-10bxh78.txt +0 -8
  137. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140818-75773-ekgeho.txt +0 -8
  138. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140818-75927-uay97k.txt +0 -8
  139. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140820-9103-tuuox.txt +0 -8
  140. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140822-13160-17b5dbh.txt +0 -8
  141. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140824-39018-o12xa4.txt +0 -8
  142. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140915-22971-d4ul8o.txt +0 -8
  143. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140915-23153-1qmzqi6.txt +0 -8
  144. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140915-67244-1ps1qsi.txt +0 -8
  145. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140922-80298-121rh7h.txt +0 -8
  146. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140922-80450-wdetsg.txt +0 -8
  147. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140922-80529-lmet02.txt +0 -8
  148. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140922-80725-1l6tliy.txt +0 -8
  149. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140922-81018-azm74f.txt +0 -8
  150. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140922-81246-1rjpksn.txt +0 -8
  151. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140922-81371-aroaof.txt +0 -8
  152. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140922-84122-7d6kls.txt +0 -8
  153. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20140926-7716-1nap0l.txt +0 -8
  154. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141002-57000-3nb1bj.txt +0 -8
  155. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141002-57206-197ca0p.txt +0 -8
  156. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141002-57328-1kra77f.txt +0 -8
  157. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141002-57609-iymry0.txt +0 -8
  158. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141003-78097-1ocngi2.txt +0 -8
  159. data/spec/dummy/solr/conf/admin-extra.html +0 -31
  160. data/spec/dummy/solr/conf/elevate.xml +0 -36
  161. data/spec/dummy/solr/conf/mapping-ISOLatin1Accent.txt +0 -246
  162. data/spec/dummy/solr/conf/protwords.txt +0 -21
  163. data/spec/dummy/solr/conf/schema.xml +0 -255
  164. data/spec/dummy/solr/conf/scripts.conf +0 -24
  165. data/spec/dummy/solr/conf/solrconfig.xml +0 -667
  166. data/spec/dummy/solr/conf/spellings.txt +0 -2
  167. data/spec/dummy/solr/conf/stopwords.txt +0 -58
  168. data/spec/dummy/solr/conf/synonyms.txt +0 -31
  169. data/spec/dummy/solr/default/data/index/_7b.fdt +0 -0
  170. data/spec/dummy/solr/default/data/index/_7b.fdx +0 -0
  171. data/spec/dummy/solr/default/data/index/_7b.fnm +0 -0
  172. data/spec/dummy/solr/default/data/index/_7b.nvd +0 -0
  173. data/spec/dummy/solr/default/data/index/_7b.nvm +0 -0
  174. data/spec/dummy/solr/default/data/index/_7b.si +0 -0
  175. data/spec/dummy/solr/default/data/index/_7b_Lucene41_0.doc +0 -0
  176. data/spec/dummy/solr/default/data/index/_7b_Lucene41_0.pos +0 -0
  177. data/spec/dummy/solr/default/data/index/_7b_Lucene41_0.tim +0 -0
  178. data/spec/dummy/solr/default/data/index/_7b_Lucene41_0.tip +0 -0
  179. data/spec/dummy/solr/default/data/index/segments.gen +0 -0
  180. data/spec/dummy/solr/default/data/index/segments_ev +0 -0
  181. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000524 +0 -0
  182. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000525 +0 -0
  183. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000526 +0 -0
  184. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000527 +0 -0
  185. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000528 +0 -0
  186. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000529 +0 -0
  187. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000530 +0 -0
  188. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000531 +0 -0
  189. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000532 +0 -0
  190. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000533 +0 -0
  191. data/spec/dummy/solr/development/data/index/segments.gen +0 -0
  192. data/spec/dummy/solr/development/data/index/segments_1 +0 -0
  193. data/spec/dummy/solr/solr.xml +0 -8
  194. data/spec/dummy/solr/test/data/index/segments.gen +0 -0
  195. data/spec/dummy/solr/test/data/index/segments_1 +0 -0
  196. data/spec/dummy/tmp/cache/4F7/F90/default_role +0 -0
  197. data/spec/dummy/tmp/cache/ACB/B20/manifestation_search_total +0 -0
  198. data/spec/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  199. data/spec/dummy/tmp/cache/assets/test/sprockets/154f7b83f2da0e86effbe25f32135177 +0 -0
  200. data/spec/dummy/tmp/cache/assets/test/sprockets/1b984bdbd3204a51a82d0e01a1569e2d +0 -0
  201. data/spec/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  202. data/spec/dummy/tmp/cache/assets/test/sprockets/3054c50144654f9c7e57bb0639a276e9 +0 -0
  203. data/spec/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  204. data/spec/dummy/tmp/cache/assets/test/sprockets/3bd7a263237ba366f64d938fe5303757 +0 -0
  205. data/spec/dummy/tmp/cache/assets/test/sprockets/62899096da1a3e67660f3b88068be8c9 +0 -0
  206. data/spec/dummy/tmp/cache/assets/test/sprockets/65b2e4f67eab21b30217e29075f433b2 +0 -0
  207. data/spec/dummy/tmp/cache/assets/test/sprockets/87d24a3f43f175d4d17babe9203c79a7 +0 -0
  208. data/spec/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  209. data/spec/dummy/tmp/cache/assets/test/sprockets/d38d8658b30de1d068603968227680d4 +0 -0
  210. data/spec/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  211. data/spec/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  212. data/spec/dummy/tmp/cache/stdout +0 -1653
  213. data/spec/dummy/tmp/pids/redis-test.pid +0 -1
@@ -9,34 +9,34 @@
9
9
  # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
10
  # you'll amass, the slower it'll run and the greater likelihood for issues).
11
11
  #
12
- # It's strongly recommended to check this file into your version control system.
12
+ # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(:version => 20140823095740) do
14
+ ActiveRecord::Schema.define(version: 20141014065831) do
15
15
 
16
- create_table "accepts", :force => true do |t|
16
+ create_table "accepts", force: true do |t|
17
17
  t.integer "basket_id"
18
18
  t.integer "item_id"
19
19
  t.integer "librarian_id"
20
- t.datetime "created_at", :null => false
21
- t.datetime "updated_at", :null => false
20
+ t.datetime "created_at"
21
+ t.datetime "updated_at"
22
22
  end
23
23
 
24
- add_index "accepts", ["basket_id"], :name => "index_accepts_on_basket_id"
25
- add_index "accepts", ["item_id"], :name => "index_accepts_on_item_id"
24
+ add_index "accepts", ["basket_id"], name: "index_accepts_on_basket_id"
25
+ add_index "accepts", ["item_id"], name: "index_accepts_on_item_id"
26
26
 
27
- create_table "agent_import_file_transitions", :force => true do |t|
27
+ create_table "agent_import_file_transitions", force: true do |t|
28
28
  t.string "to_state"
29
- t.text "metadata", :default => "{}"
29
+ t.text "metadata", default: "{}"
30
30
  t.integer "sort_key"
31
31
  t.integer "agent_import_file_id"
32
- t.datetime "created_at", :null => false
33
- t.datetime "updated_at", :null => false
32
+ t.datetime "created_at"
33
+ t.datetime "updated_at"
34
34
  end
35
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
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
38
 
39
- create_table "agent_import_files", :force => true do |t|
39
+ create_table "agent_import_files", force: true do |t|
40
40
  t.integer "parent_id"
41
41
  t.string "content_type"
42
42
  t.integer "size"
@@ -47,58 +47,72 @@ ActiveRecord::Schema.define(:version => 20140823095740) do
47
47
  t.string "agent_import_content_type"
48
48
  t.integer "agent_import_file_size"
49
49
  t.datetime "agent_import_updated_at"
50
- t.datetime "created_at", :null => false
51
- t.datetime "updated_at", :null => false
50
+ t.datetime "created_at"
51
+ t.datetime "updated_at"
52
52
  t.string "agent_import_fingerprint"
53
53
  t.text "error_message"
54
54
  t.string "edit_mode"
55
55
  t.string "user_encoding"
56
56
  end
57
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"
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
60
 
61
- create_table "agent_import_results", :force => true do |t|
61
+ create_table "agent_import_results", force: true do |t|
62
62
  t.integer "agent_import_file_id"
63
63
  t.integer "agent_id"
64
- t.integer "user_id"
65
64
  t.text "body"
66
- t.datetime "created_at", :null => false
67
- t.datetime "updated_at", :null => false
65
+ t.datetime "created_at"
66
+ t.datetime "updated_at"
67
+ end
68
+
69
+ create_table "agent_merge_lists", force: true do |t|
70
+ t.string "title"
71
+ t.datetime "created_at"
72
+ t.datetime "updated_at"
68
73
  end
69
74
 
70
- create_table "agent_relationship_types", :force => true do |t|
71
- t.string "name", :null => false
75
+ create_table "agent_merges", force: true do |t|
76
+ t.integer "agent_id", null: false
77
+ t.integer "agent_merge_list_id", null: false
78
+ t.datetime "created_at"
79
+ t.datetime "updated_at"
80
+ end
81
+
82
+ add_index "agent_merges", ["agent_id"], name: "index_agent_merges_on_agent_id"
83
+ add_index "agent_merges", ["agent_merge_list_id"], name: "index_agent_merges_on_agent_merge_list_id"
84
+
85
+ create_table "agent_relationship_types", force: true do |t|
86
+ t.string "name", null: false
72
87
  t.text "display_name"
73
88
  t.text "note"
74
89
  t.integer "position"
75
- t.datetime "created_at", :null => false
76
- t.datetime "updated_at", :null => false
90
+ t.datetime "created_at"
91
+ t.datetime "updated_at"
77
92
  end
78
93
 
79
- create_table "agent_relationships", :force => true do |t|
94
+ create_table "agent_relationships", force: true do |t|
80
95
  t.integer "parent_id"
81
96
  t.integer "child_id"
82
97
  t.integer "agent_relationship_type_id"
83
- t.datetime "created_at", :null => false
84
- t.datetime "updated_at", :null => false
98
+ t.datetime "created_at"
99
+ t.datetime "updated_at"
85
100
  t.integer "position"
86
101
  end
87
102
 
88
- add_index "agent_relationships", ["child_id"], :name => "index_agent_relationships_on_child_id"
89
- add_index "agent_relationships", ["parent_id"], :name => "index_agent_relationships_on_parent_id"
103
+ add_index "agent_relationships", ["child_id"], name: "index_agent_relationships_on_child_id"
104
+ add_index "agent_relationships", ["parent_id"], name: "index_agent_relationships_on_parent_id"
90
105
 
91
- create_table "agent_types", :force => true do |t|
92
- t.string "name", :null => false
106
+ create_table "agent_types", force: true do |t|
107
+ t.string "name", null: false
93
108
  t.text "display_name"
94
109
  t.text "note"
95
110
  t.integer "position"
96
- t.datetime "created_at", :null => false
97
- t.datetime "updated_at", :null => false
111
+ t.datetime "created_at"
112
+ t.datetime "updated_at"
98
113
  end
99
114
 
100
- create_table "agents", :force => true do |t|
101
- t.integer "user_id"
115
+ create_table "agents", force: true do |t|
102
116
  t.string "last_name"
103
117
  t.string "middle_name"
104
118
  t.string "first_name"
@@ -110,8 +124,8 @@ ActiveRecord::Schema.define(:version => 20140823095740) do
110
124
  t.string "full_name"
111
125
  t.text "full_name_transcription"
112
126
  t.text "full_name_alternative"
113
- t.datetime "created_at", :null => false
114
- t.datetime "updated_at", :null => false
127
+ t.datetime "created_at"
128
+ t.datetime "updated_at"
115
129
  t.datetime "deleted_at"
116
130
  t.string "zip_code_1"
117
131
  t.string "zip_code_2"
@@ -131,13 +145,13 @@ ActiveRecord::Schema.define(:version => 20140823095740) do
131
145
  t.text "region"
132
146
  t.datetime "date_of_birth"
133
147
  t.datetime "date_of_death"
134
- t.integer "language_id", :default => 1, :null => false
135
- t.integer "country_id", :default => 1, :null => false
136
- t.integer "agent_type_id", :default => 1, :null => false
137
- t.integer "lock_version", :default => 0, :null => false
148
+ t.integer "language_id", default: 1, null: false
149
+ t.integer "country_id", default: 1, null: false
150
+ t.integer "agent_type_id", default: 1, null: false
151
+ t.integer "lock_version", default: 0, null: false
138
152
  t.text "note"
139
- t.integer "required_role_id", :default => 1, :null => false
140
- t.integer "required_score", :default => 0, :null => false
153
+ t.integer "required_role_id", default: 1, null: false
154
+ t.integer "required_score", default: 0, null: false
141
155
  t.text "email"
142
156
  t.text "url"
143
157
  t.text "full_name_alternative_transcription"
@@ -146,76 +160,72 @@ ActiveRecord::Schema.define(:version => 20140823095740) do
146
160
  t.string "agent_identifier"
147
161
  end
148
162
 
149
- add_index "agents", ["agent_identifier"], :name => "index_agents_on_agent_identifier"
150
- add_index "agents", ["country_id"], :name => "index_agents_on_country_id"
151
- add_index "agents", ["full_name"], :name => "index_agents_on_full_name"
152
- add_index "agents", ["language_id"], :name => "index_agents_on_language_id"
153
- add_index "agents", ["required_role_id"], :name => "index_agents_on_required_role_id"
154
- add_index "agents", ["user_id"], :name => "index_agents_on_user_id", :unique => true
163
+ add_index "agents", ["agent_identifier"], name: "index_agents_on_agent_identifier"
164
+ add_index "agents", ["country_id"], name: "index_agents_on_country_id"
165
+ add_index "agents", ["full_name"], name: "index_agents_on_full_name"
166
+ add_index "agents", ["language_id"], name: "index_agents_on_language_id"
167
+ add_index "agents", ["required_role_id"], name: "index_agents_on_required_role_id"
155
168
 
156
- create_table "baskets", :force => true do |t|
169
+ create_table "baskets", force: true do |t|
157
170
  t.integer "user_id"
158
171
  t.text "note"
159
- t.integer "lock_version", :default => 0, :null => false
160
- t.datetime "created_at", :null => false
161
- t.datetime "updated_at", :null => false
172
+ t.integer "lock_version", default: 0, null: false
173
+ t.datetime "created_at"
174
+ t.datetime "updated_at"
162
175
  end
163
176
 
164
- add_index "baskets", ["user_id"], :name => "index_baskets_on_user_id"
177
+ add_index "baskets", ["user_id"], name: "index_baskets_on_user_id"
165
178
 
166
- create_table "bookmark_stat_has_manifestations", :force => true do |t|
167
- t.integer "bookmark_stat_id", :null => false
168
- t.integer "manifestation_id", :null => false
179
+ create_table "bookmark_stat_has_manifestations", force: true do |t|
180
+ t.integer "bookmark_stat_id", null: false
181
+ t.integer "manifestation_id", null: false
169
182
  t.integer "bookmarks_count"
170
- t.datetime "created_at", :null => false
171
- t.datetime "updated_at", :null => false
183
+ t.datetime "created_at"
184
+ t.datetime "updated_at"
172
185
  end
173
186
 
174
- add_index "bookmark_stat_has_manifestations", ["bookmark_stat_id"], :name => "index_bookmark_stat_has_manifestations_on_bookmark_stat_id"
175
- add_index "bookmark_stat_has_manifestations", ["manifestation_id"], :name => "index_bookmark_stat_has_manifestations_on_manifestation_id"
187
+ add_index "bookmark_stat_has_manifestations", ["bookmark_stat_id"], name: "index_bookmark_stat_has_manifestations_on_bookmark_stat_id"
188
+ add_index "bookmark_stat_has_manifestations", ["manifestation_id"], name: "index_bookmark_stat_has_manifestations_on_manifestation_id"
176
189
 
177
- create_table "bookmark_stat_transitions", :force => true do |t|
190
+ create_table "bookmark_stat_transitions", force: true do |t|
178
191
  t.string "to_state"
179
- t.text "metadata", :default => "{}"
192
+ t.text "metadata", default: "{}"
180
193
  t.integer "sort_key"
181
194
  t.integer "bookmark_stat_id"
182
- t.datetime "created_at", :null => false
183
- t.datetime "updated_at", :null => false
195
+ t.datetime "created_at"
196
+ t.datetime "updated_at"
184
197
  end
185
198
 
186
- add_index "bookmark_stat_transitions", ["bookmark_stat_id"], :name => "index_bookmark_stat_transitions_on_bookmark_stat_id"
187
- add_index "bookmark_stat_transitions", ["sort_key", "bookmark_stat_id"], :name => "index_bookmark_stat_transitions_on_sort_key_and_stat_id", :unique => true
199
+ add_index "bookmark_stat_transitions", ["bookmark_stat_id"], name: "index_bookmark_stat_transitions_on_bookmark_stat_id"
200
+ add_index "bookmark_stat_transitions", ["sort_key", "bookmark_stat_id"], name: "index_bookmark_stat_transitions_on_sort_key_and_stat_id", unique: true
188
201
 
189
- create_table "bookmark_stats", :force => true do |t|
202
+ create_table "bookmark_stats", force: true do |t|
190
203
  t.datetime "start_date"
191
204
  t.datetime "end_date"
192
205
  t.datetime "started_at"
193
206
  t.datetime "completed_at"
194
207
  t.text "note"
195
- t.string "state"
196
- t.datetime "created_at", :null => false
197
- t.datetime "updated_at", :null => false
208
+ t.datetime "created_at"
209
+ t.datetime "updated_at"
198
210
  end
199
211
 
200
- add_index "bookmark_stats", ["state"], :name => "index_bookmark_stats_on_state"
201
-
202
- create_table "bookmarks", :force => true do |t|
203
- t.integer "user_id", :null => false
212
+ create_table "bookmarks", force: true do |t|
213
+ t.integer "user_id", null: false
204
214
  t.integer "manifestation_id"
205
215
  t.text "title"
206
216
  t.string "url"
207
217
  t.text "note"
208
218
  t.boolean "shared"
209
- t.datetime "created_at", :null => false
210
- t.datetime "updated_at", :null => false
219
+ t.datetime "created_at"
220
+ t.datetime "updated_at"
211
221
  end
212
222
 
213
- add_index "bookmarks", ["manifestation_id"], :name => "index_bookmarks_on_manifestation_id"
214
- add_index "bookmarks", ["url"], :name => "index_bookmarks_on_url"
215
- add_index "bookmarks", ["user_id"], :name => "index_bookmarks_on_user_id"
223
+ add_index "bookmarks", ["manifestation_id"], name: "index_bookmarks_on_manifestation_id"
224
+ add_index "bookmarks", ["url"], name: "index_bookmarks_on_url"
225
+ add_index "bookmarks", ["user_id"], name: "index_bookmarks_on_user_id"
216
226
 
217
- create_table "bookstores", :force => true do |t|
218
- t.text "name", :null => false
227
+ create_table "bookstores", force: true do |t|
228
+ t.text "name", null: false
219
229
  t.string "zip_code"
220
230
  t.text "address"
221
231
  t.text "note"
@@ -224,138 +234,140 @@ ActiveRecord::Schema.define(:version => 20140823095740) do
224
234
  t.string "url"
225
235
  t.integer "position"
226
236
  t.datetime "deleted_at"
227
- t.datetime "created_at", :null => false
228
- t.datetime "updated_at", :null => false
237
+ t.datetime "created_at"
238
+ t.datetime "updated_at"
229
239
  end
230
240
 
231
- create_table "budget_types", :force => true do |t|
241
+ create_table "budget_types", force: true do |t|
232
242
  t.string "name"
233
243
  t.text "display_name"
234
244
  t.text "note"
235
245
  t.integer "position"
236
- t.datetime "created_at", :null => false
237
- t.datetime "updated_at", :null => false
246
+ t.datetime "created_at"
247
+ t.datetime "updated_at"
238
248
  end
239
249
 
240
- create_table "carrier_type_has_checkout_types", :force => true do |t|
241
- t.integer "carrier_type_id", :null => false
242
- t.integer "checkout_type_id", :null => false
250
+ create_table "carrier_type_has_checkout_types", force: true do |t|
251
+ t.integer "carrier_type_id", null: false
252
+ t.integer "checkout_type_id", null: false
243
253
  t.text "note"
244
254
  t.integer "position"
245
- t.datetime "created_at", :null => false
246
- t.datetime "updated_at", :null => false
255
+ t.datetime "created_at"
256
+ t.datetime "updated_at"
247
257
  end
248
258
 
249
- add_index "carrier_type_has_checkout_types", ["carrier_type_id"], :name => "index_carrier_type_has_checkout_types_on_m_form_id"
250
- add_index "carrier_type_has_checkout_types", ["checkout_type_id"], :name => "index_carrier_type_has_checkout_types_on_checkout_type_id"
259
+ add_index "carrier_type_has_checkout_types", ["carrier_type_id"], name: "index_carrier_type_has_checkout_types_on_m_form_id"
260
+ add_index "carrier_type_has_checkout_types", ["checkout_type_id"], name: "index_carrier_type_has_checkout_types_on_checkout_type_id"
251
261
 
252
- create_table "carrier_types", :force => true do |t|
253
- t.string "name", :null => false
262
+ create_table "carrier_types", force: true do |t|
263
+ t.string "name", null: false
254
264
  t.text "display_name"
255
265
  t.text "note"
256
266
  t.integer "position"
257
- t.datetime "created_at", :null => false
258
- t.datetime "updated_at", :null => false
267
+ t.datetime "created_at"
268
+ t.datetime "updated_at"
259
269
  end
260
270
 
261
- create_table "checked_items", :force => true do |t|
262
- t.integer "item_id", :null => false
263
- t.integer "basket_id", :null => false
264
- t.datetime "due_date", :null => false
265
- t.datetime "created_at", :null => false
266
- t.datetime "updated_at", :null => false
271
+ create_table "checked_items", force: true do |t|
272
+ t.integer "item_id", null: false
273
+ t.integer "basket_id", null: false
274
+ t.datetime "due_date", null: false
275
+ t.datetime "created_at"
276
+ t.datetime "updated_at"
267
277
  t.integer "librarian_id"
268
278
  end
269
279
 
270
- add_index "checked_items", ["basket_id"], :name => "index_checked_items_on_basket_id"
271
- add_index "checked_items", ["item_id"], :name => "index_checked_items_on_item_id"
280
+ add_index "checked_items", ["basket_id"], name: "index_checked_items_on_basket_id"
281
+ add_index "checked_items", ["item_id"], name: "index_checked_items_on_item_id"
272
282
 
273
- create_table "checkins", :force => true do |t|
274
- t.integer "item_id", :null => false
283
+ create_table "checkins", force: true do |t|
284
+ t.integer "item_id", null: false
275
285
  t.integer "librarian_id"
276
286
  t.integer "basket_id"
277
- t.datetime "created_at", :null => false
278
- t.datetime "updated_at", :null => false
279
- t.integer "lock_version", :default => 0, :null => false
287
+ t.datetime "created_at"
288
+ t.datetime "updated_at"
289
+ t.integer "lock_version", default: 0, null: false
280
290
  end
281
291
 
282
- add_index "checkins", ["basket_id"], :name => "index_checkins_on_basket_id"
283
- add_index "checkins", ["item_id"], :name => "index_checkins_on_item_id"
284
- add_index "checkins", ["librarian_id"], :name => "index_checkins_on_librarian_id"
292
+ add_index "checkins", ["basket_id"], name: "index_checkins_on_basket_id"
293
+ add_index "checkins", ["item_id"], name: "index_checkins_on_item_id"
294
+ add_index "checkins", ["librarian_id"], name: "index_checkins_on_librarian_id"
285
295
 
286
- create_table "checkout_stat_has_manifestations", :force => true do |t|
287
- t.integer "manifestation_checkout_stat_id", :null => false
288
- t.integer "manifestation_id", :null => false
296
+ create_table "checkout_stat_has_manifestations", force: true do |t|
297
+ t.integer "manifestation_checkout_stat_id", null: false
298
+ t.integer "manifestation_id", null: false
289
299
  t.integer "checkouts_count"
290
- t.datetime "created_at", :null => false
291
- t.datetime "updated_at", :null => false
300
+ t.datetime "created_at"
301
+ t.datetime "updated_at"
292
302
  end
293
303
 
294
- add_index "checkout_stat_has_manifestations", ["manifestation_checkout_stat_id"], :name => "index_checkout_stat_has_manifestations_on_checkout_stat_id"
295
- add_index "checkout_stat_has_manifestations", ["manifestation_id"], :name => "index_checkout_stat_has_manifestations_on_manifestation_id"
304
+ add_index "checkout_stat_has_manifestations", ["manifestation_checkout_stat_id"], name: "index_checkout_stat_has_manifestations_on_checkout_stat_id"
305
+ add_index "checkout_stat_has_manifestations", ["manifestation_id"], name: "index_checkout_stat_has_manifestations_on_manifestation_id"
296
306
 
297
- create_table "checkout_stat_has_users", :force => true do |t|
298
- t.integer "user_checkout_stat_id", :null => false
299
- t.integer "user_id", :null => false
300
- t.integer "checkouts_count", :default => 0, :null => false
301
- t.datetime "created_at", :null => false
302
- t.datetime "updated_at", :null => false
307
+ create_table "checkout_stat_has_users", force: true do |t|
308
+ t.integer "user_checkout_stat_id", null: false
309
+ t.integer "user_id", null: false
310
+ t.integer "checkouts_count", default: 0, null: false
311
+ t.datetime "created_at"
312
+ t.datetime "updated_at"
303
313
  end
304
314
 
305
- add_index "checkout_stat_has_users", ["user_checkout_stat_id"], :name => "index_checkout_stat_has_users_on_user_checkout_stat_id"
306
- add_index "checkout_stat_has_users", ["user_id"], :name => "index_checkout_stat_has_users_on_user_id"
315
+ add_index "checkout_stat_has_users", ["user_checkout_stat_id"], name: "index_checkout_stat_has_users_on_user_checkout_stat_id"
316
+ add_index "checkout_stat_has_users", ["user_id"], name: "index_checkout_stat_has_users_on_user_id"
307
317
 
308
- create_table "checkout_types", :force => true do |t|
309
- t.string "name", :null => false
318
+ create_table "checkout_types", force: true do |t|
319
+ t.string "name", null: false
310
320
  t.text "display_name"
311
321
  t.text "note"
312
322
  t.integer "position"
313
- t.datetime "created_at", :null => false
314
- t.datetime "updated_at", :null => false
323
+ t.datetime "created_at"
324
+ t.datetime "updated_at"
315
325
  end
316
326
 
317
- add_index "checkout_types", ["name"], :name => "index_checkout_types_on_name"
327
+ add_index "checkout_types", ["name"], name: "index_checkout_types_on_name"
318
328
 
319
- create_table "checkouts", :force => true do |t|
329
+ create_table "checkouts", force: true do |t|
320
330
  t.integer "user_id"
321
- t.integer "item_id", :null => false
331
+ t.integer "item_id", null: false
322
332
  t.integer "checkin_id"
323
333
  t.integer "librarian_id"
324
334
  t.integer "basket_id"
325
335
  t.datetime "due_date"
326
- t.integer "checkout_renewal_count", :default => 0, :null => false
327
- t.integer "lock_version", :default => 0, :null => false
328
- t.datetime "created_at", :null => false
329
- t.datetime "updated_at", :null => false
336
+ t.integer "checkout_renewal_count", default: 0, null: false
337
+ t.integer "lock_version", default: 0, null: false
338
+ t.datetime "created_at"
339
+ t.datetime "updated_at"
340
+ t.integer "shelf_id"
330
341
  end
331
342
 
332
- add_index "checkouts", ["basket_id"], :name => "index_checkouts_on_basket_id"
333
- add_index "checkouts", ["checkin_id"], :name => "index_checkouts_on_checkin_id"
334
- add_index "checkouts", ["item_id", "basket_id"], :name => "index_checkouts_on_item_id_and_basket_id", :unique => true
335
- add_index "checkouts", ["item_id"], :name => "index_checkouts_on_item_id"
336
- add_index "checkouts", ["librarian_id"], :name => "index_checkouts_on_librarian_id"
337
- add_index "checkouts", ["user_id"], :name => "index_checkouts_on_user_id"
343
+ add_index "checkouts", ["basket_id"], name: "index_checkouts_on_basket_id"
344
+ add_index "checkouts", ["checkin_id"], name: "index_checkouts_on_checkin_id"
345
+ add_index "checkouts", ["item_id", "basket_id"], name: "index_checkouts_on_item_id_and_basket_id", unique: true
346
+ add_index "checkouts", ["item_id"], name: "index_checkouts_on_item_id"
347
+ add_index "checkouts", ["librarian_id"], name: "index_checkouts_on_librarian_id"
348
+ add_index "checkouts", ["shelf_id"], name: "index_checkouts_on_shelf_id"
349
+ add_index "checkouts", ["user_id"], name: "index_checkouts_on_user_id"
338
350
 
339
- create_table "circulation_statuses", :force => true do |t|
340
- t.string "name", :null => false
351
+ create_table "circulation_statuses", force: true do |t|
352
+ t.string "name", null: false
341
353
  t.text "display_name"
342
354
  t.text "note"
343
355
  t.integer "position"
344
- t.datetime "created_at", :null => false
345
- t.datetime "updated_at", :null => false
356
+ t.datetime "created_at"
357
+ t.datetime "updated_at"
346
358
  end
347
359
 
348
- create_table "content_types", :force => true do |t|
349
- t.string "name", :null => false
360
+ create_table "content_types", force: true do |t|
361
+ t.string "name", null: false
350
362
  t.text "display_name"
351
363
  t.text "note"
352
364
  t.integer "position"
353
- t.datetime "created_at", :null => false
354
- t.datetime "updated_at", :null => false
365
+ t.datetime "created_at"
366
+ t.datetime "updated_at"
355
367
  end
356
368
 
357
- create_table "countries", :force => true do |t|
358
- t.string "name", :null => false
369
+ create_table "countries", force: true do |t|
370
+ t.string "name", null: false
359
371
  t.text "display_name"
360
372
  t.string "alpha_2"
361
373
  t.string "alpha_3"
@@ -364,206 +376,210 @@ ActiveRecord::Schema.define(:version => 20140823095740) do
364
376
  t.integer "position"
365
377
  end
366
378
 
367
- add_index "countries", ["alpha_2"], :name => "index_countries_on_alpha_2"
368
- add_index "countries", ["alpha_3"], :name => "index_countries_on_alpha_3"
369
- add_index "countries", ["name"], :name => "index_countries_on_name"
370
- add_index "countries", ["numeric_3"], :name => "index_countries_on_numeric_3"
379
+ add_index "countries", ["alpha_2"], name: "index_countries_on_alpha_2"
380
+ add_index "countries", ["alpha_3"], name: "index_countries_on_alpha_3"
381
+ add_index "countries", ["name"], name: "index_countries_on_name"
382
+ add_index "countries", ["numeric_3"], name: "index_countries_on_numeric_3"
371
383
 
372
- create_table "create_types", :force => true do |t|
384
+ create_table "create_types", force: true do |t|
373
385
  t.string "name"
374
386
  t.text "display_name"
375
387
  t.text "note"
376
388
  t.integer "position"
377
- t.datetime "created_at", :null => false
378
- t.datetime "updated_at", :null => false
389
+ t.datetime "created_at"
390
+ t.datetime "updated_at"
379
391
  end
380
392
 
381
- create_table "creates", :force => true do |t|
382
- t.integer "agent_id", :null => false
383
- t.integer "work_id", :null => false
393
+ create_table "creates", force: true do |t|
394
+ t.integer "agent_id", null: false
395
+ t.integer "work_id", null: false
384
396
  t.integer "position"
385
- t.datetime "created_at", :null => false
386
- t.datetime "updated_at", :null => false
397
+ t.datetime "created_at"
398
+ t.datetime "updated_at"
387
399
  t.integer "create_type_id"
388
400
  end
389
401
 
390
- add_index "creates", ["agent_id"], :name => "index_creates_on_agent_id"
391
- add_index "creates", ["work_id"], :name => "index_creates_on_work_id"
402
+ add_index "creates", ["agent_id"], name: "index_creates_on_agent_id"
403
+ add_index "creates", ["work_id"], name: "index_creates_on_work_id"
392
404
 
393
- create_table "donates", :force => true do |t|
394
- t.integer "agent_id", :null => false
395
- t.integer "item_id", :null => false
396
- t.datetime "created_at", :null => false
397
- t.datetime "updated_at", :null => false
405
+ create_table "donates", force: true do |t|
406
+ t.integer "agent_id", null: false
407
+ t.integer "item_id", null: false
408
+ t.datetime "created_at"
409
+ t.datetime "updated_at"
398
410
  end
399
411
 
400
- add_index "donates", ["agent_id"], :name => "index_donates_on_agent_id"
401
- add_index "donates", ["item_id"], :name => "index_donates_on_item_id"
412
+ add_index "donates", ["agent_id"], name: "index_donates_on_agent_id"
413
+ add_index "donates", ["item_id"], name: "index_donates_on_item_id"
402
414
 
403
- create_table "event_categories", :force => true do |t|
404
- t.string "name", :null => false
415
+ create_table "event_categories", force: true do |t|
416
+ t.string "name", null: false
405
417
  t.text "display_name"
406
418
  t.text "note"
407
419
  t.integer "position"
408
- t.datetime "created_at", :null => false
409
- t.datetime "updated_at", :null => false
420
+ t.datetime "created_at"
421
+ t.datetime "updated_at"
410
422
  end
411
423
 
412
- create_table "events", :force => true do |t|
413
- t.integer "library_id", :default => 1, :null => false
414
- t.integer "event_category_id", :default => 1, :null => false
424
+ create_table "events", force: true do |t|
425
+ t.integer "library_id", default: 1, null: false
426
+ t.integer "event_category_id", default: 1, null: false
415
427
  t.string "name"
416
428
  t.text "note"
417
429
  t.datetime "start_at"
418
430
  t.datetime "end_at"
419
- t.boolean "all_day", :default => false, :null => false
431
+ t.boolean "all_day", default: false, null: false
420
432
  t.datetime "deleted_at"
421
433
  t.text "display_name"
422
- t.datetime "created_at", :null => false
423
- t.datetime "updated_at", :null => false
434
+ t.datetime "created_at"
435
+ t.datetime "updated_at"
424
436
  end
425
437
 
426
- add_index "events", ["event_category_id"], :name => "index_events_on_event_category_id"
427
- add_index "events", ["library_id"], :name => "index_events_on_library_id"
438
+ add_index "events", ["event_category_id"], name: "index_events_on_event_category_id"
439
+ add_index "events", ["library_id"], name: "index_events_on_library_id"
428
440
 
429
- create_table "exemplifies", :force => true do |t|
430
- t.integer "manifestation_id", :null => false
431
- t.integer "item_id", :null => false
441
+ create_table "exemplifies", force: true do |t|
442
+ t.integer "manifestation_id", null: false
443
+ t.integer "item_id", null: false
432
444
  t.integer "position"
433
- t.datetime "created_at", :null => false
434
- t.datetime "updated_at", :null => false
445
+ t.datetime "created_at"
446
+ t.datetime "updated_at"
435
447
  end
436
448
 
437
- add_index "exemplifies", ["item_id"], :name => "index_exemplifies_on_item_id", :unique => true
438
- add_index "exemplifies", ["manifestation_id"], :name => "index_exemplifies_on_manifestation_id"
449
+ add_index "exemplifies", ["item_id"], name: "index_exemplifies_on_item_id", unique: true
450
+ add_index "exemplifies", ["manifestation_id"], name: "index_exemplifies_on_manifestation_id"
439
451
 
440
- create_table "extents", :force => true do |t|
441
- t.string "name", :null => false
452
+ create_table "extents", force: true do |t|
453
+ t.string "name", null: false
442
454
  t.text "display_name"
443
455
  t.text "note"
444
456
  t.integer "position"
445
- t.datetime "created_at", :null => false
446
- t.datetime "updated_at", :null => false
457
+ t.datetime "created_at"
458
+ t.datetime "updated_at"
447
459
  end
448
460
 
449
- create_table "form_of_works", :force => true do |t|
450
- t.string "name", :null => false
461
+ create_table "form_of_works", force: true do |t|
462
+ t.string "name", null: false
451
463
  t.text "display_name"
452
464
  t.text "note"
453
465
  t.integer "position"
454
- t.datetime "created_at", :null => false
455
- t.datetime "updated_at", :null => false
466
+ t.datetime "created_at"
467
+ t.datetime "updated_at"
456
468
  end
457
469
 
458
- create_table "frequencies", :force => true do |t|
459
- t.string "name", :null => false
470
+ create_table "frequencies", force: true do |t|
471
+ t.string "name", null: false
460
472
  t.text "display_name"
461
473
  t.text "note"
462
474
  t.integer "position"
463
- t.datetime "created_at", :null => false
464
- t.datetime "updated_at", :null => false
475
+ t.datetime "created_at"
476
+ t.datetime "updated_at"
465
477
  end
466
478
 
467
- create_table "identifier_types", :force => true do |t|
479
+ create_table "identifier_types", force: true do |t|
468
480
  t.string "name"
469
481
  t.text "display_name"
470
482
  t.text "note"
471
483
  t.integer "position"
472
- t.datetime "created_at", :null => false
473
- t.datetime "updated_at", :null => false
484
+ t.datetime "created_at"
485
+ t.datetime "updated_at"
474
486
  end
475
487
 
476
- create_table "identifiers", :force => true do |t|
477
- t.string "body", :null => false
478
- t.integer "identifier_type_id", :null => false
488
+ create_table "identifiers", force: true do |t|
489
+ t.string "body", null: false
490
+ t.integer "identifier_type_id", null: false
479
491
  t.integer "manifestation_id"
480
492
  t.boolean "primary"
481
493
  t.integer "position"
482
- t.datetime "created_at", :null => false
483
- t.datetime "updated_at", :null => false
494
+ t.datetime "created_at"
495
+ t.datetime "updated_at"
484
496
  end
485
497
 
486
- add_index "identifiers", ["body", "identifier_type_id"], :name => "index_identifiers_on_body_and_identifier_type_id"
487
- add_index "identifiers", ["manifestation_id"], :name => "index_identifiers_on_manifestation_id"
498
+ add_index "identifiers", ["body", "identifier_type_id"], name: "index_identifiers_on_body_and_identifier_type_id"
499
+ add_index "identifiers", ["manifestation_id"], name: "index_identifiers_on_manifestation_id"
488
500
 
489
- create_table "import_request_transitions", :force => true do |t|
501
+ create_table "import_request_transitions", force: true do |t|
490
502
  t.string "to_state"
491
- t.text "metadata", :default => "{}"
503
+ t.text "metadata", default: "{}"
492
504
  t.integer "sort_key"
493
505
  t.integer "import_request_id"
494
- t.datetime "created_at", :null => false
495
- t.datetime "updated_at", :null => false
506
+ t.datetime "created_at"
507
+ t.datetime "updated_at"
496
508
  end
497
509
 
498
- add_index "import_request_transitions", ["import_request_id"], :name => "index_import_request_transitions_on_import_request_id"
499
- add_index "import_request_transitions", ["sort_key", "import_request_id"], :name => "index_import_request_transitions_on_sort_key_and_request_id", :unique => true
510
+ add_index "import_request_transitions", ["import_request_id"], name: "index_import_request_transitions_on_import_request_id"
511
+ add_index "import_request_transitions", ["sort_key", "import_request_id"], name: "index_import_request_transitions_on_sort_key_and_request_id", unique: true
500
512
 
501
- create_table "import_requests", :force => true do |t|
513
+ create_table "import_requests", force: true do |t|
502
514
  t.string "isbn"
503
515
  t.integer "manifestation_id"
504
516
  t.integer "user_id"
505
- t.datetime "created_at", :null => false
506
- t.datetime "updated_at", :null => false
517
+ t.datetime "created_at"
518
+ t.datetime "updated_at"
507
519
  end
508
520
 
509
- add_index "import_requests", ["isbn"], :name => "index_import_requests_on_isbn"
510
- add_index "import_requests", ["manifestation_id"], :name => "index_import_requests_on_manifestation_id"
511
- add_index "import_requests", ["user_id"], :name => "index_import_requests_on_user_id"
521
+ add_index "import_requests", ["isbn"], name: "index_import_requests_on_isbn"
522
+ add_index "import_requests", ["manifestation_id"], name: "index_import_requests_on_manifestation_id"
523
+ add_index "import_requests", ["user_id"], name: "index_import_requests_on_user_id"
512
524
 
513
- create_table "item_has_use_restrictions", :force => true do |t|
514
- t.integer "item_id", :null => false
515
- t.integer "use_restriction_id", :null => false
516
- t.datetime "created_at", :null => false
517
- t.datetime "updated_at", :null => false
525
+ create_table "item_has_use_restrictions", force: true do |t|
526
+ t.integer "item_id", null: false
527
+ t.integer "use_restriction_id", null: false
528
+ t.datetime "created_at"
529
+ t.datetime "updated_at"
518
530
  end
519
531
 
520
- add_index "item_has_use_restrictions", ["item_id"], :name => "index_item_has_use_restrictions_on_item_id"
521
- add_index "item_has_use_restrictions", ["use_restriction_id"], :name => "index_item_has_use_restrictions_on_use_restriction_id"
532
+ add_index "item_has_use_restrictions", ["item_id"], name: "index_item_has_use_restrictions_on_item_id"
533
+ add_index "item_has_use_restrictions", ["use_restriction_id"], name: "index_item_has_use_restrictions_on_use_restriction_id"
522
534
 
523
- create_table "item_transitions", :force => true do |t|
535
+ create_table "item_transitions", force: true do |t|
524
536
  t.string "to_state"
525
- t.text "metadata", :default => "{}"
537
+ t.text "metadata", default: "{}"
526
538
  t.integer "sort_key"
527
539
  t.integer "item_id"
528
- t.datetime "created_at", :null => false
529
- t.datetime "updated_at", :null => false
540
+ t.datetime "created_at"
541
+ t.datetime "updated_at"
530
542
  end
531
543
 
532
- add_index "item_transitions", ["item_id"], :name => "index_item_transitions_on_item_id"
533
- add_index "item_transitions", ["sort_key", "item_id"], :name => "index_item_transitions_on_sort_key_and_item_id", :unique => true
544
+ add_index "item_transitions", ["item_id"], name: "index_item_transitions_on_item_id"
545
+ add_index "item_transitions", ["sort_key", "item_id"], name: "index_item_transitions_on_sort_key_and_item_id", unique: true
534
546
 
535
- create_table "items", :force => true do |t|
536
- t.integer "manifestation_id"
547
+ create_table "items", force: true do |t|
537
548
  t.string "call_number"
538
549
  t.string "item_identifier"
539
- t.datetime "created_at", :null => false
540
- t.datetime "updated_at", :null => false
550
+ t.datetime "created_at"
551
+ t.datetime "updated_at"
541
552
  t.datetime "deleted_at"
542
- t.integer "shelf_id", :default => 1, :null => false
543
- t.boolean "include_supplements", :default => false, :null => false
553
+ t.integer "shelf_id", default: 1, null: false
554
+ t.boolean "include_supplements", default: false, null: false
544
555
  t.text "note"
545
556
  t.string "url"
546
557
  t.integer "price"
547
- t.integer "lock_version", :default => 0, :null => false
548
- t.integer "required_role_id", :default => 1, :null => false
549
- t.integer "required_score", :default => 0, :null => false
558
+ t.integer "lock_version", default: 0, null: false
559
+ t.integer "required_role_id", default: 1, null: false
560
+ t.integer "required_score", default: 0, null: false
550
561
  t.datetime "acquired_at"
551
562
  t.integer "bookstore_id"
552
563
  t.integer "budget_type_id"
553
- t.integer "circulation_status_id", :default => 5, :null => false
554
- t.integer "checkout_type_id", :default => 1, :null => false
564
+ t.integer "circulation_status_id", default: 5, null: false
565
+ t.integer "checkout_type_id", default: 1, null: false
566
+ t.string "binding_item_identifier"
567
+ t.string "binding_call_number"
568
+ t.datetime "binded_at"
569
+ t.integer "manifestation_id"
555
570
  end
556
571
 
557
- add_index "items", ["bookstore_id"], :name => "index_items_on_bookstore_id"
558
- add_index "items", ["checkout_type_id"], :name => "index_items_on_checkout_type_id"
559
- add_index "items", ["circulation_status_id"], :name => "index_items_on_circulation_status_id"
560
- add_index "items", ["item_identifier"], :name => "index_items_on_item_identifier"
561
- add_index "items", ["manifestation_id"], :name => "index_items_on_manifestation_id"
562
- add_index "items", ["required_role_id"], :name => "index_items_on_required_role_id"
563
- add_index "items", ["shelf_id"], :name => "index_items_on_shelf_id"
572
+ add_index "items", ["binding_item_identifier"], name: "index_items_on_binding_item_identifier"
573
+ add_index "items", ["bookstore_id"], name: "index_items_on_bookstore_id"
574
+ add_index "items", ["checkout_type_id"], name: "index_items_on_checkout_type_id"
575
+ add_index "items", ["circulation_status_id"], name: "index_items_on_circulation_status_id"
576
+ add_index "items", ["item_identifier"], name: "index_items_on_item_identifier"
577
+ add_index "items", ["manifestation_id"], name: "index_items_on_manifestation_id"
578
+ add_index "items", ["required_role_id"], name: "index_items_on_required_role_id"
579
+ add_index "items", ["shelf_id"], name: "index_items_on_shelf_id"
564
580
 
565
- create_table "languages", :force => true do |t|
566
- t.string "name", :null => false
581
+ create_table "languages", force: true do |t|
582
+ t.string "name", null: false
567
583
  t.string "native_name"
568
584
  t.text "display_name"
569
585
  t.string "iso_639_1"
@@ -573,30 +589,30 @@ ActiveRecord::Schema.define(:version => 20140823095740) do
573
589
  t.integer "position"
574
590
  end
575
591
 
576
- add_index "languages", ["iso_639_1"], :name => "index_languages_on_iso_639_1"
577
- add_index "languages", ["iso_639_2"], :name => "index_languages_on_iso_639_2"
578
- add_index "languages", ["iso_639_3"], :name => "index_languages_on_iso_639_3"
579
- add_index "languages", ["name"], :name => "index_languages_on_name", :unique => true
592
+ add_index "languages", ["iso_639_1"], name: "index_languages_on_iso_639_1"
593
+ add_index "languages", ["iso_639_2"], name: "index_languages_on_iso_639_2"
594
+ add_index "languages", ["iso_639_3"], name: "index_languages_on_iso_639_3"
595
+ add_index "languages", ["name"], name: "index_languages_on_name", unique: true
580
596
 
581
- create_table "lending_policies", :force => true do |t|
582
- t.integer "item_id", :null => false
583
- t.integer "user_group_id", :null => false
584
- t.integer "loan_period", :default => 0, :null => false
597
+ create_table "lending_policies", force: true do |t|
598
+ t.integer "item_id", null: false
599
+ t.integer "user_group_id", null: false
600
+ t.integer "loan_period", default: 0, null: false
585
601
  t.datetime "fixed_due_date"
586
- t.integer "renewal", :default => 0, :null => false
587
- t.integer "fine", :default => 0, :null => false
602
+ t.integer "renewal", default: 0, null: false
603
+ t.integer "fine", default: 0, null: false
588
604
  t.text "note"
589
605
  t.integer "position"
590
- t.datetime "created_at", :null => false
591
- t.datetime "updated_at", :null => false
606
+ t.datetime "created_at"
607
+ t.datetime "updated_at"
592
608
  end
593
609
 
594
- add_index "lending_policies", ["item_id", "user_group_id"], :name => "index_lending_policies_on_item_id_and_user_group_id", :unique => true
610
+ add_index "lending_policies", ["item_id", "user_group_id"], name: "index_lending_policies_on_item_id_and_user_group_id", unique: true
595
611
 
596
- create_table "libraries", :force => true do |t|
597
- t.string "name", :null => false
612
+ create_table "libraries", force: true do |t|
613
+ t.string "name", null: false
598
614
  t.text "display_name"
599
- t.string "short_display_name", :null => false
615
+ t.string "short_display_name", null: false
600
616
  t.string "zip_code"
601
617
  t.text "street"
602
618
  t.text "locality"
@@ -605,138 +621,133 @@ ActiveRecord::Schema.define(:version => 20140823095740) do
605
621
  t.string "telephone_number_2"
606
622
  t.string "fax_number"
607
623
  t.text "note"
608
- t.integer "call_number_rows", :default => 1, :null => false
609
- t.string "call_number_delimiter", :default => "|", :null => false
610
- t.integer "library_group_id", :default => 1, :null => false
611
- t.integer "users_count", :default => 0, :null => false
624
+ t.integer "call_number_rows", default: 1, null: false
625
+ t.string "call_number_delimiter", default: "|", null: false
626
+ t.integer "library_group_id", default: 1, null: false
627
+ t.integer "users_count", default: 0, null: false
612
628
  t.integer "position"
613
629
  t.integer "country_id"
614
- t.datetime "created_at", :null => false
615
- t.datetime "updated_at", :null => false
630
+ t.datetime "created_at"
631
+ t.datetime "updated_at"
616
632
  t.datetime "deleted_at"
617
633
  t.string "isil"
618
634
  end
619
635
 
620
- add_index "libraries", ["library_group_id"], :name => "index_libraries_on_library_group_id"
621
- add_index "libraries", ["name"], :name => "index_libraries_on_name", :unique => true
636
+ add_index "libraries", ["library_group_id"], name: "index_libraries_on_library_group_id"
637
+ add_index "libraries", ["name"], name: "index_libraries_on_name", unique: true
622
638
 
623
- create_table "library_groups", :force => true do |t|
624
- t.string "name", :null => false
639
+ create_table "library_groups", force: true do |t|
640
+ t.string "name", null: false
625
641
  t.text "display_name"
626
- t.string "short_name", :null => false
642
+ t.string "short_name", null: false
627
643
  t.text "my_networks"
628
644
  t.text "login_banner"
629
645
  t.text "note"
630
646
  t.integer "country_id"
631
647
  t.integer "position"
632
- t.datetime "created_at", :null => false
633
- t.datetime "updated_at", :null => false
648
+ t.datetime "created_at"
649
+ t.datetime "updated_at"
634
650
  t.text "admin_networks"
635
- t.boolean "allow_bookmark_external_url", :default => false, :null => false
636
- t.string "url", :default => "http://localhost:3000/"
651
+ t.boolean "allow_bookmark_external_url", default: false, null: false
652
+ t.string "url", default: "http://localhost:3000/"
637
653
  end
638
654
 
639
- add_index "library_groups", ["short_name"], :name => "index_library_groups_on_short_name"
655
+ add_index "library_groups", ["short_name"], name: "index_library_groups_on_short_name"
640
656
 
641
- create_table "licenses", :force => true do |t|
642
- t.string "name", :null => false
657
+ create_table "licenses", force: true do |t|
658
+ t.string "name", null: false
643
659
  t.string "display_name"
644
660
  t.text "note"
645
661
  t.integer "position"
646
- t.datetime "created_at", :null => false
647
- t.datetime "updated_at", :null => false
662
+ t.datetime "created_at"
663
+ t.datetime "updated_at"
648
664
  end
649
665
 
650
- create_table "manifestation_checkout_stat_transitions", :force => true do |t|
666
+ create_table "manifestation_checkout_stat_transitions", force: true do |t|
651
667
  t.string "to_state"
652
- t.text "metadata", :default => "{}"
668
+ t.text "metadata", default: "{}"
653
669
  t.integer "sort_key"
654
670
  t.integer "manifestation_checkout_stat_id"
655
- t.datetime "created_at", :null => false
656
- t.datetime "updated_at", :null => false
671
+ t.datetime "created_at"
672
+ t.datetime "updated_at"
657
673
  end
658
674
 
659
- add_index "manifestation_checkout_stat_transitions", ["manifestation_checkout_stat_id"], :name => "index_manifestation_checkout_stat_transitions_on_stat_id"
660
- add_index "manifestation_checkout_stat_transitions", ["sort_key", "manifestation_checkout_stat_id"], :name => "index_manifestation_checkout_stat_transitions_on_transition", :unique => true
675
+ add_index "manifestation_checkout_stat_transitions", ["manifestation_checkout_stat_id"], name: "index_manifestation_checkout_stat_transitions_on_stat_id"
676
+ add_index "manifestation_checkout_stat_transitions", ["sort_key", "manifestation_checkout_stat_id"], name: "index_manifestation_checkout_stat_transitions_on_transition", unique: true
661
677
 
662
- create_table "manifestation_checkout_stats", :force => true do |t|
678
+ create_table "manifestation_checkout_stats", force: true do |t|
663
679
  t.datetime "start_date"
664
680
  t.datetime "end_date"
665
681
  t.text "note"
666
- t.string "state"
667
- t.datetime "created_at", :null => false
668
- t.datetime "updated_at", :null => false
682
+ t.datetime "created_at"
683
+ t.datetime "updated_at"
669
684
  t.datetime "started_at"
670
685
  t.datetime "completed_at"
671
686
  t.integer "user_id"
672
687
  end
673
688
 
674
- add_index "manifestation_checkout_stats", ["state"], :name => "index_manifestation_checkout_stats_on_state"
675
- add_index "manifestation_checkout_stats", ["user_id"], :name => "index_manifestation_checkout_stats_on_user_id"
689
+ add_index "manifestation_checkout_stats", ["user_id"], name: "index_manifestation_checkout_stats_on_user_id"
676
690
 
677
- create_table "manifestation_relationship_types", :force => true do |t|
678
- t.string "name", :null => false
691
+ create_table "manifestation_relationship_types", force: true do |t|
692
+ t.string "name", null: false
679
693
  t.text "display_name"
680
694
  t.text "note"
681
695
  t.integer "position"
682
- t.datetime "created_at", :null => false
683
- t.datetime "updated_at", :null => false
696
+ t.datetime "created_at"
697
+ t.datetime "updated_at"
684
698
  end
685
699
 
686
- create_table "manifestation_relationships", :force => true do |t|
700
+ create_table "manifestation_relationships", force: true do |t|
687
701
  t.integer "parent_id"
688
702
  t.integer "child_id"
689
703
  t.integer "manifestation_relationship_type_id"
690
- t.datetime "created_at", :null => false
691
- t.datetime "updated_at", :null => false
704
+ t.datetime "created_at"
705
+ t.datetime "updated_at"
692
706
  t.integer "position"
693
707
  end
694
708
 
695
- add_index "manifestation_relationships", ["child_id"], :name => "index_manifestation_relationships_on_child_id"
696
- add_index "manifestation_relationships", ["parent_id"], :name => "index_manifestation_relationships_on_parent_id"
709
+ add_index "manifestation_relationships", ["child_id"], name: "index_manifestation_relationships_on_child_id"
710
+ add_index "manifestation_relationships", ["parent_id"], name: "index_manifestation_relationships_on_parent_id"
697
711
 
698
- create_table "manifestation_reserve_stat_transitions", :force => true do |t|
712
+ create_table "manifestation_reserve_stat_transitions", force: true do |t|
699
713
  t.string "to_state"
700
- t.text "metadata", :default => "{}"
714
+ t.text "metadata", default: "{}"
701
715
  t.integer "sort_key"
702
716
  t.integer "manifestation_reserve_stat_id"
703
- t.datetime "created_at", :null => false
704
- t.datetime "updated_at", :null => false
717
+ t.datetime "created_at"
718
+ t.datetime "updated_at"
705
719
  end
706
720
 
707
- add_index "manifestation_reserve_stat_transitions", ["manifestation_reserve_stat_id"], :name => "index_manifestation_reserve_stat_transitions_on_stat_id"
708
- add_index "manifestation_reserve_stat_transitions", ["sort_key", "manifestation_reserve_stat_id"], :name => "index_manifestation_reserve_stat_transitions_on_transition", :unique => true
721
+ add_index "manifestation_reserve_stat_transitions", ["manifestation_reserve_stat_id"], name: "index_manifestation_reserve_stat_transitions_on_stat_id"
722
+ add_index "manifestation_reserve_stat_transitions", ["sort_key", "manifestation_reserve_stat_id"], name: "index_manifestation_reserve_stat_transitions_on_transition", unique: true
709
723
 
710
- create_table "manifestation_reserve_stats", :force => true do |t|
724
+ create_table "manifestation_reserve_stats", force: true do |t|
711
725
  t.datetime "start_date"
712
726
  t.datetime "end_date"
713
727
  t.text "note"
714
- t.string "state"
715
- t.datetime "created_at", :null => false
716
- t.datetime "updated_at", :null => false
728
+ t.datetime "created_at"
729
+ t.datetime "updated_at"
717
730
  t.datetime "started_at"
718
731
  t.datetime "completed_at"
719
732
  t.integer "user_id"
720
733
  end
721
734
 
722
- add_index "manifestation_reserve_stats", ["state"], :name => "index_manifestation_reserve_stats_on_state"
723
- add_index "manifestation_reserve_stats", ["user_id"], :name => "index_manifestation_reserve_stats_on_user_id"
735
+ add_index "manifestation_reserve_stats", ["user_id"], name: "index_manifestation_reserve_stats_on_user_id"
724
736
 
725
- create_table "manifestations", :force => true do |t|
726
- t.text "original_title", :null => false
737
+ create_table "manifestations", force: true do |t|
738
+ t.text "original_title", null: false
727
739
  t.text "title_alternative"
728
740
  t.text "title_transcription"
729
741
  t.string "classification_number"
730
742
  t.string "manifestation_identifier"
731
743
  t.datetime "date_of_publication"
732
744
  t.datetime "date_copyrighted"
733
- t.datetime "created_at", :null => false
734
- t.datetime "updated_at", :null => false
745
+ t.datetime "created_at"
746
+ t.datetime "updated_at"
735
747
  t.datetime "deleted_at"
736
748
  t.string "access_address"
737
- t.integer "language_id", :default => 1, :null => false
738
- t.integer "carrier_type_id", :default => 1, :null => false
739
- t.integer "extent_id", :default => 1, :null => false
749
+ t.integer "language_id", default: 1, null: false
750
+ t.integer "carrier_type_id", default: 1, null: false
740
751
  t.integer "start_page"
741
752
  t.integer "end_page"
742
753
  t.integer "height"
@@ -749,12 +760,12 @@ ActiveRecord::Schema.define(:version => 20140823095740) do
749
760
  t.string "serial_number_string"
750
761
  t.integer "edition"
751
762
  t.text "note"
752
- t.boolean "repository_content", :default => false, :null => false
753
- t.integer "lock_version", :default => 0, :null => false
754
- t.integer "required_role_id", :default => 1, :null => false
755
- t.integer "required_score", :default => 0, :null => false
756
- t.integer "frequency_id", :default => 1, :null => false
757
- t.boolean "subscription_master", :default => false, :null => false
763
+ t.boolean "repository_content", default: false, null: false
764
+ t.integer "lock_version", default: 0, null: false
765
+ t.integer "required_role_id", default: 1, null: false
766
+ t.integer "required_score", default: 0, null: false
767
+ t.integer "frequency_id", default: 1, null: false
768
+ t.boolean "subscription_master", default: false, null: false
758
769
  t.string "attachment_file_name"
759
770
  t.string "attachment_content_type"
760
771
  t.integer "attachment_file_size"
@@ -773,7 +784,7 @@ ActiveRecord::Schema.define(:version => 20140823095740) do
773
784
  t.integer "issue_number"
774
785
  t.integer "serial_number"
775
786
  t.string "ndc"
776
- t.integer "content_type_id", :default => 1
787
+ t.integer "content_type_id", default: 1
777
788
  t.integer "year_of_publication"
778
789
  t.text "attachment_meta"
779
790
  t.integer "month_of_publication"
@@ -781,111 +792,113 @@ ActiveRecord::Schema.define(:version => 20140823095740) do
781
792
  t.string "doi"
782
793
  t.boolean "serial"
783
794
  t.text "statement_of_responsibility"
795
+ t.text "publication_place"
796
+ t.text "extent"
784
797
  t.text "dimensions"
785
798
  end
786
799
 
787
- add_index "manifestations", ["access_address"], :name => "index_manifestations_on_access_address"
788
- add_index "manifestations", ["date_of_publication"], :name => "index_manifestations_on_date_of_publication"
789
- add_index "manifestations", ["doi"], :name => "index_manifestations_on_doi"
790
- add_index "manifestations", ["manifestation_identifier"], :name => "index_manifestations_on_manifestation_identifier"
791
- add_index "manifestations", ["updated_at"], :name => "index_manifestations_on_updated_at"
800
+ add_index "manifestations", ["access_address"], name: "index_manifestations_on_access_address"
801
+ add_index "manifestations", ["date_of_publication"], name: "index_manifestations_on_date_of_publication"
802
+ add_index "manifestations", ["doi"], name: "index_manifestations_on_doi"
803
+ add_index "manifestations", ["manifestation_identifier"], name: "index_manifestations_on_manifestation_identifier"
804
+ add_index "manifestations", ["updated_at"], name: "index_manifestations_on_updated_at"
792
805
 
793
- create_table "medium_of_performances", :force => true do |t|
794
- t.string "name", :null => false
806
+ create_table "medium_of_performances", force: true do |t|
807
+ t.string "name", null: false
795
808
  t.text "display_name"
796
809
  t.text "note"
797
810
  t.integer "position"
798
- t.datetime "created_at", :null => false
799
- t.datetime "updated_at", :null => false
811
+ t.datetime "created_at"
812
+ t.datetime "updated_at"
800
813
  end
801
814
 
802
- create_table "message_request_transitions", :force => true do |t|
815
+ create_table "message_request_transitions", force: true do |t|
803
816
  t.string "to_state"
804
- t.text "metadata", :default => "{}"
817
+ t.text "metadata", default: "{}"
805
818
  t.integer "sort_key"
806
819
  t.integer "message_request_id"
807
- t.datetime "created_at", :null => false
808
- t.datetime "updated_at", :null => false
820
+ t.datetime "created_at"
821
+ t.datetime "updated_at"
809
822
  end
810
823
 
811
- add_index "message_request_transitions", ["message_request_id"], :name => "index_message_request_transitions_on_message_request_id"
812
- add_index "message_request_transitions", ["sort_key", "message_request_id"], :name => "index_message_request_transitions_on_sort_key_and_request_id", :unique => true
824
+ add_index "message_request_transitions", ["message_request_id"], name: "index_message_request_transitions_on_message_request_id"
825
+ add_index "message_request_transitions", ["sort_key", "message_request_id"], name: "index_message_request_transitions_on_sort_key_and_request_id", unique: true
813
826
 
814
- create_table "message_requests", :force => true do |t|
827
+ create_table "message_requests", force: true do |t|
815
828
  t.integer "sender_id"
816
829
  t.integer "receiver_id"
817
830
  t.integer "message_template_id"
818
831
  t.datetime "sent_at"
819
832
  t.datetime "deleted_at"
820
833
  t.text "body"
821
- t.datetime "created_at", :null => false
822
- t.datetime "updated_at", :null => false
834
+ t.datetime "created_at"
835
+ t.datetime "updated_at"
823
836
  end
824
837
 
825
- create_table "message_templates", :force => true do |t|
826
- t.string "status", :null => false
827
- t.text "title", :null => false
828
- t.text "body", :null => false
838
+ create_table "message_templates", force: true do |t|
839
+ t.string "status", null: false
840
+ t.text "title", null: false
841
+ t.text "body", null: false
829
842
  t.integer "position"
830
- t.string "locale", :default => "en"
831
- t.datetime "created_at", :null => false
832
- t.datetime "updated_at", :null => false
843
+ t.string "locale", default: "en"
844
+ t.datetime "created_at"
845
+ t.datetime "updated_at"
833
846
  end
834
847
 
835
- add_index "message_templates", ["status"], :name => "index_message_templates_on_status", :unique => true
848
+ add_index "message_templates", ["status"], name: "index_message_templates_on_status", unique: true
836
849
 
837
- create_table "message_transitions", :force => true do |t|
850
+ create_table "message_transitions", force: true do |t|
838
851
  t.string "to_state"
839
- t.text "metadata", :default => "{}"
852
+ t.text "metadata", default: "{}"
840
853
  t.integer "sort_key"
841
854
  t.integer "message_id"
842
- t.datetime "created_at", :null => false
843
- t.datetime "updated_at", :null => false
855
+ t.datetime "created_at"
856
+ t.datetime "updated_at"
844
857
  end
845
858
 
846
- add_index "message_transitions", ["message_id"], :name => "index_message_transitions_on_message_id"
847
- add_index "message_transitions", ["sort_key", "message_id"], :name => "index_message_transitions_on_sort_key_and_message_id", :unique => true
859
+ add_index "message_transitions", ["message_id"], name: "index_message_transitions_on_message_id"
860
+ add_index "message_transitions", ["sort_key", "message_id"], name: "index_message_transitions_on_sort_key_and_message_id", unique: true
848
861
 
849
- create_table "messages", :force => true do |t|
862
+ create_table "messages", force: true do |t|
850
863
  t.datetime "read_at"
851
864
  t.integer "receiver_id"
852
865
  t.integer "sender_id"
853
- t.string "subject", :null => false
866
+ t.string "subject", null: false
854
867
  t.text "body"
855
868
  t.integer "message_request_id"
856
869
  t.integer "parent_id"
857
- t.datetime "created_at", :null => false
858
- t.datetime "updated_at", :null => false
870
+ t.datetime "created_at"
871
+ t.datetime "updated_at"
859
872
  t.integer "lft"
860
873
  t.integer "rgt"
861
874
  t.integer "depth"
862
875
  end
863
876
 
864
- add_index "messages", ["message_request_id"], :name => "index_messages_on_message_request_id"
865
- add_index "messages", ["parent_id"], :name => "index_messages_on_parent_id"
866
- add_index "messages", ["receiver_id"], :name => "index_messages_on_receiver_id"
867
- add_index "messages", ["sender_id"], :name => "index_messages_on_sender_id"
877
+ add_index "messages", ["message_request_id"], name: "index_messages_on_message_request_id"
878
+ add_index "messages", ["parent_id"], name: "index_messages_on_parent_id"
879
+ add_index "messages", ["receiver_id"], name: "index_messages_on_receiver_id"
880
+ add_index "messages", ["sender_id"], name: "index_messages_on_sender_id"
868
881
 
869
- create_table "owns", :force => true do |t|
870
- t.integer "agent_id", :null => false
871
- t.integer "item_id", :null => false
882
+ create_table "owns", force: true do |t|
883
+ t.integer "agent_id", null: false
884
+ t.integer "item_id", null: false
872
885
  t.integer "position"
873
- t.datetime "created_at", :null => false
874
- t.datetime "updated_at", :null => false
886
+ t.datetime "created_at"
887
+ t.datetime "updated_at"
875
888
  end
876
889
 
877
- add_index "owns", ["agent_id"], :name => "index_owns_on_agent_id"
878
- add_index "owns", ["item_id"], :name => "index_owns_on_item_id"
890
+ add_index "owns", ["agent_id"], name: "index_owns_on_agent_id"
891
+ add_index "owns", ["item_id"], name: "index_owns_on_item_id"
879
892
 
880
- create_table "picture_files", :force => true do |t|
893
+ create_table "picture_files", force: true do |t|
881
894
  t.integer "picture_attachable_id"
882
895
  t.string "picture_attachable_type"
883
896
  t.string "content_type"
884
897
  t.text "title"
885
898
  t.string "thumbnail"
886
899
  t.integer "position"
887
- t.datetime "created_at", :null => false
888
- t.datetime "updated_at", :null => false
900
+ t.datetime "created_at"
901
+ t.datetime "updated_at"
889
902
  t.string "picture_file_name"
890
903
  t.string "picture_content_type"
891
904
  t.integer "picture_file_size"
@@ -894,30 +907,30 @@ ActiveRecord::Schema.define(:version => 20140823095740) do
894
907
  t.string "picture_fingerprint"
895
908
  end
896
909
 
897
- add_index "picture_files", ["picture_attachable_id", "picture_attachable_type"], :name => "index_picture_files_on_picture_attachable_id_and_type"
910
+ add_index "picture_files", ["picture_attachable_id", "picture_attachable_type"], name: "index_picture_files_on_picture_attachable_id_and_type"
898
911
 
899
- create_table "produce_types", :force => true do |t|
912
+ create_table "produce_types", force: true do |t|
900
913
  t.string "name"
901
914
  t.text "display_name"
902
915
  t.text "note"
903
916
  t.integer "position"
904
- t.datetime "created_at", :null => false
905
- t.datetime "updated_at", :null => false
917
+ t.datetime "created_at"
918
+ t.datetime "updated_at"
906
919
  end
907
920
 
908
- create_table "produces", :force => true do |t|
909
- t.integer "agent_id", :null => false
910
- t.integer "manifestation_id", :null => false
921
+ create_table "produces", force: true do |t|
922
+ t.integer "agent_id", null: false
923
+ t.integer "manifestation_id", null: false
911
924
  t.integer "position"
912
- t.datetime "created_at", :null => false
913
- t.datetime "updated_at", :null => false
925
+ t.datetime "created_at"
926
+ t.datetime "updated_at"
914
927
  t.integer "produce_type_id"
915
928
  end
916
929
 
917
- add_index "produces", ["agent_id"], :name => "index_produces_on_agent_id"
918
- add_index "produces", ["manifestation_id"], :name => "index_produces_on_manifestation_id"
930
+ add_index "produces", ["agent_id"], name: "index_produces_on_agent_id"
931
+ add_index "produces", ["manifestation_id"], name: "index_produces_on_manifestation_id"
919
932
 
920
- create_table "profiles", :force => true do |t|
933
+ create_table "profiles", force: true do |t|
921
934
  t.integer "user_id"
922
935
  t.integer "user_group_id"
923
936
  t.integer "library_id"
@@ -927,153 +940,153 @@ ActiveRecord::Schema.define(:version => 20140823095740) do
927
940
  t.text "note"
928
941
  t.text "keyword_list"
929
942
  t.integer "required_role_id"
930
- t.datetime "created_at", :null => false
931
- t.datetime "updated_at", :null => false
943
+ t.datetime "created_at"
944
+ t.datetime "updated_at"
932
945
  t.string "checkout_icalendar_token"
933
- t.boolean "save_checkout_history", :default => false, :null => false
946
+ t.boolean "save_checkout_history", default: false, null: false
934
947
  t.datetime "expired_at"
935
948
  t.boolean "save_search_history"
936
949
  t.boolean "share_bookmarks"
950
+ t.text "full_name_transcription"
951
+ t.datetime "date_of_birth"
937
952
  end
938
953
 
939
- add_index "profiles", ["checkout_icalendar_token"], :name => "index_profiles_on_checkout_icalendar_token", :unique => true
940
- add_index "profiles", ["user_id"], :name => "index_profiles_on_user_id"
941
- add_index "profiles", ["user_number"], :name => "index_profiles_on_user_number", :unique => true
954
+ add_index "profiles", ["checkout_icalendar_token"], name: "index_profiles_on_checkout_icalendar_token", unique: true
955
+ add_index "profiles", ["user_id"], name: "index_profiles_on_user_id"
956
+ add_index "profiles", ["user_number"], name: "index_profiles_on_user_number", unique: true
942
957
 
943
- create_table "realize_types", :force => true do |t|
958
+ create_table "realize_types", force: true do |t|
944
959
  t.string "name"
945
960
  t.text "display_name"
946
961
  t.text "note"
947
962
  t.integer "position"
948
- t.datetime "created_at", :null => false
949
- t.datetime "updated_at", :null => false
963
+ t.datetime "created_at"
964
+ t.datetime "updated_at"
950
965
  end
951
966
 
952
- create_table "realizes", :force => true do |t|
953
- t.integer "agent_id", :null => false
954
- t.integer "expression_id", :null => false
967
+ create_table "realizes", force: true do |t|
968
+ t.integer "agent_id", null: false
969
+ t.integer "expression_id", null: false
955
970
  t.integer "position"
956
- t.datetime "created_at", :null => false
957
- t.datetime "updated_at", :null => false
971
+ t.datetime "created_at"
972
+ t.datetime "updated_at"
958
973
  t.integer "realize_type_id"
959
974
  end
960
975
 
961
- add_index "realizes", ["agent_id"], :name => "index_realizes_on_agent_id"
962
- add_index "realizes", ["expression_id"], :name => "index_realizes_on_expression_id"
976
+ add_index "realizes", ["agent_id"], name: "index_realizes_on_agent_id"
977
+ add_index "realizes", ["expression_id"], name: "index_realizes_on_expression_id"
963
978
 
964
- create_table "request_status_types", :force => true do |t|
965
- t.string "name", :null => false
979
+ create_table "request_status_types", force: true do |t|
980
+ t.string "name", null: false
966
981
  t.text "display_name"
967
982
  t.text "note"
968
983
  t.integer "position"
969
- t.datetime "created_at", :null => false
970
- t.datetime "updated_at", :null => false
984
+ t.datetime "created_at"
985
+ t.datetime "updated_at"
971
986
  end
972
987
 
973
- create_table "request_types", :force => true do |t|
974
- t.string "name", :null => false
988
+ create_table "request_types", force: true do |t|
989
+ t.string "name", null: false
975
990
  t.text "display_name"
976
991
  t.text "note"
977
992
  t.integer "position"
978
- t.datetime "created_at", :null => false
979
- t.datetime "updated_at", :null => false
993
+ t.datetime "created_at"
994
+ t.datetime "updated_at"
980
995
  end
981
996
 
982
- create_table "reserve_stat_has_manifestations", :force => true do |t|
983
- t.integer "manifestation_reserve_stat_id", :null => false
984
- t.integer "manifestation_id", :null => false
997
+ create_table "reserve_stat_has_manifestations", force: true do |t|
998
+ t.integer "manifestation_reserve_stat_id", null: false
999
+ t.integer "manifestation_id", null: false
985
1000
  t.integer "reserves_count"
986
- t.datetime "created_at", :null => false
987
- t.datetime "updated_at", :null => false
1001
+ t.datetime "created_at"
1002
+ t.datetime "updated_at"
988
1003
  end
989
1004
 
990
- add_index "reserve_stat_has_manifestations", ["manifestation_id"], :name => "index_reserve_stat_has_manifestations_on_manifestation_id"
991
- add_index "reserve_stat_has_manifestations", ["manifestation_reserve_stat_id"], :name => "index_reserve_stat_has_manifestations_on_m_reserve_stat_id"
1005
+ add_index "reserve_stat_has_manifestations", ["manifestation_id"], name: "index_reserve_stat_has_manifestations_on_manifestation_id"
1006
+ add_index "reserve_stat_has_manifestations", ["manifestation_reserve_stat_id"], name: "index_reserve_stat_has_manifestations_on_m_reserve_stat_id"
992
1007
 
993
- create_table "reserve_stat_has_users", :force => true do |t|
994
- t.integer "user_reserve_stat_id", :null => false
995
- t.integer "user_id", :null => false
1008
+ create_table "reserve_stat_has_users", force: true do |t|
1009
+ t.integer "user_reserve_stat_id", null: false
1010
+ t.integer "user_id", null: false
996
1011
  t.integer "reserves_count"
997
- t.datetime "created_at", :null => false
998
- t.datetime "updated_at", :null => false
1012
+ t.datetime "created_at"
1013
+ t.datetime "updated_at"
999
1014
  end
1000
1015
 
1001
- add_index "reserve_stat_has_users", ["user_id"], :name => "index_reserve_stat_has_users_on_user_id"
1002
- add_index "reserve_stat_has_users", ["user_reserve_stat_id"], :name => "index_reserve_stat_has_users_on_user_reserve_stat_id"
1016
+ add_index "reserve_stat_has_users", ["user_id"], name: "index_reserve_stat_has_users_on_user_id"
1017
+ add_index "reserve_stat_has_users", ["user_reserve_stat_id"], name: "index_reserve_stat_has_users_on_user_reserve_stat_id"
1003
1018
 
1004
- create_table "reserve_transitions", :force => true do |t|
1019
+ create_table "reserve_transitions", force: true do |t|
1005
1020
  t.string "to_state"
1006
- t.text "metadata", :default => "{}"
1021
+ t.text "metadata", default: "{}"
1007
1022
  t.integer "sort_key"
1008
1023
  t.integer "reserve_id"
1009
- t.datetime "created_at", :null => false
1010
- t.datetime "updated_at", :null => false
1024
+ t.datetime "created_at"
1025
+ t.datetime "updated_at"
1011
1026
  end
1012
1027
 
1013
- add_index "reserve_transitions", ["reserve_id"], :name => "index_reserve_transitions_on_reserve_id"
1014
- add_index "reserve_transitions", ["sort_key", "reserve_id"], :name => "index_reserve_transitions_on_sort_key_and_reserve_id", :unique => true
1028
+ add_index "reserve_transitions", ["reserve_id"], name: "index_reserve_transitions_on_reserve_id"
1029
+ add_index "reserve_transitions", ["sort_key", "reserve_id"], name: "index_reserve_transitions_on_sort_key_and_reserve_id", unique: true
1015
1030
 
1016
- create_table "reserves", :force => true do |t|
1017
- t.integer "user_id", :null => false
1018
- t.integer "manifestation_id", :null => false
1031
+ create_table "reserves", force: true do |t|
1032
+ t.integer "user_id", null: false
1033
+ t.integer "manifestation_id", null: false
1019
1034
  t.integer "item_id"
1020
- t.integer "request_status_type_id", :null => false
1035
+ t.integer "request_status_type_id", null: false
1021
1036
  t.datetime "checked_out_at"
1022
- t.datetime "created_at", :null => false
1023
- t.datetime "updated_at", :null => false
1037
+ t.datetime "created_at"
1038
+ t.datetime "updated_at"
1024
1039
  t.datetime "canceled_at"
1025
1040
  t.datetime "expired_at"
1026
1041
  t.datetime "deleted_at"
1027
- t.string "state"
1028
- t.boolean "expiration_notice_to_patron", :default => false
1029
- t.boolean "expiration_notice_to_library", :default => false
1042
+ t.boolean "expiration_notice_to_patron", default: false
1043
+ t.boolean "expiration_notice_to_library", default: false
1030
1044
  t.datetime "retained_at"
1031
1045
  t.datetime "postponed_at"
1032
- t.integer "lock_version", :default => 0, :null => false
1046
+ t.integer "lock_version", default: 0, null: false
1033
1047
  end
1034
1048
 
1035
- add_index "reserves", ["item_id"], :name => "index_reserves_on_item_id"
1036
- add_index "reserves", ["manifestation_id"], :name => "index_reserves_on_manifestation_id"
1037
- add_index "reserves", ["request_status_type_id"], :name => "index_reserves_on_request_status_type_id"
1038
- add_index "reserves", ["state"], :name => "index_reserves_on_state"
1039
- add_index "reserves", ["user_id"], :name => "index_reserves_on_user_id"
1049
+ add_index "reserves", ["item_id"], name: "index_reserves_on_item_id"
1050
+ add_index "reserves", ["manifestation_id"], name: "index_reserves_on_manifestation_id"
1051
+ add_index "reserves", ["request_status_type_id"], name: "index_reserves_on_request_status_type_id"
1052
+ add_index "reserves", ["user_id"], name: "index_reserves_on_user_id"
1040
1053
 
1041
- create_table "resource_export_file_transitions", :force => true do |t|
1054
+ create_table "resource_export_file_transitions", force: true do |t|
1042
1055
  t.string "to_state"
1043
- t.text "metadata", :default => "{}"
1056
+ t.text "metadata", default: "{}"
1044
1057
  t.integer "sort_key"
1045
1058
  t.integer "resource_export_file_id"
1046
- t.datetime "created_at", :null => false
1047
- t.datetime "updated_at", :null => false
1059
+ t.datetime "created_at"
1060
+ t.datetime "updated_at"
1048
1061
  end
1049
1062
 
1050
- add_index "resource_export_file_transitions", ["resource_export_file_id"], :name => "index_resource_export_file_transitions_on_file_id"
1051
- 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
1063
+ add_index "resource_export_file_transitions", ["resource_export_file_id"], name: "index_resource_export_file_transitions_on_file_id"
1064
+ 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
1052
1065
 
1053
- create_table "resource_export_files", :force => true do |t|
1066
+ create_table "resource_export_files", force: true do |t|
1054
1067
  t.integer "user_id"
1055
1068
  t.string "resource_export_file_name"
1056
1069
  t.string "resource_export_content_type"
1057
1070
  t.integer "resource_export_file_size"
1058
1071
  t.datetime "resource_export_updated_at"
1059
1072
  t.datetime "executed_at"
1060
- t.datetime "created_at", :null => false
1061
- t.datetime "updated_at", :null => false
1073
+ t.datetime "created_at"
1074
+ t.datetime "updated_at"
1062
1075
  end
1063
1076
 
1064
- create_table "resource_import_file_transitions", :force => true do |t|
1077
+ create_table "resource_import_file_transitions", force: true do |t|
1065
1078
  t.string "to_state"
1066
- t.text "metadata", :default => "{}"
1079
+ t.text "metadata", default: "{}"
1067
1080
  t.integer "sort_key"
1068
1081
  t.integer "resource_import_file_id"
1069
- t.datetime "created_at", :null => false
1070
- t.datetime "updated_at", :null => false
1082
+ t.datetime "created_at"
1083
+ t.datetime "updated_at"
1071
1084
  end
1072
1085
 
1073
- add_index "resource_import_file_transitions", ["resource_import_file_id"], :name => "index_resource_import_file_transitions_on_file_id"
1074
- 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
1086
+ add_index "resource_import_file_transitions", ["resource_import_file_id"], name: "index_resource_import_file_transitions_on_file_id"
1087
+ 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
1075
1088
 
1076
- create_table "resource_import_files", :force => true do |t|
1089
+ create_table "resource_import_files", force: true do |t|
1077
1090
  t.integer "parent_id"
1078
1091
  t.string "content_type"
1079
1092
  t.integer "size"
@@ -1084,58 +1097,60 @@ ActiveRecord::Schema.define(:version => 20140823095740) do
1084
1097
  t.string "resource_import_content_type"
1085
1098
  t.integer "resource_import_file_size"
1086
1099
  t.datetime "resource_import_updated_at"
1087
- t.datetime "created_at", :null => false
1088
- t.datetime "updated_at", :null => false
1100
+ t.datetime "created_at"
1101
+ t.datetime "updated_at"
1089
1102
  t.string "edit_mode"
1090
1103
  t.string "resource_import_fingerprint"
1091
1104
  t.text "error_message"
1092
1105
  t.string "user_encoding"
1106
+ t.integer "default_shelf_id"
1093
1107
  end
1094
1108
 
1095
- add_index "resource_import_files", ["parent_id"], :name => "index_resource_import_files_on_parent_id"
1096
- add_index "resource_import_files", ["user_id"], :name => "index_resource_import_files_on_user_id"
1109
+ add_index "resource_import_files", ["parent_id"], name: "index_resource_import_files_on_parent_id"
1110
+ add_index "resource_import_files", ["user_id"], name: "index_resource_import_files_on_user_id"
1097
1111
 
1098
- create_table "resource_import_results", :force => true do |t|
1112
+ create_table "resource_import_results", force: true do |t|
1099
1113
  t.integer "resource_import_file_id"
1100
1114
  t.integer "manifestation_id"
1101
1115
  t.integer "item_id"
1102
1116
  t.text "body"
1103
- t.datetime "created_at", :null => false
1104
- t.datetime "updated_at", :null => false
1117
+ t.datetime "created_at"
1118
+ t.datetime "updated_at"
1119
+ t.text "error_message"
1105
1120
  end
1106
1121
 
1107
- add_index "resource_import_results", ["item_id"], :name => "index_resource_import_results_on_item_id"
1108
- add_index "resource_import_results", ["manifestation_id"], :name => "index_resource_import_results_on_manifestation_id"
1109
- add_index "resource_import_results", ["resource_import_file_id"], :name => "index_resource_import_results_on_resource_import_file_id"
1122
+ add_index "resource_import_results", ["item_id"], name: "index_resource_import_results_on_item_id"
1123
+ add_index "resource_import_results", ["manifestation_id"], name: "index_resource_import_results_on_manifestation_id"
1124
+ add_index "resource_import_results", ["resource_import_file_id"], name: "index_resource_import_results_on_resource_import_file_id"
1110
1125
 
1111
- create_table "roles", :force => true do |t|
1112
- t.string "name", :null => false
1126
+ create_table "roles", force: true do |t|
1127
+ t.string "name", null: false
1113
1128
  t.string "display_name"
1114
1129
  t.text "note"
1115
1130
  t.datetime "created_at"
1116
1131
  t.datetime "updated_at"
1117
- t.integer "score", :default => 0, :null => false
1132
+ t.integer "score", default: 0, null: false
1118
1133
  t.integer "position"
1119
1134
  end
1120
1135
 
1121
- create_table "search_engines", :force => true do |t|
1122
- t.string "name", :null => false
1136
+ create_table "search_engines", force: true do |t|
1137
+ t.string "name", null: false
1123
1138
  t.text "display_name"
1124
- t.string "url", :null => false
1125
- t.text "base_url", :null => false
1126
- t.text "http_method", :null => false
1127
- t.text "query_param", :null => false
1139
+ t.string "url", null: false
1140
+ t.text "base_url", null: false
1141
+ t.text "http_method", null: false
1142
+ t.text "query_param", null: false
1128
1143
  t.text "additional_param"
1129
1144
  t.text "note"
1130
1145
  t.integer "position"
1131
- t.datetime "created_at", :null => false
1132
- t.datetime "updated_at", :null => false
1146
+ t.datetime "created_at"
1147
+ t.datetime "updated_at"
1133
1148
  end
1134
1149
 
1135
- create_table "search_histories", :force => true do |t|
1150
+ create_table "search_histories", force: true do |t|
1136
1151
  t.integer "user_id"
1137
- t.string "operation", :default => "searchRetrieve"
1138
- t.float "sru_version", :default => 1.2
1152
+ t.string "operation", default: "searchRetrieve"
1153
+ t.float "sru_version", default: 1.2
1139
1154
  t.string "query"
1140
1155
  t.integer "start_record"
1141
1156
  t.integer "maximum_records"
@@ -1144,7 +1159,7 @@ ActiveRecord::Schema.define(:version => 20140823095740) do
1144
1159
  t.integer "result_set_ttl"
1145
1160
  t.string "stylesheet"
1146
1161
  t.string "extra_request_data"
1147
- t.integer "number_of_records", :default => 0
1162
+ t.integer "number_of_records", default: 0
1148
1163
  t.string "result_set_id"
1149
1164
  t.integer "result_set_idle_time"
1150
1165
  t.text "records"
@@ -1152,55 +1167,55 @@ ActiveRecord::Schema.define(:version => 20140823095740) do
1152
1167
  t.text "diagnostics"
1153
1168
  t.text "extra_response_data"
1154
1169
  t.text "echoed_search_retrieve_request"
1155
- t.datetime "created_at", :null => false
1156
- t.datetime "updated_at", :null => false
1170
+ t.datetime "created_at"
1171
+ t.datetime "updated_at"
1157
1172
  end
1158
1173
 
1159
- add_index "search_histories", ["user_id"], :name => "index_search_histories_on_user_id"
1174
+ add_index "search_histories", ["user_id"], name: "index_search_histories_on_user_id"
1160
1175
 
1161
- create_table "series_has_manifestations", :force => true do |t|
1176
+ create_table "series_has_manifestations", force: true do |t|
1162
1177
  t.integer "series_statement_id"
1163
1178
  t.integer "manifestation_id"
1164
1179
  t.integer "position"
1165
- t.datetime "created_at", :null => false
1166
- t.datetime "updated_at", :null => false
1180
+ t.datetime "created_at"
1181
+ t.datetime "updated_at"
1167
1182
  end
1168
1183
 
1169
- add_index "series_has_manifestations", ["manifestation_id"], :name => "index_series_has_manifestations_on_manifestation_id"
1170
- add_index "series_has_manifestations", ["series_statement_id"], :name => "index_series_has_manifestations_on_series_statement_id"
1184
+ add_index "series_has_manifestations", ["manifestation_id"], name: "index_series_has_manifestations_on_manifestation_id"
1185
+ add_index "series_has_manifestations", ["series_statement_id"], name: "index_series_has_manifestations_on_series_statement_id"
1171
1186
 
1172
- create_table "series_statement_merge_lists", :force => true do |t|
1187
+ create_table "series_statement_merge_lists", force: true do |t|
1173
1188
  t.string "title"
1174
- t.datetime "created_at", :null => false
1175
- t.datetime "updated_at", :null => false
1189
+ t.datetime "created_at"
1190
+ t.datetime "updated_at"
1176
1191
  end
1177
1192
 
1178
- create_table "series_statement_merges", :force => true do |t|
1179
- t.integer "series_statement_id", :null => false
1180
- t.integer "series_statement_merge_list_id", :null => false
1181
- t.datetime "created_at", :null => false
1182
- t.datetime "updated_at", :null => false
1193
+ create_table "series_statement_merges", force: true do |t|
1194
+ t.integer "series_statement_id", null: false
1195
+ t.integer "series_statement_merge_list_id", null: false
1196
+ t.datetime "created_at"
1197
+ t.datetime "updated_at"
1183
1198
  end
1184
1199
 
1185
- add_index "series_statement_merges", ["series_statement_id"], :name => "index_series_statement_merges_on_series_statement_id"
1186
- add_index "series_statement_merges", ["series_statement_merge_list_id"], :name => "index_series_statement_merges_on_series_statement_merge_list_id"
1200
+ add_index "series_statement_merges", ["series_statement_id"], name: "index_series_statement_merges_on_series_statement_id"
1201
+ add_index "series_statement_merges", ["series_statement_merge_list_id"], name: "index_series_statement_merges_on_list_id"
1187
1202
 
1188
- create_table "series_statement_relationships", :force => true do |t|
1203
+ create_table "series_statement_relationships", force: true do |t|
1189
1204
  t.integer "parent_id"
1190
1205
  t.integer "child_id"
1191
1206
  t.integer "position"
1192
- t.datetime "created_at", :null => false
1193
- t.datetime "updated_at", :null => false
1207
+ t.datetime "created_at"
1208
+ t.datetime "updated_at"
1194
1209
  end
1195
1210
 
1196
- create_table "series_statements", :force => true do |t|
1211
+ create_table "series_statements", force: true do |t|
1197
1212
  t.text "original_title"
1198
1213
  t.text "numbering"
1199
1214
  t.text "title_subseries"
1200
1215
  t.text "numbering_subseries"
1201
1216
  t.integer "position"
1202
- t.datetime "created_at", :null => false
1203
- t.datetime "updated_at", :null => false
1217
+ t.datetime "created_at"
1218
+ t.datetime "updated_at"
1204
1219
  t.text "title_transcription"
1205
1220
  t.text "title_alternative"
1206
1221
  t.string "series_statement_identifier"
@@ -1216,52 +1231,52 @@ ActiveRecord::Schema.define(:version => 20140823095740) do
1216
1231
  t.integer "root_manifestation_id"
1217
1232
  end
1218
1233
 
1219
- add_index "series_statements", ["manifestation_id"], :name => "index_series_statements_on_manifestation_id"
1220
- add_index "series_statements", ["root_manifestation_id"], :name => "index_series_statements_on_root_manifestation_id"
1221
- add_index "series_statements", ["series_statement_identifier"], :name => "index_series_statements_on_series_statement_identifier"
1234
+ add_index "series_statements", ["manifestation_id"], name: "index_series_statements_on_manifestation_id"
1235
+ add_index "series_statements", ["root_manifestation_id"], name: "index_series_statements_on_root_manifestation_id"
1236
+ add_index "series_statements", ["series_statement_identifier"], name: "index_series_statements_on_series_statement_identifier"
1222
1237
 
1223
- create_table "shelves", :force => true do |t|
1224
- t.string "name", :null => false
1238
+ create_table "shelves", force: true do |t|
1239
+ t.string "name", null: false
1225
1240
  t.text "display_name"
1226
1241
  t.text "note"
1227
- t.integer "library_id", :default => 1, :null => false
1228
- t.integer "items_count", :default => 0, :null => false
1242
+ t.integer "library_id", default: 1, null: false
1243
+ t.integer "items_count", default: 0, null: false
1229
1244
  t.integer "position"
1230
- t.datetime "created_at", :null => false
1231
- t.datetime "updated_at", :null => false
1245
+ t.datetime "created_at"
1246
+ t.datetime "updated_at"
1232
1247
  t.datetime "deleted_at"
1233
- t.boolean "closed", :default => false, :null => false
1248
+ t.boolean "closed", default: false, null: false
1234
1249
  end
1235
1250
 
1236
- add_index "shelves", ["library_id"], :name => "index_shelves_on_library_id"
1251
+ add_index "shelves", ["library_id"], name: "index_shelves_on_library_id"
1237
1252
 
1238
- create_table "subscribes", :force => true do |t|
1239
- t.integer "subscription_id", :null => false
1240
- t.integer "work_id", :null => false
1241
- t.datetime "start_at", :null => false
1242
- t.datetime "end_at", :null => false
1243
- t.datetime "created_at", :null => false
1244
- t.datetime "updated_at", :null => false
1253
+ create_table "subscribes", force: true do |t|
1254
+ t.integer "subscription_id", null: false
1255
+ t.integer "work_id", null: false
1256
+ t.datetime "start_at", null: false
1257
+ t.datetime "end_at", null: false
1258
+ t.datetime "created_at"
1259
+ t.datetime "updated_at"
1245
1260
  end
1246
1261
 
1247
- add_index "subscribes", ["subscription_id"], :name => "index_subscribes_on_subscription_id"
1248
- add_index "subscribes", ["work_id"], :name => "index_subscribes_on_work_id"
1262
+ add_index "subscribes", ["subscription_id"], name: "index_subscribes_on_subscription_id"
1263
+ add_index "subscribes", ["work_id"], name: "index_subscribes_on_work_id"
1249
1264
 
1250
- create_table "subscriptions", :force => true do |t|
1251
- t.text "title", :null => false
1265
+ create_table "subscriptions", force: true do |t|
1266
+ t.text "title", null: false
1252
1267
  t.text "note"
1253
1268
  t.integer "user_id"
1254
1269
  t.integer "order_list_id"
1255
1270
  t.datetime "deleted_at"
1256
- t.integer "subscribes_count", :default => 0, :null => false
1257
- t.datetime "created_at", :null => false
1258
- t.datetime "updated_at", :null => false
1271
+ t.integer "subscribes_count", default: 0, null: false
1272
+ t.datetime "created_at"
1273
+ t.datetime "updated_at"
1259
1274
  end
1260
1275
 
1261
- add_index "subscriptions", ["order_list_id"], :name => "index_subscriptions_on_order_list_id"
1262
- add_index "subscriptions", ["user_id"], :name => "index_subscriptions_on_user_id"
1276
+ add_index "subscriptions", ["order_list_id"], name: "index_subscriptions_on_order_list_id"
1277
+ add_index "subscriptions", ["user_id"], name: "index_subscriptions_on_user_id"
1263
1278
 
1264
- create_table "taggings", :force => true do |t|
1279
+ create_table "taggings", force: true do |t|
1265
1280
  t.integer "tag_id"
1266
1281
  t.integer "taggable_id"
1267
1282
  t.string "taggable_type"
@@ -1271,134 +1286,132 @@ ActiveRecord::Schema.define(:version => 20140823095740) do
1271
1286
  t.datetime "created_at"
1272
1287
  end
1273
1288
 
1274
- add_index "taggings", ["tag_id"], :name => "index_taggings_on_tag_id"
1275
- add_index "taggings", ["taggable_id", "taggable_type", "context"], :name => "index_taggings_on_taggable_id_and_taggable_type_and_context"
1289
+ add_index "taggings", ["tag_id"], name: "index_taggings_on_tag_id"
1290
+ add_index "taggings", ["taggable_id", "taggable_type", "context"], name: "index_taggings_on_taggable_id_and_taggable_type_and_context"
1276
1291
 
1277
- create_table "tags", :force => true do |t|
1292
+ create_table "tags", force: true do |t|
1278
1293
  t.string "name"
1279
1294
  t.string "name_transcription"
1280
- t.datetime "created_at", :null => false
1281
- t.datetime "updated_at", :null => false
1282
- t.integer "taggings_count", :default => 0
1295
+ t.datetime "created_at"
1296
+ t.datetime "updated_at"
1297
+ t.integer "taggings_count", default: 0
1283
1298
  end
1284
1299
 
1285
- create_table "use_restrictions", :force => true do |t|
1286
- t.string "name", :null => false
1300
+ create_table "use_restrictions", force: true do |t|
1301
+ t.string "name", null: false
1287
1302
  t.text "display_name"
1288
1303
  t.text "note"
1289
1304
  t.integer "position"
1290
- t.datetime "created_at", :null => false
1291
- t.datetime "updated_at", :null => false
1305
+ t.datetime "created_at"
1306
+ t.datetime "updated_at"
1292
1307
  end
1293
1308
 
1294
- create_table "user_checkout_stat_transitions", :force => true do |t|
1309
+ create_table "user_checkout_stat_transitions", force: true do |t|
1295
1310
  t.string "to_state"
1296
- t.text "metadata", :default => "{}"
1311
+ t.text "metadata", default: "{}"
1297
1312
  t.integer "sort_key"
1298
1313
  t.integer "user_checkout_stat_id"
1299
- t.datetime "created_at", :null => false
1300
- t.datetime "updated_at", :null => false
1314
+ t.datetime "created_at"
1315
+ t.datetime "updated_at"
1301
1316
  end
1302
1317
 
1303
- 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
1304
- add_index "user_checkout_stat_transitions", ["user_checkout_stat_id"], :name => "index_user_checkout_stat_transitions_on_user_checkout_stat_id"
1318
+ 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
1319
+ add_index "user_checkout_stat_transitions", ["user_checkout_stat_id"], name: "index_user_checkout_stat_transitions_on_user_checkout_stat_id"
1305
1320
 
1306
- create_table "user_checkout_stats", :force => true do |t|
1321
+ create_table "user_checkout_stats", force: true do |t|
1307
1322
  t.datetime "start_date"
1308
1323
  t.datetime "end_date"
1309
1324
  t.text "note"
1310
- t.string "state"
1311
- t.datetime "created_at", :null => false
1312
- t.datetime "updated_at", :null => false
1325
+ t.datetime "created_at"
1326
+ t.datetime "updated_at"
1313
1327
  t.datetime "started_at"
1314
1328
  t.datetime "completed_at"
1315
1329
  t.integer "user_id"
1316
1330
  end
1317
1331
 
1318
- add_index "user_checkout_stats", ["state"], :name => "index_user_checkout_stats_on_state"
1319
- add_index "user_checkout_stats", ["user_id"], :name => "index_user_checkout_stats_on_user_id"
1332
+ add_index "user_checkout_stats", ["user_id"], name: "index_user_checkout_stats_on_user_id"
1320
1333
 
1321
- create_table "user_export_file_transitions", :force => true do |t|
1334
+ create_table "user_export_file_transitions", force: true do |t|
1322
1335
  t.string "to_state"
1323
- t.text "metadata", :default => "{}"
1336
+ t.text "metadata", default: "{}"
1324
1337
  t.integer "sort_key"
1325
1338
  t.integer "user_export_file_id"
1326
- t.datetime "created_at", :null => false
1327
- t.datetime "updated_at", :null => false
1339
+ t.datetime "created_at"
1340
+ t.datetime "updated_at"
1328
1341
  end
1329
1342
 
1330
- 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
1331
- add_index "user_export_file_transitions", ["user_export_file_id"], :name => "index_user_export_file_transitions_on_file_id"
1343
+ 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
1344
+ add_index "user_export_file_transitions", ["user_export_file_id"], name: "index_user_export_file_transitions_on_file_id"
1332
1345
 
1333
- create_table "user_export_files", :force => true do |t|
1346
+ create_table "user_export_files", force: true do |t|
1334
1347
  t.integer "user_id"
1335
1348
  t.string "user_export_file_name"
1336
1349
  t.string "user_export_content_type"
1337
1350
  t.integer "user_export_file_size"
1338
1351
  t.datetime "user_export_updated_at"
1339
1352
  t.datetime "executed_at"
1340
- t.datetime "created_at", :null => false
1341
- t.datetime "updated_at", :null => false
1342
- end
1343
-
1344
- create_table "user_group_has_checkout_types", :force => true do |t|
1345
- t.integer "user_group_id", :null => false
1346
- t.integer "checkout_type_id", :null => false
1347
- t.integer "checkout_limit", :default => 0, :null => false
1348
- t.integer "checkout_period", :default => 0, :null => false
1349
- t.integer "checkout_renewal_limit", :default => 0, :null => false
1350
- t.integer "reservation_limit", :default => 0, :null => false
1351
- t.integer "reservation_expired_period", :default => 7, :null => false
1352
- t.boolean "set_due_date_before_closing_day", :default => false, :null => false
1353
+ t.datetime "created_at"
1354
+ t.datetime "updated_at"
1355
+ end
1356
+
1357
+ create_table "user_group_has_checkout_types", force: true do |t|
1358
+ t.integer "user_group_id", null: false
1359
+ t.integer "checkout_type_id", null: false
1360
+ t.integer "checkout_limit", default: 0, null: false
1361
+ t.integer "checkout_period", default: 0, null: false
1362
+ t.integer "checkout_renewal_limit", default: 0, null: false
1363
+ t.integer "reservation_limit", default: 0, null: false
1364
+ t.integer "reservation_expired_period", default: 7, null: false
1365
+ t.boolean "set_due_date_before_closing_day", default: false, null: false
1353
1366
  t.datetime "fixed_due_date"
1354
1367
  t.text "note"
1355
1368
  t.integer "position"
1356
- t.datetime "created_at", :null => false
1357
- t.datetime "updated_at", :null => false
1369
+ t.datetime "created_at"
1370
+ t.datetime "updated_at"
1358
1371
  t.integer "current_checkout_count"
1359
1372
  end
1360
1373
 
1361
- add_index "user_group_has_checkout_types", ["checkout_type_id"], :name => "index_user_group_has_checkout_types_on_checkout_type_id"
1362
- add_index "user_group_has_checkout_types", ["user_group_id"], :name => "index_user_group_has_checkout_types_on_user_group_id"
1374
+ add_index "user_group_has_checkout_types", ["checkout_type_id"], name: "index_user_group_has_checkout_types_on_checkout_type_id"
1375
+ add_index "user_group_has_checkout_types", ["user_group_id"], name: "index_user_group_has_checkout_types_on_user_group_id"
1363
1376
 
1364
- create_table "user_groups", :force => true do |t|
1377
+ create_table "user_groups", force: true do |t|
1365
1378
  t.string "name"
1366
1379
  t.text "display_name"
1367
1380
  t.text "note"
1368
1381
  t.integer "position"
1369
- t.datetime "created_at", :null => false
1370
- t.datetime "updated_at", :null => false
1382
+ t.datetime "created_at"
1383
+ t.datetime "updated_at"
1371
1384
  t.datetime "deleted_at"
1372
- t.integer "valid_period_for_new_user", :default => 0, :null => false
1385
+ t.integer "valid_period_for_new_user", default: 0, null: false
1373
1386
  t.datetime "expired_at"
1374
- t.integer "number_of_day_to_notify_overdue", :default => 1, :null => false
1375
- t.integer "number_of_day_to_notify_due_date", :default => 7, :null => false
1376
- t.integer "number_of_time_to_notify_overdue", :default => 3, :null => false
1387
+ t.integer "number_of_day_to_notify_overdue", default: 1, null: false
1388
+ t.integer "number_of_day_to_notify_due_date", default: 7, null: false
1389
+ t.integer "number_of_time_to_notify_overdue", default: 3, null: false
1377
1390
  end
1378
1391
 
1379
- create_table "user_has_roles", :force => true do |t|
1392
+ create_table "user_has_roles", force: true do |t|
1380
1393
  t.integer "user_id"
1381
1394
  t.integer "role_id"
1382
- t.datetime "created_at", :null => false
1383
- t.datetime "updated_at", :null => false
1395
+ t.datetime "created_at"
1396
+ t.datetime "updated_at"
1384
1397
  end
1385
1398
 
1386
- add_index "user_has_roles", ["role_id"], :name => "index_user_has_roles_on_role_id"
1387
- add_index "user_has_roles", ["user_id"], :name => "index_user_has_roles_on_user_id"
1399
+ add_index "user_has_roles", ["role_id"], name: "index_user_has_roles_on_role_id"
1400
+ add_index "user_has_roles", ["user_id"], name: "index_user_has_roles_on_user_id"
1388
1401
 
1389
- create_table "user_import_file_transitions", :force => true do |t|
1402
+ create_table "user_import_file_transitions", force: true do |t|
1390
1403
  t.string "to_state"
1391
- t.text "metadata", :default => "{}"
1404
+ t.text "metadata", default: "{}"
1392
1405
  t.integer "sort_key"
1393
1406
  t.integer "user_import_file_id"
1394
- t.datetime "created_at", :null => false
1395
- t.datetime "updated_at", :null => false
1407
+ t.datetime "created_at"
1408
+ t.datetime "updated_at"
1396
1409
  end
1397
1410
 
1398
- 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
1399
- add_index "user_import_file_transitions", ["user_import_file_id"], :name => "index_user_import_file_transitions_on_user_import_file_id"
1411
+ 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
1412
+ add_index "user_import_file_transitions", ["user_import_file_id"], name: "index_user_import_file_transitions_on_user_import_file_id"
1400
1413
 
1401
- create_table "user_import_files", :force => true do |t|
1414
+ create_table "user_import_files", force: true do |t|
1402
1415
  t.integer "user_id"
1403
1416
  t.text "note"
1404
1417
  t.datetime "executed_at"
@@ -1409,89 +1422,87 @@ ActiveRecord::Schema.define(:version => 20140823095740) do
1409
1422
  t.string "user_import_fingerprint"
1410
1423
  t.string "edit_mode"
1411
1424
  t.text "error_message"
1412
- t.datetime "created_at", :null => false
1413
- t.datetime "updated_at", :null => false
1425
+ t.datetime "created_at"
1426
+ t.datetime "updated_at"
1414
1427
  t.string "user_encoding"
1415
1428
  t.integer "default_library_id"
1416
1429
  t.integer "default_user_group_id"
1417
1430
  end
1418
1431
 
1419
- create_table "user_import_results", :force => true do |t|
1432
+ create_table "user_import_results", force: true do |t|
1420
1433
  t.integer "user_import_file_id"
1421
1434
  t.integer "user_id"
1422
1435
  t.text "body"
1423
- t.datetime "created_at", :null => false
1424
- t.datetime "updated_at", :null => false
1436
+ t.datetime "created_at"
1437
+ t.datetime "updated_at"
1425
1438
  end
1426
1439
 
1427
- create_table "user_reserve_stat_transitions", :force => true do |t|
1440
+ create_table "user_reserve_stat_transitions", force: true do |t|
1428
1441
  t.string "to_state"
1429
- t.text "metadata", :default => "{}"
1442
+ t.text "metadata", default: "{}"
1430
1443
  t.integer "sort_key"
1431
1444
  t.integer "user_reserve_stat_id"
1432
- t.datetime "created_at", :null => false
1433
- t.datetime "updated_at", :null => false
1445
+ t.datetime "created_at"
1446
+ t.datetime "updated_at"
1434
1447
  end
1435
1448
 
1436
- 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
1437
- add_index "user_reserve_stat_transitions", ["user_reserve_stat_id"], :name => "index_user_reserve_stat_transitions_on_user_reserve_stat_id"
1449
+ 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
1450
+ add_index "user_reserve_stat_transitions", ["user_reserve_stat_id"], name: "index_user_reserve_stat_transitions_on_user_reserve_stat_id"
1438
1451
 
1439
- create_table "user_reserve_stats", :force => true do |t|
1452
+ create_table "user_reserve_stats", force: true do |t|
1440
1453
  t.datetime "start_date"
1441
1454
  t.datetime "end_date"
1442
1455
  t.text "note"
1443
- t.string "state"
1444
- t.datetime "created_at", :null => false
1445
- t.datetime "updated_at", :null => false
1456
+ t.datetime "created_at"
1457
+ t.datetime "updated_at"
1446
1458
  t.datetime "started_at"
1447
1459
  t.datetime "completed_at"
1448
1460
  t.integer "user_id"
1449
1461
  end
1450
1462
 
1451
- add_index "user_reserve_stats", ["state"], :name => "index_user_reserve_stats_on_state"
1452
- add_index "user_reserve_stats", ["user_id"], :name => "index_user_reserve_stats_on_user_id"
1463
+ add_index "user_reserve_stats", ["user_id"], name: "index_user_reserve_stats_on_user_id"
1453
1464
 
1454
- create_table "users", :force => true do |t|
1455
- t.string "email", :default => "", :null => false
1456
- t.string "encrypted_password", :default => "", :null => false
1465
+ create_table "users", force: true do |t|
1466
+ t.string "email", default: "", null: false
1467
+ t.string "encrypted_password", default: "", null: false
1457
1468
  t.string "reset_password_token"
1458
1469
  t.datetime "reset_password_sent_at"
1459
1470
  t.datetime "remember_created_at"
1460
- t.integer "sign_in_count", :default => 0
1471
+ t.integer "sign_in_count", default: 0
1461
1472
  t.datetime "current_sign_in_at"
1462
1473
  t.datetime "last_sign_in_at"
1463
1474
  t.string "current_sign_in_ip"
1464
1475
  t.string "last_sign_in_ip"
1465
- t.datetime "created_at", :null => false
1466
- t.datetime "updated_at", :null => false
1467
- t.boolean "save_checkout_history", :default => false, :null => false
1476
+ t.datetime "created_at"
1477
+ t.datetime "updated_at"
1478
+ t.boolean "save_checkout_history", default: false, null: false
1468
1479
  t.string "checkout_icalendar_token"
1469
1480
  t.boolean "share_bookmarks"
1470
- t.boolean "save_search_history", :default => false, :null => false
1481
+ t.boolean "save_search_history", default: false, null: false
1471
1482
  t.string "username"
1472
1483
  t.datetime "deleted_at"
1473
1484
  t.datetime "expired_at"
1474
- t.integer "failed_attempts", :default => 0
1485
+ t.integer "failed_attempts", default: 0
1475
1486
  t.string "unlock_token"
1476
1487
  t.datetime "locked_at"
1477
1488
  t.datetime "confirmed_at"
1478
1489
  end
1479
1490
 
1480
- add_index "users", ["checkout_icalendar_token"], :name => "index_users_on_checkout_icalendar_token", :unique => true
1481
- add_index "users", ["email"], :name => "index_users_on_email"
1482
- add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true
1483
- add_index "users", ["unlock_token"], :name => "index_users_on_unlock_token", :unique => true
1484
- add_index "users", ["username"], :name => "index_users_on_username", :unique => true
1491
+ add_index "users", ["checkout_icalendar_token"], name: "index_users_on_checkout_icalendar_token", unique: true
1492
+ add_index "users", ["email"], name: "index_users_on_email"
1493
+ add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
1494
+ add_index "users", ["unlock_token"], name: "index_users_on_unlock_token", unique: true
1495
+ add_index "users", ["username"], name: "index_users_on_username", unique: true
1485
1496
 
1486
- create_table "versions", :force => true do |t|
1487
- t.string "item_type", :null => false
1488
- t.integer "item_id", :null => false
1489
- t.string "event", :null => false
1497
+ create_table "versions", force: true do |t|
1498
+ t.string "item_type", null: false
1499
+ t.integer "item_id", null: false
1500
+ t.string "event", null: false
1490
1501
  t.string "whodunnit"
1491
1502
  t.text "object"
1492
1503
  t.datetime "created_at"
1493
1504
  end
1494
1505
 
1495
- add_index "versions", ["item_type", "item_id"], :name => "index_versions_on_item_type_and_item_id"
1506
+ add_index "versions", ["item_type", "item_id"], name: "index_versions_on_item_type_and_item_id"
1496
1507
 
1497
1508
  end