enju_flower 0.1.0.pre16 → 0.1.0.pre17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (201) hide show
  1. checksums.yaml +4 -4
  2. data/app/helpers/manifestations_helper.rb +17 -17
  3. data/app/views/manifestations/_attachment_file.html.erb +1 -1
  4. data/app/views/manifestations/_carrier_type_facet.html.erb +1 -1
  5. data/app/views/manifestations/_classification_facet.html.erb +2 -2
  6. data/app/views/manifestations/_holding.html.erb +1 -1
  7. data/app/views/manifestations/_index_form.html.erb +2 -2
  8. data/app/views/manifestations/_index_form_contributor.html.erb +2 -2
  9. data/app/views/manifestations/_index_form_creator.html.erb +2 -2
  10. data/app/views/manifestations/_index_form_item.html.erb +2 -2
  11. data/app/views/manifestations/_index_form_manifestation.html.erb +2 -2
  12. data/app/views/manifestations/_index_form_parent.html.erb +9 -3
  13. data/app/views/manifestations/_index_form_publisher.html.erb +2 -2
  14. data/app/views/manifestations/_index_form_series_statement.html.erb +3 -3
  15. data/app/views/manifestations/_language_facet.html.erb +2 -2
  16. data/app/views/manifestations/_library_facet.html.erb +1 -1
  17. data/app/views/manifestations/_list.html.erb +2 -2
  18. data/app/views/manifestations/_manifestation.html.erb +53 -51
  19. data/app/views/manifestations/_manifestation_list.html.erb +2 -2
  20. data/app/views/manifestations/_paginate_id_link.html.erb +2 -2
  21. data/app/views/manifestations/_pickup.html.erb +5 -5
  22. data/app/views/manifestations/_pub_year_facet.html.erb +1 -1
  23. data/app/views/manifestations/_question_list.html.erb +1 -1
  24. data/app/views/manifestations/_reservable_facet.html.erb +2 -2
  25. data/app/views/manifestations/_search_engine.html.erb +1 -1
  26. data/app/views/manifestations/_show_creators.html.erb +2 -2
  27. data/app/views/manifestations/_show_creators.mobile.erb +2 -2
  28. data/app/views/manifestations/_show_detail_librarian.html.erb +14 -10
  29. data/app/views/manifestations/_show_detail_user.html.erb +14 -10
  30. data/app/views/manifestations/_show_holding.html.erb +12 -10
  31. data/app/views/manifestations/_show_holding.mobile.erb +1 -1
  32. data/app/views/manifestations/_show_index.html.erb +7 -5
  33. data/app/views/manifestations/_show_index.mobile.erb +3 -3
  34. data/app/views/manifestations/_show_reservation.html.erb +5 -5
  35. data/app/views/manifestations/_show_series_index.html.erb +6 -3
  36. data/app/views/manifestations/_submenu_parent.html.erb +1 -1
  37. data/app/views/manifestations/_tab_list.html.erb +3 -3
  38. data/app/views/manifestations/_tab_menu.html.erb +1 -1
  39. data/app/views/manifestations/_title.html.erb +9 -6
  40. data/app/views/manifestations/_title.mobile.erb +6 -6
  41. data/app/views/manifestations/index.atom.builder +3 -3
  42. data/app/views/manifestations/index.html.erb +15 -14
  43. data/app/views/manifestations/index.mobile.erb +3 -3
  44. data/app/views/manifestations/index.mods.builder +1 -1
  45. data/app/views/manifestations/index.opds.builder +5 -5
  46. data/app/views/manifestations/index.rdf.builder +4 -4
  47. data/app/views/manifestations/index.rss.builder +6 -6
  48. data/app/views/manifestations/index.sru.builder +1 -1
  49. data/app/views/manifestations/show.html.erb +14 -14
  50. data/app/views/manifestations/show.mobile.erb +3 -3
  51. data/app/views/manifestations/show.mods.builder +1 -1
  52. data/app/views/manifestations/show.rdf.builder +1 -1
  53. data/app/views/page/_footer.html.erb +3 -2
  54. data/lib/enju_flower/version.rb +1 -1
  55. data/spec/controllers/manifestations_controller_spec.rb +22 -22
  56. data/spec/dummy/db/development.sqlite3 +0 -0
  57. data/spec/dummy/db/migrate/001_create_agents.rb +0 -1
  58. data/spec/dummy/db/migrate/{20111201155513_add_devise_to_users.rb → 002_devise_create_users.rb} +18 -16
  59. data/spec/dummy/db/migrate/005_create_manifestations.rb +4 -16
  60. data/spec/dummy/db/migrate/006_create_items.rb +0 -3
  61. data/spec/dummy/db/migrate/035_create_reserves.rb +0 -1
  62. data/spec/dummy/db/migrate/041_create_roles.rb +13 -0
  63. data/spec/dummy/db/migrate/077_create_user_groups.rb +3 -7
  64. data/spec/dummy/db/migrate/080_create_library_groups.rb +0 -1
  65. data/spec/dummy/db/migrate/20081006090811_create_subscriptions.rb +17 -0
  66. data/spec/dummy/db/migrate/20081006093246_create_subscribes.rb +14 -0
  67. data/spec/dummy/db/migrate/20081028083142_create_agent_import_files.rb +0 -2
  68. data/spec/dummy/db/migrate/20081028083208_create_resource_import_files.rb +1 -3
  69. data/spec/dummy/db/migrate/20081212080038_create_manifestation_checkout_stats.rb +0 -1
  70. data/spec/dummy/db/migrate/20081215094302_create_user_checkout_stats.rb +0 -1
  71. data/spec/dummy/db/migrate/20081216190724_create_manifestation_reserve_stats.rb +0 -1
  72. data/spec/dummy/db/migrate/20081220023628_create_user_reserve_stats.rb +0 -1
  73. data/spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb +0 -4
  74. data/spec/dummy/db/migrate/20100129142347_create_import_requests.rb +0 -1
  75. data/spec/dummy/db/migrate/20100314190054_add_opening_hour_to_library.rb +9 -0
  76. data/spec/dummy/db/migrate/{20111201163718_create_user_has_roles.rb → 20100606065209_create_user_has_roles.rb} +2 -0
  77. data/spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb +0 -2
  78. data/spec/dummy/db/migrate/20110627034940_create_series_statement_merge_lists.rb +9 -0
  79. data/spec/dummy/db/migrate/20110627035057_create_series_statement_merges.rb +12 -0
  80. data/spec/dummy/db/migrate/20120319173203_create_accepts.rb +14 -0
  81. data/spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb +1 -11
  82. data/spec/dummy/db/migrate/20130412083556_add_latitude_and_longitude_to_library.rb +6 -0
  83. data/spec/dummy/db/migrate/20140110122216_create_user_import_files.rb +18 -0
  84. data/spec/dummy/db/migrate/20140110131010_create_user_import_results.rb +11 -0
  85. data/spec/dummy/db/migrate/20140122054321_create_profiles.rb +20 -0
  86. data/spec/dummy/db/migrate/20140519170214_create_resource_import_file_transitions.rb +14 -0
  87. data/spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb +14 -0
  88. data/spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb +14 -0
  89. data/spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb +14 -0
  90. data/spec/dummy/db/migrate/20140524135607_create_bookmark_stat_transitions.rb +14 -0
  91. data/spec/dummy/db/migrate/20140524142813_add_taggings_count_to_tag.rb +5 -0
  92. data/spec/dummy/db/migrate/20140610123439_drop_email_unique_constraint_enju_leaf_rc10.rb +11 -0
  93. data/spec/dummy/db/migrate/20140614065404_create_resource_export_files.rb +11 -0
  94. data/spec/dummy/db/migrate/20140614141500_create_resource_export_file_transitions.rb +14 -0
  95. data/spec/dummy/db/migrate/20140628072217_add_user_encoding_to_user_import_file.rb +5 -0
  96. data/spec/dummy/db/migrate/20140628073524_add_user_encoding_to_agent_import_file.rb +5 -0
  97. data/spec/dummy/db/migrate/20140628073535_add_user_encoding_to_resource_import_file.rb +5 -0
  98. data/spec/dummy/db/migrate/20140709113413_create_user_export_files.rb +11 -0
  99. data/spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb +14 -0
  100. data/spec/dummy/db/migrate/20140720140916_add_binding_item_identifier_to_item.rb +8 -0
  101. data/spec/dummy/db/migrate/20140720170714_add_default_library_id_to_user_import_file.rb +5 -0
  102. data/spec/dummy/db/migrate/20140720170735_add_default_user_group_id_to_user_import_file.rb +5 -0
  103. data/spec/dummy/db/migrate/20140721151416_add_default_shelf_id_to_resource_import_file.rb +5 -0
  104. data/spec/dummy/db/migrate/20140802082007_add_manifestation_id_to_item.rb +6 -0
  105. data/spec/dummy/db/migrate/20140810061942_add_user_id_to_user_checkout_stat.rb +12 -0
  106. data/spec/dummy/db/migrate/20140810091231_add_checkout_icalendar_token_to_profile.rb +6 -0
  107. data/spec/dummy/db/migrate/20140810091417_add_save_checkout_history_to_profile.rb +5 -0
  108. data/spec/dummy/db/migrate/20140811031145_add_expired_at_to_profile.rb +5 -0
  109. data/spec/dummy/db/migrate/20140812093836_add_share_bookmarks_to_profile.rb +5 -0
  110. data/spec/dummy/db/schema.rb +250 -252
  111. data/spec/dummy/db/test.sqlite3 +0 -0
  112. data/spec/dummy/solr/default/data/index/_1x.fdt +0 -0
  113. data/spec/dummy/solr/default/data/index/_1x.fnm +0 -0
  114. data/spec/dummy/solr/default/data/index/_1x.nvm +0 -0
  115. data/spec/dummy/solr/default/data/index/{_cx.si → _1x.si} +0 -0
  116. data/spec/dummy/solr/default/data/index/{_cx_Lucene41_0.tim → _1x_Lucene41_0.tim} +0 -0
  117. data/spec/dummy/solr/default/data/index/_1x_Lucene41_0.tip +0 -0
  118. data/spec/dummy/solr/default/data/index/_1y.fdt +0 -0
  119. data/spec/dummy/solr/default/data/index/_1y.fnm +0 -0
  120. data/spec/dummy/solr/default/data/index/_1y.nvm +0 -0
  121. data/spec/dummy/solr/default/data/index/{_cy.si → _1y.si} +0 -0
  122. data/spec/dummy/solr/default/data/index/{_cy_Lucene41_0.tim → _1y_Lucene41_0.tim} +0 -0
  123. data/spec/dummy/solr/default/data/index/{_cy_Lucene41_0.tip → _1y_Lucene41_0.tip} +0 -0
  124. data/spec/dummy/solr/default/data/index/_1z.fdt +0 -0
  125. data/spec/dummy/solr/default/data/index/_1z.fnm +0 -0
  126. data/spec/dummy/solr/default/data/index/_1z.nvm +0 -0
  127. data/spec/dummy/solr/default/data/index/{_cz.si → _1z.si} +0 -0
  128. data/spec/dummy/solr/default/data/index/{_cz_Lucene41_0.tim → _1z_Lucene41_0.tim} +0 -0
  129. data/spec/dummy/solr/default/data/index/{_cz_Lucene41_0.tip → _1z_Lucene41_0.tip} +0 -0
  130. data/spec/dummy/solr/default/data/index/segments.gen +0 -0
  131. data/spec/dummy/solr/default/data/index/segments_2p +0 -0
  132. data/spec/dummy/solr/default/data/tlog/{tlog.0000000000000000591 → tlog.0000000000000000093} +0 -0
  133. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000094 +0 -0
  134. data/spec/dummy/solr/default/data/tlog/{tlog.0000000000000000593 → tlog.0000000000000000095} +0 -0
  135. data/spec/dummy/tmp/cache/4F7/F90/default_role +0 -0
  136. data/spec/dummy/tmp/cache/6E4/420/search_engine_all +0 -0
  137. data/spec/factories/profile.rb +10 -0
  138. data/spec/factories/user.rb +0 -13
  139. data/spec/fixtures/import_requests.yml +0 -3
  140. data/spec/fixtures/items.yml +46 -21
  141. data/spec/fixtures/library_groups.yml +0 -2
  142. data/spec/fixtures/manifestations.yml +0 -2
  143. data/spec/fixtures/profiles.yml +98 -0
  144. data/spec/fixtures/reserve_transitions.yml +88 -0
  145. data/spec/fixtures/resource_import_files.yml +0 -4
  146. data/spec/fixtures/users.yml +0 -55
  147. metadata +158 -140
  148. data/spec/dummy/db/migrate/113_create_events.rb +0 -23
  149. data/spec/dummy/db/migrate/114_create_event_categories.rb +0 -16
  150. data/spec/dummy/db/migrate/149_create_message_templates.rb +0 -18
  151. data/spec/dummy/db/migrate/154_create_messages.rb +0 -24
  152. data/spec/dummy/db/migrate/20080819181903_create_message_requests.rb +0 -20
  153. data/spec/dummy/db/migrate/20081028093607_create_event_import_files.rb +0 -27
  154. data/spec/dummy/db/migrate/20081117143156_create_inventory_files.rb +0 -18
  155. data/spec/dummy/db/migrate/20081117143455_create_inventories.rb +0 -17
  156. data/spec/dummy/db/migrate/20090519203307_create_participates.rb +0 -17
  157. data/spec/dummy/db/migrate/20090706125521_add_attachments_inventory_to_inventory_file.rb +0 -15
  158. data/spec/dummy/db/migrate/20100527113752_create_delayed_jobs.rb +0 -21
  159. data/spec/dummy/db/migrate/20100925074639_create_event_import_results.rb +0 -15
  160. data/spec/dummy/db/migrate/20110425133109_add_issn_to_series_statement.rb +0 -9
  161. data/spec/dummy/db/migrate/20110618091240_add_periodical_to_series_statement.rb +0 -9
  162. data/spec/dummy/db/migrate/20110820131417_create_series_has_manifestations.rb +0 -13
  163. data/spec/dummy/db/migrate/20110913115320_add_lft_and_rgt_to_message.rb +0 -11
  164. data/spec/dummy/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb +0 -13
  165. data/spec/dummy/db/migrate/20111009183423_add_ndc_to_manifestation.rb +0 -9
  166. data/spec/dummy/db/migrate/20111201121844_create_roles.rb +0 -12
  167. data/spec/dummy/db/migrate/20111201155456_create_users.rb +0 -8
  168. data/spec/dummy/db/migrate/20120105101944_add_queue_to_delayed_jobs.rb +0 -9
  169. data/spec/dummy/db/migrate/20120125050502_add_depth_to_message.rb +0 -6
  170. data/spec/dummy/db/migrate/20120413051535_add_event_import_fingerprint_to_event_import_file.rb +0 -5
  171. data/spec/dummy/db/migrate/20120413100431_add_fingerprint_to_inventory_file.rb +0 -5
  172. data/spec/dummy/db/migrate/20120413170734_add_error_message_to_event_import_file.rb +0 -5
  173. data/spec/dummy/db/migrate/20120415060308_rename_resource_import_file_imported_at_to_executed_at.rb +0 -9
  174. data/spec/dummy/db/migrate/20120415060342_rename_event_import_file_imported_at_to_executed_at.rb +0 -9
  175. data/spec/dummy/db/migrate/20120728204337_create_series_statement_relationships.rb +0 -11
  176. data/spec/dummy/db/migrate/20130303104849_add_state_index_to_reserve.rb +0 -5
  177. data/spec/dummy/db/migrate/20140529014410_create_item_transitions.rb +0 -14
  178. data/spec/dummy/solr/default/data/index/_cx.fdt +0 -0
  179. data/spec/dummy/solr/default/data/index/_cx.fnm +0 -0
  180. data/spec/dummy/solr/default/data/index/_cx.nvm +0 -0
  181. data/spec/dummy/solr/default/data/index/_cx_Lucene41_0.tip +0 -0
  182. data/spec/dummy/solr/default/data/index/_cy.fdt +0 -0
  183. data/spec/dummy/solr/default/data/index/_cy.fnm +0 -0
  184. data/spec/dummy/solr/default/data/index/_cy.nvm +0 -0
  185. data/spec/dummy/solr/default/data/index/_cz.fdt +0 -0
  186. data/spec/dummy/solr/default/data/index/_cz.fnm +0 -0
  187. data/spec/dummy/solr/default/data/index/_cz.nvm +0 -0
  188. data/spec/dummy/solr/default/data/index/segments_gj +0 -0
  189. data/spec/dummy/solr/default/data/tlog/tlog.0000000000000000592 +0 -0
  190. /data/spec/dummy/solr/default/data/index/{_cx.fdx → _1x.fdx} +0 -0
  191. /data/spec/dummy/solr/default/data/index/{_cx.nvd → _1x.nvd} +0 -0
  192. /data/spec/dummy/solr/default/data/index/{_cx_Lucene41_0.doc → _1x_Lucene41_0.doc} +0 -0
  193. /data/spec/dummy/solr/default/data/index/{_cx_Lucene41_0.pos → _1x_Lucene41_0.pos} +0 -0
  194. /data/spec/dummy/solr/default/data/index/{_cy.fdx → _1y.fdx} +0 -0
  195. /data/spec/dummy/solr/default/data/index/{_cy.nvd → _1y.nvd} +0 -0
  196. /data/spec/dummy/solr/default/data/index/{_cy_Lucene41_0.doc → _1y_Lucene41_0.doc} +0 -0
  197. /data/spec/dummy/solr/default/data/index/{_cy_Lucene41_0.pos → _1y_Lucene41_0.pos} +0 -0
  198. /data/spec/dummy/solr/default/data/index/{_cz.fdx → _1z.fdx} +0 -0
  199. /data/spec/dummy/solr/default/data/index/{_cz.nvd → _1z.nvd} +0 -0
  200. /data/spec/dummy/solr/default/data/index/{_cz_Lucene41_0.doc → _1z_Lucene41_0.doc} +0 -0
  201. /data/spec/dummy/solr/default/data/index/{_cz_Lucene41_0.pos → _1z_Lucene41_0.pos} +0 -0
