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
@@ -1,23 +0,0 @@
1
- class CreateEvents < ActiveRecord::Migration
2
- def self.up
3
- create_table :events do |t|
4
- t.integer :library_id, :default => 1, :null => false
5
- t.integer :event_category_id, :default => 1, :null => false
6
- t.string :name
7
- t.text :note
8
- t.datetime :start_at
9
- t.datetime :end_at
10
- t.boolean :all_day, :default => false, :null => false
11
- t.datetime :deleted_at
12
- t.text :display_name
13
-
14
- t.timestamps
15
- end
16
- add_index :events, :library_id
17
- add_index :events, :event_category_id
18
- end
19
-
20
- def self.down
21
- drop_table :events
22
- end
23
- end
@@ -1,16 +0,0 @@
1
- class CreateEventCategories < ActiveRecord::Migration
2
- def self.up
3
- create_table :event_categories do |t|
4
- t.string :name, :null => false
5
- t.text :display_name
6
- t.text :note
7
- t.integer :position
8
-
9
- t.timestamps
10
- end
11
- end
12
-
13
- def self.down
14
- drop_table :event_categories
15
- end
16
- end
@@ -1,18 +0,0 @@
1
- class CreateMessageTemplates < ActiveRecord::Migration
2
- def self.up
3
- create_table :message_templates do |t|
4
- t.string :status, :null => false
5
- t.text :title, :null => false
6
- t.text :body, :null => false
7
- t.integer :position
8
- t.string :locale, :default => I18n.default_locale.to_s
9
-
10
- t.timestamps
11
- end
12
- add_index :message_templates, :status, :unique => true
13
- end
14
-
15
- def self.down
16
- drop_table :message_templates
17
- end
18
- end
@@ -1,24 +0,0 @@
1
- class CreateMessages < ActiveRecord::Migration
2
- def self.up
3
- create_table :messages, :force => true do |t|
4
- t.datetime :read_at
5
- t.integer :receiver_id, :sender_id
6
- t.string :subject, :null => false
7
- t.text :body
8
- t.integer :message_request_id
9
- t.string :state
10
- t.integer :parent_id
11
-
12
- t.timestamps
13
- end
14
-
15
- add_index :messages, :sender_id
16
- add_index :messages, :receiver_id
17
- add_index :messages, :message_request_id
18
- add_index :messages, :parent_id
19
- end
20
-
21
- def self.down
22
- drop_table :messages
23
- end
24
- end
@@ -1,20 +0,0 @@
1
- class CreateMessageRequests < ActiveRecord::Migration
2
- def self.up
3
- create_table :message_requests do |t|
4
- t.integer :sender_id
5
- t.integer :receiver_id
6
- t.integer :message_template_id
7
- t.datetime :sent_at
8
- t.datetime :deleted_at
9
- t.text :body
10
- t.string :state
11
-
12
- t.timestamps
13
- end
14
- add_index :message_requests, :state
15
- end
16
-
17
- def self.down
18
- drop_table :message_requests
19
- end
20
- end
@@ -1,27 +0,0 @@
1
- class CreateEventImportFiles < ActiveRecord::Migration
2
- def self.up
3
- create_table :event_import_files do |t|
4
- t.integer :parent_id
5
- t.string :content_type
6
- t.integer :size
7
- t.integer :user_id
8
- t.text :note
9
- t.datetime :imported_at
10
- t.string :state
11
- t.string :event_import_file_name
12
- t.string :event_import_content_type
13
- t.integer :event_import_file_size
14
- t.datetime :event_import_updated_at
15
- t.string :edit_mode
16
-
17
- t.timestamps
18
- end
19
- add_index :event_import_files, :parent_id
20
- add_index :event_import_files, :user_id
21
- add_index :event_import_files, :state
22
- end
23
-
24
- def self.down
25
- drop_table :event_import_files
26
- end
27
- end
@@ -1,18 +0,0 @@
1
- class CreateInventoryFiles < ActiveRecord::Migration
2
- def self.up
3
- create_table :inventory_files do |t|
4
- t.string :filename
5
- t.string :content_type
6
- t.integer :size
7
- t.integer :user_id
8
- t.text :note
9
-
10
- t.timestamps
11
- end
12
- add_index :inventory_files, :user_id
13
- end
14
-
15
- def self.down
16
- drop_table :inventory_files
17
- end
18
- end
@@ -1,17 +0,0 @@
1
- class CreateInventories < ActiveRecord::Migration
2
- def self.up
3
- create_table :inventories do |t|
4
- t.integer :item_id
5
- t.integer :inventory_file_id
6
- t.text :note
7
-
8
- t.timestamps
9
- end
10
- add_index :inventories, :item_id
11
- add_index :inventories, :inventory_file_id
12
- end
13
-
14
- def self.down
15
- drop_table :inventories
16
- end
17
- end
@@ -1,17 +0,0 @@
1
- class CreateParticipates < ActiveRecord::Migration
2
- def self.up
3
- create_table :participates do |t|
4
- t.integer :agent_id, :null => false
5
- t.integer :event_id, :null => false
6
- t.integer :position
7
-
8
- t.timestamps
9
- end
10
- add_index :participates, :event_id
11
- add_index :participates, :agent_id
12
- end
13
-
14
- def self.down
15
- drop_table :participates
16
- end
17
- end
@@ -1,15 +0,0 @@
1
- class AddAttachmentsInventoryToInventoryFile < ActiveRecord::Migration
2
- def self.up
3
- add_column :inventory_files, :inventory_file_name, :string
4
- add_column :inventory_files, :inventory_content_type, :string
5
- add_column :inventory_files, :inventory_file_size, :integer
6
- add_column :inventory_files, :inventory_updated_at, :datetime
7
- end
8
-
9
- def self.down
10
- remove_column :inventory_files, :inventory_file_name
11
- remove_column :inventory_files, :inventory_content_type
12
- remove_column :inventory_files, :inventory_file_size
13
- remove_column :inventory_files, :inventory_updated_at
14
- end
15
- end
@@ -1,21 +0,0 @@
1
- class CreateDelayedJobs < ActiveRecord::Migration
2
- def self.up
3
- create_table :delayed_jobs, :force => true do |table|
4
- table.integer :priority, :default => 0 # Allows some jobs to jump to the front of the queue
5
- table.integer :attempts, :default => 0 # Provides for retries, but still fail eventually.
6
- table.text :handler # YAML-encoded string of the object that will do work
7
- table.text :last_error # reason for last failure (See Note below)
8
- table.datetime :run_at # When to run. Could be Time.zone.now for immediately, or sometime in the future.
9
- table.datetime :locked_at # Set when a client is working on this object
10
- table.datetime :failed_at # Set when all retries have failed (actually, by default, the record is deleted instead)
11
- table.string :locked_by # Who is working on this object (if locked)
12
- table.timestamps
13
- end
14
-
15
- add_index :delayed_jobs, [:priority, :run_at], :name => 'delayed_jobs_priority'
16
- end
17
-
18
- def self.down
19
- drop_table :delayed_jobs
20
- end
21
- end
@@ -1,15 +0,0 @@
1
- class CreateEventImportResults < ActiveRecord::Migration
2
- def self.up
3
- create_table :event_import_results do |t|
4
- t.integer :event_import_file_id
5
- t.integer :event_id
6
- t.text :body
7
-
8
- t.timestamps
9
- end
10
- end
11
-
12
- def self.down
13
- drop_table :event_import_results
14
- end
15
- end
@@ -1,9 +0,0 @@
1
- class AddIssnToSeriesStatement < ActiveRecord::Migration
2
- def self.up
3
- add_column :series_statements, :issn, :string
4
- end
5
-
6
- def self.down
7
- remove_column :series_statements, :issn
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- class AddPeriodicalToSeriesStatement < ActiveRecord::Migration
2
- def self.up
3
- add_column :series_statements, :periodical, :boolean, :default => false, :null => false
4
- end
5
-
6
- def self.down
7
- remove_column :series_statements, :periodical
8
- end
9
- end
@@ -1,13 +0,0 @@
1
- class CreateSeriesHasManifestations < ActiveRecord::Migration
2
- def change
3
- create_table :series_has_manifestations do |t|
4
- t.integer :series_statement_id
5
- t.integer :manifestation_id
6
- t.integer :position
7
-
8
- t.timestamps
9
- end
10
- add_index :series_has_manifestations, :series_statement_id
11
- add_index :series_has_manifestations, :manifestation_id
12
- end
13
- end
@@ -1,11 +0,0 @@
1
- class AddLftAndRgtToMessage < ActiveRecord::Migration
2
- def self.up
3
- add_column :messages, :lft, :integer
4
- add_column :messages, :rgt, :integer
5
- end
6
-
7
- def self.down
8
- remove_column :messages, :rgt
9
- remove_column :messages, :lft
10
- end
11
- end
@@ -1,13 +0,0 @@
1
- class RenameManifestationNumberListToNumberString < ActiveRecord::Migration
2
- def self.up
3
- rename_column :manifestations, :volume_number_list, :volume_number_string
4
- rename_column :manifestations, :issue_number_list, :issue_number_string
5
- rename_column :manifestations, :serial_number_list, :serial_number_string
6
- end
7
-
8
- def self.down
9
- rename_column :manifestations, :serial_number_string, :serial_number_list
10
- rename_column :manifestations, :issue_number_string, :issue_number_list
11
- rename_column :manifestations, :volume_number_string, :volume_number_list
12
- end
13
- end
@@ -1,9 +0,0 @@
1
- class AddNdcToManifestation < ActiveRecord::Migration
2
- def self.up
3
- add_column :manifestations, :ndc, :string
4
- end
5
-
6
- def self.down
7
- remove_column :manifestations, :ndc
8
- end
9
- end
@@ -1,12 +0,0 @@
1
- class CreateRoles < ActiveRecord::Migration
2
- def change
3
- create_table :roles do |t|
4
- t.string :name
5
- t.text :display_name
6
- t.text :note
7
- t.integer :position
8
-
9
- t.timestamps
10
- end
11
- end
12
- end
@@ -1,8 +0,0 @@
1
- class CreateUsers < ActiveRecord::Migration
2
- def change
3
- create_table :users do |t|
4
-
5
- t.timestamps
6
- end
7
- end
8
- end
@@ -1,9 +0,0 @@
1
- class AddQueueToDelayedJobs < ActiveRecord::Migration
2
- def self.up
3
- add_column :delayed_jobs, :queue, :string
4
- end
5
-
6
- def self.down
7
- remove_column :delayed_jobs, :queue
8
- end
9
- end
@@ -1,6 +0,0 @@
1
- class AddDepthToMessage < ActiveRecord::Migration
2
- def change
3
- add_column :messages, :depth, :integer
4
-
5
- end
6
- end
@@ -1,5 +0,0 @@
1
- class AddEventImportFingerprintToEventImportFile < ActiveRecord::Migration
2
- def change
3
- add_column :event_import_files, :event_import_fingerprint, :string
4
- end
5
- end
@@ -1,5 +0,0 @@
1
- class AddFingerprintToInventoryFile < ActiveRecord::Migration
2
- def change
3
- add_column :inventory_files, :inventory_fingerprint, :string
4
- end
5
- end
@@ -1,5 +0,0 @@
1
- class AddErrorMessageToEventImportFile < ActiveRecord::Migration
2
- def change
3
- add_column :event_import_files, :error_message, :text
4
- end
5
- end
@@ -1,9 +0,0 @@
1
- class RenameResourceImportFileImportedAtToExecutedAt < ActiveRecord::Migration
2
- def up
3
- rename_column :resource_import_files, :imported_at, :executed_at
4
- end
5
-
6
- def down
7
- rename_column :resource_import_files, :executed_at, :imported_at
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- class RenameEventImportFileImportedAtToExecutedAt < ActiveRecord::Migration
2
- def up
3
- rename_column :event_import_files, :imported_at, :executed_at
4
- end
5
-
6
- def down
7
- rename_column :event_import_files, :executed_at, :impored_at
8
- end
9
- end
@@ -1,11 +0,0 @@
1
- class CreateSeriesStatementRelationships < ActiveRecord::Migration
2
- def change
3
- create_table :series_statement_relationships do |t|
4
- t.integer :parent_id
5
- t.integer :child_id
6
- t.integer :position
7
-
8
- t.timestamps
9
- end
10
- end
11
- end
@@ -1,5 +0,0 @@
1
- class AddStateIndexToReserve < ActiveRecord::Migration
2
- def change
3
- add_index :reserves, :state
4
- end
5
- end
@@ -1,14 +0,0 @@
1
- class CreateItemTransitions < ActiveRecord::Migration
2
- def change
3
- create_table :item_transitions do |t|
4
- t.string :to_state
5
- t.text :metadata, default: "{}"
6
- t.integer :sort_key
7
- t.integer :item_id
8
- t.timestamps
9
- end
10
-
11
- add_index :item_transitions, :item_id
12
- add_index :item_transitions, [:sort_key, :item_id], unique: true
13
- end
14
- end