@@ -11,7 +11,30 @@
11
11
  #
12
12
  # It's strongly recommended to check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(:version => 20140529014410) do
14
+ ActiveRecord::Schema.define(:version => 20140812093836) do
15
+
16
+ create_table "accepts", :force => true do |t|
17
+ t.integer "basket_id"
18
+ t.integer "item_id"
19
+ t.integer "librarian_id"
20
+ t.datetime "created_at", :null => false
21
+ t.datetime "updated_at", :null => false
22
+ end
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"
26
+
27
+ create_table "agent_import_file_transitions", :force => true do |t|
28
+ t.string "to_state"
29
+ t.text "metadata", :default => "{}"
30
+ t.integer "sort_key"
31
+ t.integer "agent_import_file_id"
32
+ t.datetime "created_at", :null => false
33
+ t.datetime "updated_at", :null => false
34
+ end
35
+
36
+ add_index "agent_import_file_transitions", ["agent_import_file_id"], :name => "index_agent_import_file_transitions_on_agent_import_file_id"
37
+ add_index "agent_import_file_transitions", ["sort_key", "agent_import_file_id"], :name => "index_agent_import_file_transitions_on_sort_key_and_file_id", :unique => true
15
38
 
16
39
  create_table "agent_import_files", :force => true do |t|
17
40
  t.integer "parent_id"
@@ -20,7 +43,6 @@ ActiveRecord::Schema.define(:version => 20140529014410) do
20
43
  t.integer "user_id"
21
44
  t.text "note"
22
45
  t.datetime "executed_at"
23
- t.string "state"
24
46
  t.string "agent_import_file_name"
25
47
  t.string "agent_import_content_type"
26
48
  t.integer "agent_import_file_size"
@@ -30,10 +52,10 @@ ActiveRecord::Schema.define(:version => 20140529014410) do
30
52
  t.string "agent_import_fingerprint"
31
53
  t.text "error_message"
32
54
  t.string "edit_mode"
55
+ t.string "user_encoding"
33
56
  end
34
57
 
35
58
  add_index "agent_import_files", ["parent_id"], :name => "index_agent_import_files_on_parent_id"
36
- add_index "agent_import_files", ["state"], :name => "index_agent_import_files_on_state"
37
59
  add_index "agent_import_files", ["user_id"], :name => "index_agent_import_files_on_user_id"
38
60
 
39
61
  create_table "agent_import_results", :force => true do |t|
@@ -116,7 +138,6 @@ ActiveRecord::Schema.define(:version => 20140529014410) do
116
138
  t.text "note"
117
139
  t.integer "required_role_id", :default => 1, :null => false
118
140
  t.integer "required_score", :default => 0, :null => false
119
- t.string "state"
120
141
  t.text "email"
121
142
  t.text "url"
122
143
  t.text "full_name_alternative_transcription"
@@ -153,6 +174,18 @@ ActiveRecord::Schema.define(:version => 20140529014410) do
153
174
  add_index "bookmark_stat_has_manifestations", ["bookmark_stat_id"], :name => "index_bookmark_stat_has_manifestations_on_bookmark_stat_id"
154
175
  add_index "bookmark_stat_has_manifestations", ["manifestation_id"], :name => "index_bookmark_stat_has_manifestations_on_manifestation_id"
155
176
 
177
+ create_table "bookmark_stat_transitions", :force => true do |t|
178
+ t.string "to_state"
179
+ t.text "metadata", :default => "{}"
180
+ t.integer "sort_key"
181
+ t.integer "bookmark_stat_id"
182
+ t.datetime "created_at", :null => false
183
+ t.datetime "updated_at", :null => false
184
+ end
185
+
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
188
+
156
189
  create_table "bookmark_stats", :force => true do |t|
157
190
  t.datetime "start_date"
158
191
  t.datetime "end_date"
@@ -357,22 +390,6 @@ ActiveRecord::Schema.define(:version => 20140529014410) do
357
390
  add_index "creates", ["agent_id"], :name => "index_creates_on_agent_id"
358
391
  add_index "creates", ["work_id"], :name => "index_creates_on_work_id"
359
392
 
360
- create_table "delayed_jobs", :force => true do |t|
361
- t.integer "priority", :default => 0
362
- t.integer "attempts", :default => 0
363
- t.text "handler"
364
- t.text "last_error"
365
- t.datetime "run_at"
366
- t.datetime "locked_at"
367
- t.datetime "failed_at"
368
- t.string "locked_by"
369
- t.datetime "created_at", :null => false
370
- t.datetime "updated_at", :null => false
371
- t.string "queue"
372
- end
373
-
374
- add_index "delayed_jobs", ["priority", "run_at"], :name => "delayed_jobs_priority"
375
-
376
393
  create_table "donates", :force => true do |t|
377
394
  t.integer "agent_id", :null => false
378
395
  t.integer "item_id", :null => false
@@ -383,63 +400,6 @@ ActiveRecord::Schema.define(:version => 20140529014410) do
383
400
  add_index "donates", ["agent_id"], :name => "index_donates_on_agent_id"
384
401
  add_index "donates", ["item_id"], :name => "index_donates_on_item_id"
385
402
 
386
- create_table "event_categories", :force => true do |t|
387
- t.string "name", :null => false
388
- t.text "display_name"
389
- t.text "note"
390
- t.integer "position"
391
- t.datetime "created_at", :null => false
392
- t.datetime "updated_at", :null => false
393
- end
394
-
395
- create_table "event_import_files", :force => true do |t|
396
- t.integer "parent_id"
397
- t.string "content_type"
398
- t.integer "size"
399
- t.integer "user_id"
400
- t.text "note"
401
- t.datetime "executed_at"
402
- t.string "state"
403
- t.string "event_import_file_name"
404
- t.string "event_import_content_type"
405
- t.integer "event_import_file_size"
406
- t.datetime "event_import_updated_at"
407
- t.string "edit_mode"
408
- t.datetime "created_at", :null => false
409
- t.datetime "updated_at", :null => false
410
- t.string "event_import_fingerprint"
411
- t.text "error_message"
412
- end
413
-
414
- add_index "event_import_files", ["parent_id"], :name => "index_event_import_files_on_parent_id"
415
- add_index "event_import_files", ["state"], :name => "index_event_import_files_on_state"
416
- add_index "event_import_files", ["user_id"], :name => "index_event_import_files_on_user_id"
417
-
418
- create_table "event_import_results", :force => true do |t|
419
- t.integer "event_import_file_id"
420
- t.integer "event_id"
421
- t.text "body"
422
- t.datetime "created_at", :null => false
423
- t.datetime "updated_at", :null => false
424
- end
425
-
426
- create_table "events", :force => true do |t|
427
- t.integer "library_id", :default => 1, :null => false
428
- t.integer "event_category_id", :default => 1, :null => false
429
- t.string "name"
430
- t.text "note"
431
- t.datetime "start_at"
432
- t.datetime "end_at"
433
- t.boolean "all_day", :default => false, :null => false
434
- t.datetime "deleted_at"
435
- t.text "display_name"
436
- t.datetime "created_at", :null => false
437
- t.datetime "updated_at", :null => false
438
- end
439
-
440
- add_index "events", ["event_category_id"], :name => "index_events_on_event_category_id"
441
- add_index "events", ["library_id"], :name => "index_events_on_library_id"
442
-
443
403
  create_table "exemplifies", :force => true do |t|
444
404
  t.integer "manifestation_id", :null => false
445
405
  t.integer "item_id", :null => false
@@ -500,9 +460,20 @@ ActiveRecord::Schema.define(:version => 20140529014410) do
500
460
  add_index "identifiers", ["body", "identifier_type_id"], :name => "index_identifiers_on_body_and_identifier_type_id"
501
461
  add_index "identifiers", ["manifestation_id"], :name => "index_identifiers_on_manifestation_id"
502
462
 
463
+ create_table "import_request_transitions", :force => true do |t|
464
+ t.string "to_state"
465
+ t.text "metadata", :default => "{}"
466
+ t.integer "sort_key"
467
+ t.integer "import_request_id"
468
+ t.datetime "created_at", :null => false
469
+ t.datetime "updated_at", :null => false
470
+ end
471
+
472
+ add_index "import_request_transitions", ["import_request_id"], :name => "index_import_request_transitions_on_import_request_id"
473
+ add_index "import_request_transitions", ["sort_key", "import_request_id"], :name => "index_import_request_transitions_on_sort_key_and_request_id", :unique => true
474
+
503
475
  create_table "import_requests", :force => true do |t|
504
476
  t.string "isbn"
505
- t.string "state"
506
477
  t.integer "manifestation_id"
507
478
  t.integer "user_id"
508
479
  t.datetime "created_at", :null => false
@@ -513,34 +484,6 @@ ActiveRecord::Schema.define(:version => 20140529014410) do
513
484
  add_index "import_requests", ["manifestation_id"], :name => "index_import_requests_on_manifestation_id"
514
485
  add_index "import_requests", ["user_id"], :name => "index_import_requests_on_user_id"
515
486
 
516
- create_table "inventories", :force => true do |t|
517
- t.integer "item_id"
518
- t.integer "inventory_file_id"
519
- t.text "note"
520
- t.datetime "created_at", :null => false
521
- t.datetime "updated_at", :null => false
522
- end
523
-
524
- add_index "inventories", ["inventory_file_id"], :name => "index_inventories_on_inventory_file_id"
525
- add_index "inventories", ["item_id"], :name => "index_inventories_on_item_id"
526
-
527
- create_table "inventory_files", :force => true do |t|
528
- t.string "filename"
529
- t.string "content_type"
530
- t.integer "size"
531
- t.integer "user_id"
532
- t.text "note"
533
- t.datetime "created_at", :null => false
534
- t.datetime "updated_at", :null => false
535
- t.string "inventory_file_name"
536
- t.string "inventory_content_type"
537
- t.integer "inventory_file_size"
538
- t.datetime "inventory_updated_at"
539
- t.string "inventory_fingerprint"
540
- end
541
-
542
- add_index "inventory_files", ["user_id"], :name => "index_inventory_files_on_user_id"
543
-
544
487
  create_table "item_has_use_restrictions", :force => true do |t|
545
488
  t.integer "item_id", :null => false
546
489
  t.integer "use_restriction_id", :null => false
@@ -551,44 +494,37 @@ ActiveRecord::Schema.define(:version => 20140529014410) do
551
494
  add_index "item_has_use_restrictions", ["item_id"], :name => "index_item_has_use_restrictions_on_item_id"
552
495
  add_index "item_has_use_restrictions", ["use_restriction_id"], :name => "index_item_has_use_restrictions_on_use_restriction_id"
553
496
 
554
- create_table "item_transitions", :force => true do |t|
555
- t.string "to_state"
556
- t.text "metadata", :default => "{}"
557
- t.integer "sort_key"
558
- t.integer "item_id"
559
- t.datetime "created_at", :null => false
560
- t.datetime "updated_at", :null => false
561
- end
562
-
563
- add_index "item_transitions", ["item_id"], :name => "index_item_transitions_on_item_id"
564
- add_index "item_transitions", ["sort_key", "item_id"], :name => "index_item_transitions_on_sort_key_and_item_id", :unique => true
565
-
566
497
  create_table "items", :force => true do |t|
567
498
  t.string "call_number"
568
499
  t.string "item_identifier"
569
- t.datetime "created_at", :null => false
570
- t.datetime "updated_at", :null => false
500
+ t.datetime "created_at", :null => false
501
+ t.datetime "updated_at", :null => false
571
502
  t.datetime "deleted_at"
572
- t.integer "shelf_id", :default => 1, :null => false
573
- t.boolean "include_supplements", :default => false, :null => false
503
+ t.integer "shelf_id", :default => 1, :null => false
504
+ t.boolean "include_supplements", :default => false, :null => false
574
505
  t.text "note"
575
506
  t.string "url"
576
507
  t.integer "price"
577
- t.integer "lock_version", :default => 0, :null => false
578
- t.integer "required_role_id", :default => 1, :null => false
579
- t.string "state"
580
- t.integer "required_score", :default => 0, :null => false
508
+ t.integer "lock_version", :default => 0, :null => false
509
+ t.integer "required_role_id", :default => 1, :null => false
510
+ t.integer "required_score", :default => 0, :null => false
581
511
  t.datetime "acquired_at"
582
512
  t.integer "bookstore_id"
583
513
  t.integer "budget_type_id"
584
- t.integer "circulation_status_id", :default => 5, :null => false
585
- t.integer "checkout_type_id", :default => 1, :null => false
514
+ t.integer "circulation_status_id", :default => 5, :null => false
515
+ t.integer "checkout_type_id", :default => 1, :null => false
516
+ t.string "binding_item_identifier"
517
+ t.string "binding_call_number"
518
+ t.datetime "binded_at"
519
+ t.integer "manifestation_id"
586
520
  end
587
521
 
522
+ add_index "items", ["binding_item_identifier"], :name => "index_items_on_binding_item_identifier"
588
523
  add_index "items", ["bookstore_id"], :name => "index_items_on_bookstore_id"
589
524
  add_index "items", ["checkout_type_id"], :name => "index_items_on_checkout_type_id"
590
525
  add_index "items", ["circulation_status_id"], :name => "index_items_on_circulation_status_id"
591
526
  add_index "items", ["item_identifier"], :name => "index_items_on_item_identifier"
527
+ add_index "items", ["manifestation_id"], :name => "index_items_on_manifestation_id"
592
528
  add_index "items", ["required_role_id"], :name => "index_items_on_required_role_id"
593
529
  add_index "items", ["shelf_id"], :name => "index_items_on_shelf_id"
594
530
 
@@ -644,7 +580,10 @@ ActiveRecord::Schema.define(:version => 20140529014410) do
644
580
  t.datetime "created_at", :null => false
645
581
  t.datetime "updated_at", :null => false
646
582
  t.datetime "deleted_at"
583
+ t.text "opening_hour"
647
584
  t.string "isil"
585
+ t.float "latitude"
586
+ t.float "longitude"
648
587
  end
649
588
 
650
589
  add_index "libraries", ["library_group_id"], :name => "index_libraries_on_library_group_id"
@@ -654,7 +593,6 @@ ActiveRecord::Schema.define(:version => 20140529014410) do
654
593
  t.string "name", :null => false
655
594
  t.text "display_name"
656
595
  t.string "short_name", :null => false
657
- t.string "email"
658
596
  t.text "my_networks"
659
597
  t.text "login_banner"
660
598
  t.text "note"
@@ -694,14 +632,14 @@ ActiveRecord::Schema.define(:version => 20140529014410) do
694
632
  t.datetime "start_date"
695
633
  t.datetime "end_date"
696
634
  t.text "note"
697
- t.string "state"
698
635
  t.datetime "created_at", :null => false
699
636
  t.datetime "updated_at", :null => false
700
637
  t.datetime "started_at"
701
638
  t.datetime "completed_at"
639
+ t.integer "user_id"
702
640
  end
703
641
 
704
- add_index "manifestation_checkout_stats", ["state"], :name => "index_manifestation_checkout_stats_on_state"
642
+ add_index "manifestation_checkout_stats", ["user_id"], :name => "index_manifestation_checkout_stats_on_user_id"
705
643
 
706
644
  create_table "manifestation_relationship_types", :force => true do |t|
707
645
  t.string "name", :null => false
@@ -740,14 +678,14 @@ ActiveRecord::Schema.define(:version => 20140529014410) do
740
678
  t.datetime "start_date"
741
679
  t.datetime "end_date"
742
680
  t.text "note"
743
- t.string "state"
744
681
  t.datetime "created_at", :null => false
745
682
  t.datetime "updated_at", :null => false
746
683
  t.datetime "started_at"
747
684
  t.datetime "completed_at"
685
+ t.integer "user_id"
748
686
  end
749
687
 
750
- add_index "manifestation_reserve_stats", ["state"], :name => "index_manifestation_reserve_stats_on_state"
688
+ add_index "manifestation_reserve_stats", ["user_id"], :name => "index_manifestation_reserve_stats_on_user_id"
751
689
 
752
690
  create_table "manifestations", :force => true do |t|
753
691
  t.text "original_title", :null => false
@@ -769,13 +707,6 @@ ActiveRecord::Schema.define(:version => 20140529014410) do
769
707
  t.integer "height"
770
708
  t.integer "width"
771
709
  t.integer "depth"
772
- t.string "isbn"
773
- t.string "isbn10"
774
- t.string "wrong_isbn"
775
- t.string "nbn"
776
- t.string "lccn"
777
- t.string "oclc_number"
778
- t.string "issn"
779
710
  t.integer "price"
780
711
  t.text "fulltext"
781
712
  t.string "volume_number_string"
@@ -786,7 +717,6 @@ ActiveRecord::Schema.define(:version => 20140529014410) do
786
717
  t.boolean "repository_content", :default => false, :null => false
787
718
  t.integer "lock_version", :default => 0, :null => false
788
719
  t.integer "required_role_id", :default => 1, :null => false
789
- t.string "state"
790
720
  t.integer "required_score", :default => 0, :null => false
791
721
  t.integer "frequency_id", :default => 1, :null => false
792
722
  t.boolean "subscription_master", :default => false, :null => false
@@ -807,7 +737,6 @@ ActiveRecord::Schema.define(:version => 20140529014410) do
807
737
  t.integer "volume_number"
808
738
  t.integer "issue_number"
809
739
  t.integer "serial_number"
810
- t.string "ndc"
811
740
  t.integer "content_type_id", :default => 1
812
741
  t.integer "year_of_publication"
813
742
  t.text "attachment_meta"
@@ -819,13 +748,9 @@ ActiveRecord::Schema.define(:version => 20140529014410) do
819
748
  end
820
749
 
821
750
  add_index "manifestations", ["access_address"], :name => "index_manifestations_on_access_address"
751
+ add_index "manifestations", ["date_of_publication"], :name => "index_manifestations_on_date_of_publication"
822
752
  add_index "manifestations", ["doi"], :name => "index_manifestations_on_doi"
823
- add_index "manifestations", ["isbn"], :name => "index_manifestations_on_isbn"
824
- add_index "manifestations", ["issn"], :name => "index_manifestations_on_issn"
825
- add_index "manifestations", ["lccn"], :name => "index_manifestations_on_lccn"
826
753
  add_index "manifestations", ["manifestation_identifier"], :name => "index_manifestations_on_manifestation_identifier"
827
- add_index "manifestations", ["nbn"], :name => "index_manifestations_on_nbn"
828
- add_index "manifestations", ["oclc_number"], :name => "index_manifestations_on_oclc_number"
829
754
  add_index "manifestations", ["updated_at"], :name => "index_manifestations_on_updated_at"
830
755
 
831
756
  create_table "medium_of_performances", :force => true do |t|
@@ -837,53 +762,6 @@ ActiveRecord::Schema.define(:version => 20140529014410) do
837
762
  t.datetime "updated_at", :null => false
838
763
  end
839
764
 
840
- create_table "message_requests", :force => true do |t|
841
- t.integer "sender_id"
842
- t.integer "receiver_id"
843
- t.integer "message_template_id"
844
- t.datetime "sent_at"
845
- t.datetime "deleted_at"
846
- t.text "body"
847
- t.string "state"
848
- t.datetime "created_at", :null => false
849
- t.datetime "updated_at", :null => false
850
- end
851
-
852
- add_index "message_requests", ["state"], :name => "index_message_requests_on_state"
853
-
854
- create_table "message_templates", :force => true do |t|
855
- t.string "status", :null => false
856
- t.text "title", :null => false
857
- t.text "body", :null => false
858
- t.integer "position"
859
- t.string "locale", :default => "ja"
860
- t.datetime "created_at", :null => false
861
- t.datetime "updated_at", :null => false
862
- end
863
-
864
- add_index "message_templates", ["status"], :name => "index_message_templates_on_status", :unique => true
865
-
866
- create_table "messages", :force => true do |t|
867
- t.datetime "read_at"
868
- t.integer "receiver_id"
869
- t.integer "sender_id"
870
- t.string "subject", :null => false
871
- t.text "body"
872
- t.integer "message_request_id"
873
- t.string "state"
874
- t.integer "parent_id"
875
- t.datetime "created_at", :null => false
876
- t.datetime "updated_at", :null => false
877
- t.integer "lft"
878
- t.integer "rgt"
879
- t.integer "depth"
880
- end
881
-
882
- add_index "messages", ["message_request_id"], :name => "index_messages_on_message_request_id"
883
- add_index "messages", ["parent_id"], :name => "index_messages_on_parent_id"
884
- add_index "messages", ["receiver_id"], :name => "index_messages_on_receiver_id"
885
- add_index "messages", ["sender_id"], :name => "index_messages_on_sender_id"
886
-
887
765
  create_table "owns", :force => true do |t|
888
766
  t.integer "agent_id", :null => false
889
767
  t.integer "item_id", :null => false
@@ -895,17 +773,6 @@ ActiveRecord::Schema.define(:version => 20140529014410) do
895
773
  add_index "owns", ["agent_id"], :name => "index_owns_on_agent_id"
896
774
  add_index "owns", ["item_id"], :name => "index_owns_on_item_id"
897
775
 
898
- create_table "participates", :force => true do |t|
899
- t.integer "agent_id", :null => false
900
- t.integer "event_id", :null => false
901
- t.integer "position"
902
- t.datetime "created_at", :null => false
903
- t.datetime "updated_at", :null => false
904
- end
905
-
906
- add_index "participates", ["agent_id"], :name => "index_participates_on_agent_id"
907
- add_index "participates", ["event_id"], :name => "index_participates_on_event_id"
908
-
909
776
  create_table "picture_files", :force => true do |t|
910
777
  t.integer "picture_attachable_id"
911
778
  t.string "picture_attachable_type"
@@ -946,6 +813,28 @@ ActiveRecord::Schema.define(:version => 20140529014410) do
946
813
  add_index "produces", ["agent_id"], :name => "index_produces_on_agent_id"
947
814
  add_index "produces", ["manifestation_id"], :name => "index_produces_on_manifestation_id"
948
815
 
816
+ create_table "profiles", :force => true do |t|
817
+ t.integer "user_id"
818
+ t.integer "user_group_id"
819
+ t.integer "library_id"
820
+ t.string "locale"
821
+ t.string "user_number"
822
+ t.text "full_name"
823
+ t.text "note"
824
+ t.text "keyword_list"
825
+ t.integer "required_role_id"
826
+ t.datetime "created_at", :null => false
827
+ t.datetime "updated_at", :null => false
828
+ t.string "checkout_icalendar_token"
829
+ t.boolean "save_checkout_history", :default => false, :null => false
830
+ t.datetime "expired_at"
831
+ t.boolean "share_bookmarks"
832
+ end
833
+
834
+ add_index "profiles", ["checkout_icalendar_token"], :name => "index_profiles_on_checkout_icalendar_token", :unique => true
835
+ add_index "profiles", ["user_id"], :name => "index_profiles_on_user_id"
836
+ add_index "profiles", ["user_number"], :name => "index_profiles_on_user_number", :unique => true
837
+
949
838
  create_table "realize_types", :force => true do |t|
950
839
  t.string "name"
951
840
  t.text "display_name"
@@ -1030,7 +919,6 @@ ActiveRecord::Schema.define(:version => 20140529014410) do
1030
919
  t.datetime "canceled_at"
1031
920
  t.datetime "expired_at"
1032
921
  t.datetime "deleted_at"
1033
- t.string "state"
1034
922
  t.boolean "expiration_notice_to_patron", :default => false
1035
923
  t.boolean "expiration_notice_to_library", :default => false
1036
924
  t.datetime "retained_at"
@@ -1041,9 +929,43 @@ ActiveRecord::Schema.define(:version => 20140529014410) do
1041
929
  add_index "reserves", ["item_id"], :name => "index_reserves_on_item_id"
1042
930
  add_index "reserves", ["manifestation_id"], :name => "index_reserves_on_manifestation_id"
1043
931
  add_index "reserves", ["request_status_type_id"], :name => "index_reserves_on_request_status_type_id"
1044
- add_index "reserves", ["state"], :name => "index_reserves_on_state"
1045
932
  add_index "reserves", ["user_id"], :name => "index_reserves_on_user_id"
1046
933
 
934
+ create_table "resource_export_file_transitions", :force => true do |t|
935
+ t.string "to_state"
936
+ t.text "metadata", :default => "{}"
937
+ t.integer "sort_key"
938
+ t.integer "resource_export_file_id"
939
+ t.datetime "created_at", :null => false
940
+ t.datetime "updated_at", :null => false
941
+ end
942
+
943
+ add_index "resource_export_file_transitions", ["resource_export_file_id"], :name => "index_resource_export_file_transitions_on_file_id"
944
+ 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
945
+
946
+ create_table "resource_export_files", :force => true do |t|
947
+ t.integer "user_id"
948
+ t.string "resource_export_file_name"
949
+ t.string "resource_export_content_type"
950
+ t.integer "resource_export_file_size"
951
+ t.datetime "resource_export_updated_at"
952
+ t.datetime "executed_at"
953
+ t.datetime "created_at", :null => false
954
+ t.datetime "updated_at", :null => false
955
+ end
956
+
957
+ create_table "resource_import_file_transitions", :force => true do |t|
958
+ t.string "to_state"
959
+ t.text "metadata", :default => "{}"
960
+ t.integer "sort_key"
961
+ t.integer "resource_import_file_id"
962
+ t.datetime "created_at", :null => false
963
+ t.datetime "updated_at", :null => false
964
+ end
965
+
966
+ add_index "resource_import_file_transitions", ["resource_import_file_id"], :name => "index_resource_import_file_transitions_on_file_id"
967
+ 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
968
+
1047
969
  create_table "resource_import_files", :force => true do |t|
1048
970
  t.integer "parent_id"
1049
971
  t.string "content_type"
@@ -1051,7 +973,6 @@ ActiveRecord::Schema.define(:version => 20140529014410) do
1051
973
  t.integer "user_id"
1052
974
  t.text "note"
1053
975
  t.datetime "executed_at"
1054
- t.string "state"
1055
976
  t.string "resource_import_file_name"
1056
977
  t.string "resource_import_content_type"
1057
978
  t.integer "resource_import_file_size"
@@ -1061,10 +982,11 @@ ActiveRecord::Schema.define(:version => 20140529014410) do
1061
982
  t.string "edit_mode"
1062
983
  t.string "resource_import_fingerprint"
1063
984
  t.text "error_message"
985
+ t.string "user_encoding"
986
+ t.integer "default_shelf_id"
1064
987
  end
1065
988
 
1066
989
  add_index "resource_import_files", ["parent_id"], :name => "index_resource_import_files_on_parent_id"
1067
- add_index "resource_import_files", ["state"], :name => "index_resource_import_files_on_state"
1068
990
  add_index "resource_import_files", ["user_id"], :name => "index_resource_import_files_on_user_id"
1069
991
 
1070
992
  create_table "resource_import_results", :force => true do |t|
@@ -1081,12 +1003,13 @@ ActiveRecord::Schema.define(:version => 20140529014410) do
1081
1003
  add_index "resource_import_results", ["resource_import_file_id"], :name => "index_resource_import_results_on_resource_import_file_id"
1082
1004
 
1083
1005
  create_table "roles", :force => true do |t|
1084
- t.string "name"
1085
- t.text "display_name"
1006
+ t.string "name", :null => false
1007
+ t.string "display_name"
1086
1008
  t.text "note"
1009
+ t.datetime "created_at"
1010
+ t.datetime "updated_at"
1011
+ t.integer "score", :default => 0, :null => false
1087
1012
  t.integer "position"
1088
- t.datetime "created_at", :null => false
1089
- t.datetime "updated_at", :null => false
1090
1013
  end
1091
1014
 
1092
1015
  create_table "search_engines", :force => true do |t|
@@ -1103,38 +1026,33 @@ ActiveRecord::Schema.define(:version => 20140529014410) do
1103
1026
  t.datetime "updated_at", :null => false
1104
1027
  end
1105
1028
 
1106
- create_table "series_has_manifestations", :force => true do |t|
1107
- t.integer "series_statement_id"
1108
- t.integer "manifestation_id"
1109
- t.integer "position"
1110
- t.datetime "created_at", :null => false
1111
- t.datetime "updated_at", :null => false
1112
- end
1113
-
1114
- add_index "series_has_manifestations", ["manifestation_id"], :name => "index_series_has_manifestations_on_manifestation_id"
1115
- add_index "series_has_manifestations", ["series_statement_id"], :name => "index_series_has_manifestations_on_series_statement_id"
1116
-
1117
- create_table "series_statement_relationships", :force => true do |t|
1118
- t.integer "parent_id"
1119
- t.integer "child_id"
1120
- t.integer "position"
1029
+ create_table "series_statement_merge_lists", :force => true do |t|
1030
+ t.string "title"
1121
1031
  t.datetime "created_at", :null => false
1122
1032
  t.datetime "updated_at", :null => false
1123
1033
  end
1124
1034
 
1035
+ create_table "series_statement_merges", :force => true do |t|
1036
+ t.integer "series_statement_id", :null => false
1037
+ t.integer "series_statement_merge_list_id", :null => false
1038
+ t.datetime "created_at", :null => false
1039
+ t.datetime "updated_at", :null => false
1040
+ end
1041
+
1042
+ add_index "series_statement_merges", ["series_statement_id"], :name => "index_series_statement_merges_on_series_statement_id"
1043
+ add_index "series_statement_merges", ["series_statement_merge_list_id"], :name => "index_series_statement_merges_on_series_statement_merge_list_id"
1044
+
1125
1045
  create_table "series_statements", :force => true do |t|
1126
1046
  t.text "original_title"
1127
1047
  t.text "numbering"
1128
1048
  t.text "title_subseries"
1129
1049
  t.text "numbering_subseries"
1130
1050
  t.integer "position"
1131
- t.datetime "created_at", :null => false
1132
- t.datetime "updated_at", :null => false
1051
+ t.datetime "created_at", :null => false
1052
+ t.datetime "updated_at", :null => false
1133
1053
  t.text "title_transcription"
1134
1054
  t.text "title_alternative"
1135
1055
  t.string "series_statement_identifier"
1136
- t.string "issn"
1137
- t.boolean "periodical", :default => false, :null => false
1138
1056
  t.integer "manifestation_id"
1139
1057
  t.text "note"
1140
1058
  t.text "title_subseries_transcription"
@@ -1164,6 +1082,32 @@ ActiveRecord::Schema.define(:version => 20140529014410) do
1164
1082
 
1165
1083
  add_index "shelves", ["library_id"], :name => "index_shelves_on_library_id"
1166
1084
 
1085
+ create_table "subscribes", :force => true do |t|
1086
+ t.integer "subscription_id", :null => false
1087
+ t.integer "work_id", :null => false
1088
+ t.datetime "start_at", :null => false
1089
+ t.datetime "end_at", :null => false
1090
+ t.datetime "created_at", :null => false
1091
+ t.datetime "updated_at", :null => false
1092
+ end
1093
+
1094
+ add_index "subscribes", ["subscription_id"], :name => "index_subscribes_on_subscription_id"
1095
+ add_index "subscribes", ["work_id"], :name => "index_subscribes_on_work_id"
1096
+
1097
+ create_table "subscriptions", :force => true do |t|
1098
+ t.text "title", :null => false
1099
+ t.text "note"
1100
+ t.integer "user_id"
1101
+ t.integer "order_list_id"
1102
+ t.datetime "deleted_at"
1103
+ t.integer "subscribes_count", :default => 0, :null => false
1104
+ t.datetime "created_at", :null => false
1105
+ t.datetime "updated_at", :null => false
1106
+ end
1107
+
1108
+ add_index "subscriptions", ["order_list_id"], :name => "index_subscriptions_on_order_list_id"
1109
+ add_index "subscriptions", ["user_id"], :name => "index_subscriptions_on_user_id"
1110
+
1167
1111
  create_table "taggings", :force => true do |t|
1168
1112
  t.integer "tag_id"
1169
1113
  t.integer "taggable_id"
@@ -1180,8 +1124,9 @@ ActiveRecord::Schema.define(:version => 20140529014410) do
1180
1124
  create_table "tags", :force => true do |t|
1181
1125
  t.string "name"
1182
1126
  t.string "name_transcription"
1183
- t.datetime "created_at", :null => false
1184
- t.datetime "updated_at", :null => false
1127
+ t.datetime "created_at", :null => false
1128
+ t.datetime "updated_at", :null => false
1129
+ t.integer "taggings_count", :default => 0
1185
1130
  end
1186
1131
 
1187
1132
  create_table "use_restrictions", :force => true do |t|
@@ -1209,14 +1154,37 @@ ActiveRecord::Schema.define(:version => 20140529014410) do
1209
1154
  t.datetime "start_date"
1210
1155
  t.datetime "end_date"
1211
1156
  t.text "note"
1212
- t.string "state"
1213
1157
  t.datetime "created_at", :null => false
1214
1158
  t.datetime "updated_at", :null => false
1215
1159
  t.datetime "started_at"
1216
1160
  t.datetime "completed_at"
1161
+ t.integer "user_id"
1217
1162
  end
1218
1163
 
1219
- add_index "user_checkout_stats", ["state"], :name => "index_user_checkout_stats_on_state"
1164
+ add_index "user_checkout_stats", ["user_id"], :name => "index_user_checkout_stats_on_user_id"
1165
+
1166
+ create_table "user_export_file_transitions", :force => true do |t|
1167
+ t.string "to_state"
1168
+ t.text "metadata", :default => "{}"
1169
+ t.integer "sort_key"
1170
+ t.integer "user_export_file_id"
1171
+ t.datetime "created_at", :null => false
1172
+ t.datetime "updated_at", :null => false
1173
+ end
1174
+
1175
+ 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
1176
+ add_index "user_export_file_transitions", ["user_export_file_id"], :name => "index_user_export_file_transitions_on_file_id"
1177
+
1178
+ create_table "user_export_files", :force => true do |t|
1179
+ t.integer "user_id"
1180
+ t.string "user_export_file_name"
1181
+ t.string "user_export_content_type"
1182
+ t.integer "user_export_file_size"
1183
+ t.datetime "user_export_updated_at"
1184
+ t.datetime "executed_at"
1185
+ t.datetime "created_at", :null => false
1186
+ t.datetime "updated_at", :null => false
1187
+ end
1220
1188
 
1221
1189
  create_table "user_group_has_checkout_types", :force => true do |t|
1222
1190
  t.integer "user_group_id", :null => false
@@ -1240,7 +1208,6 @@ ActiveRecord::Schema.define(:version => 20140529014410) do
1240
1208
 
1241
1209
  create_table "user_groups", :force => true do |t|
1242
1210
  t.string "name"
1243
- t.string "string"
1244
1211
  t.text "display_name"
1245
1212
  t.text "note"
1246
1213
  t.integer "position"
@@ -1261,6 +1228,47 @@ ActiveRecord::Schema.define(:version => 20140529014410) do
1261
1228
  t.datetime "updated_at", :null => false
1262
1229
  end
1263
1230
 
1231
+ add_index "user_has_roles", ["role_id"], :name => "index_user_has_roles_on_role_id"
1232
+ add_index "user_has_roles", ["user_id"], :name => "index_user_has_roles_on_user_id"
1233
+
1234
+ create_table "user_import_file_transitions", :force => true do |t|
1235
+ t.string "to_state"
1236
+ t.text "metadata", :default => "{}"
1237
+ t.integer "sort_key"
1238
+ t.integer "user_import_file_id"
1239
+ t.datetime "created_at", :null => false
1240
+ t.datetime "updated_at", :null => false
1241
+ end
1242
+
1243
+ 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
1244
+ add_index "user_import_file_transitions", ["user_import_file_id"], :name => "index_user_import_file_transitions_on_user_import_file_id"
1245
+
1246
+ create_table "user_import_files", :force => true do |t|
1247
+ t.integer "user_id"
1248
+ t.text "note"
1249
+ t.datetime "executed_at"
1250
+ t.string "user_import_file_name"
1251
+ t.string "user_import_content_type"
1252
+ t.string "user_import_file_size"
1253
+ t.datetime "user_import_updated_at"
1254
+ t.string "user_import_fingerprint"
1255
+ t.string "edit_mode"
1256
+ t.text "error_message"
1257
+ t.datetime "created_at", :null => false
1258
+ t.datetime "updated_at", :null => false
1259
+ t.string "user_encoding"
1260
+ t.integer "default_library_id"
1261
+ t.integer "default_user_group_id"
1262
+ end
1263
+
1264
+ create_table "user_import_results", :force => true do |t|
1265
+ t.integer "user_import_file_id"
1266
+ t.integer "user_id"
1267
+ t.text "body"
1268
+ t.datetime "created_at", :null => false
1269
+ t.datetime "updated_at", :null => false
1270
+ end
1271
+
1264
1272
  create_table "user_reserve_stat_transitions", :force => true do |t|
1265
1273
  t.string "to_state"
1266
1274
  t.text "metadata", :default => "{}"
@@ -1277,18 +1285,16 @@ ActiveRecord::Schema.define(:version => 20140529014410) do
1277
1285
  t.datetime "start_date"
1278
1286
  t.datetime "end_date"
1279
1287
  t.text "note"
1280
- t.string "state"
1281
1288
  t.datetime "created_at", :null => false
1282
1289
  t.datetime "updated_at", :null => false
1283
1290
  t.datetime "started_at"
1284
1291
  t.datetime "completed_at"
1292
+ t.integer "user_id"
1285
1293
  end
1286
1294
 
1287
- add_index "user_reserve_stats", ["state"], :name => "index_user_reserve_stats_on_state"
1295
+ add_index "user_reserve_stats", ["user_id"], :name => "index_user_reserve_stats_on_user_id"
1288
1296
 
1289
1297
  create_table "users", :force => true do |t|
1290
- t.datetime "created_at", :null => false
1291
- t.datetime "updated_at", :null => false
1292
1298
  t.string "email", :default => "", :null => false
1293
1299
  t.string "encrypted_password", :default => "", :null => false
1294
1300
  t.string "reset_password_token"
@@ -1299,21 +1305,15 @@ ActiveRecord::Schema.define(:version => 20140529014410) do
1299
1305
  t.datetime "last_sign_in_at"
1300
1306
  t.string "current_sign_in_ip"
1301
1307
  t.string "last_sign_in_ip"
1308
+ t.datetime "created_at", :null => false
1309
+ t.datetime "updated_at", :null => false
1302
1310
  t.boolean "save_checkout_history", :default => false, :null => false
1303
1311
  t.string "checkout_icalendar_token"
1304
1312
  t.boolean "share_bookmarks"
1305
1313
  t.string "username"
1306
- t.string "user_number"
1307
- t.string "state"
1308
- t.string "locale"
1309
1314
  t.datetime "deleted_at"
1310
1315
  t.datetime "expired_at"
1311
- t.integer "library_id", :default => 1, :null => false
1312
- t.integer "required_role_id", :default => 1, :null => false
1313
- t.integer "user_group_id", :default => 1, :null => false
1314
- t.text "note"
1315
- t.text "keyword_list"
1316
- t.integer "failed_attempts"
1316
+ t.integer "failed_attempts", :default => 0
1317
1317
  t.string "unlock_token"
1318
1318
  t.datetime "locked_at"
1319
1319
  t.datetime "confirmed_at"
@@ -1323,8 +1323,6 @@ ActiveRecord::Schema.define(:version => 20140529014410) do
1323
1323
  add_index "users", ["email"], :name => "index_users_on_email"
1324
1324
  add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true
1325
1325
  add_index "users", ["unlock_token"], :name => "index_users_on_unlock_token", :unique => true
1326
- add_index "users", ["user_group_id"], :name => "index_users_on_user_group_id"
1327
- add_index "users", ["user_number"], :name => "index_users_on_user_number", :unique => true
1328
1326
  add_index "users", ["username"], :name => "index_users_on_username", :unique => true
1329
1327
 
1330
1328
  create_table "versions", :force => true do |t|