enju_event 0.0.27 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (168) hide show
  1. data/MIT-LICENSE +1 -1
  2. data/Rakefile +1 -11
  3. data/app/controllers/calendar_controller.rb +1 -1
  4. data/app/controllers/event_categories_controller.rb +1 -1
  5. data/app/controllers/event_import_files_controller.rb +15 -15
  6. data/app/controllers/event_import_results_controller.rb +1 -1
  7. data/app/controllers/events_controller.rb +16 -16
  8. data/app/controllers/participates_controller.rb +3 -3
  9. data/app/models/event.rb +2 -4
  10. data/app/models/event_category.rb +0 -1
  11. data/app/models/event_import_file.rb +33 -106
  12. data/app/models/event_import_result.rb +0 -1
  13. data/app/models/participate.rb +0 -1
  14. data/app/views/event_categories/index.html.erb +2 -2
  15. data/app/views/event_import_files/index.html.erb +4 -4
  16. data/app/views/event_import_files/new.html.erb +2 -0
  17. data/app/views/event_import_files/show.html.erb +3 -8
  18. data/app/views/event_import_results/index.html.erb +2 -2
  19. data/app/views/events/_form.html.erb +1 -1
  20. data/app/views/events/index.html.erb +8 -8
  21. data/app/views/events/index.mobile.erb +6 -6
  22. data/app/views/events/index.rss.builder +2 -2
  23. data/app/views/participates/index.html.erb +2 -2
  24. data/config/locales/translation_en.yml +1 -2
  25. data/config/locales/translation_ja.yml +1 -2
  26. data/config/routes.rb +0 -3
  27. data/db/migrate/20120413051535_add_event_fingerprint_to_event_import_file.rb +5 -0
  28. data/lib/enju_event.rb +0 -17
  29. data/lib/enju_event/engine.rb +9 -2
  30. data/lib/enju_event/version.rb +1 -1
  31. data/spec/dummy/app/models/country.rb +44 -0
  32. data/spec/dummy/app/models/language.rb +4 -0
  33. data/spec/dummy/app/models/library.rb +128 -0
  34. data/spec/dummy/app/models/library_group.rb +86 -0
  35. data/spec/dummy/app/models/patron.rb +163 -0
  36. data/spec/dummy/app/models/patron_type.rb +19 -0
  37. data/spec/dummy/app/models/role.rb +1 -39
  38. data/spec/dummy/app/models/shelf.rb +54 -0
  39. data/spec/dummy/app/models/user.rb +10 -61
  40. data/spec/dummy/app/models/user_group.rb +0 -38
  41. data/spec/dummy/app/models/user_has_role.rb +0 -1
  42. data/spec/dummy/config/application.rb +1 -3
  43. data/spec/dummy/config/initializers/devise.rb +4 -0
  44. data/spec/dummy/config/initializers/mime_types.rb +1 -0
  45. data/spec/dummy/db/development.sqlite3 +0 -0
  46. data/spec/dummy/db/migrate/001_create_patrons.rb +10 -1
  47. data/spec/dummy/db/migrate/20080905191442_create_patron_types.rb +5 -1
  48. data/spec/dummy/db/migrate/20081025083905_create_languages.rb +5 -1
  49. data/spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb +10 -31
  50. data/spec/dummy/db/schema.rb +20 -494
  51. data/spec/dummy/db/test.sqlite3 +0 -0
  52. data/spec/dummy/lib/enju_leaf.rb +4 -0
  53. data/spec/dummy/lib/enju_leaf/import_file.rb +13 -0
  54. data/spec/dummy/lib/enju_leaf/localized_name.rb +13 -0
  55. data/spec/dummy/lib/enju_leaf/master_model.rb +41 -0
  56. data/spec/dummy/lib/enju_leaf/url_validator.rb +10 -0
  57. data/spec/dummy/private/system/event_import_files/event_imports/000/000/004/original/event_import_file_sample1.tsv +1 -1
  58. data/spec/dummy/private/system/event_import_files/event_imports/000/000/004/original/event_import_file_sample2.tsv +1 -1
  59. data/spec/dummy/private/system/event_imports/4/original/event_import_file_sample1.tsv +1 -1
  60. data/spec/dummy/private/system/event_imports/4/original/event_import_file_sample2.tsv +1 -1
  61. data/spec/dummy/solr/data/test/index/segments.gen +0 -0
  62. data/spec/dummy/solr/data/test/index/segments_1 +0 -0
  63. data/spec/fixtures/event_import_files.yml +4 -6
  64. data/spec/models/event_import_file_spec.rb +4 -38
  65. metadata +123 -329
  66. data/db/migrate/20120413051535_add_event_import_fingerprint_to_event_import_file.rb +0 -5
  67. data/db/migrate/20120413170734_add_error_message_to_event_import_file.rb +0 -5
  68. data/db/migrate/20120415060342_rename_event_import_file_imported_at_to_executed_at.rb +0 -9
  69. data/spec/controllers/calendar_controller_spec.rb +0 -57
  70. data/spec/dummy/db/migrate/005_create_manifestations.rb +0 -56
  71. data/spec/dummy/db/migrate/006_create_items.rb +0 -28
  72. data/spec/dummy/db/migrate/012_create_owns.rb +0 -12
  73. data/spec/dummy/db/migrate/015_create_creates.rb +0 -12
  74. data/spec/dummy/db/migrate/047_create_produces.rb +0 -12
  75. data/spec/dummy/db/migrate/073_create_carrier_types.rb +0 -11
  76. data/spec/dummy/db/migrate/112_create_frequencies.rb +0 -12
  77. data/spec/dummy/db/migrate/117_create_form_of_works.rb +0 -12
  78. data/spec/dummy/db/migrate/125_create_donates.rb +0 -12
  79. data/spec/dummy/db/migrate/20080830154109_create_realizes.rb +0 -13
  80. data/spec/dummy/db/migrate/20080830172106_create_exemplifies.rb +0 -13
  81. data/spec/dummy/db/migrate/20081027150907_create_picture_files.rb +0 -15
  82. data/spec/dummy/db/migrate/20081028083142_create_patron_import_files.rb +0 -22
  83. data/spec/dummy/db/migrate/20081028083208_create_resource_import_files.rb +0 -22
  84. data/spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb +0 -15
  85. data/spec/dummy/db/migrate/20090705212043_add_attachments_attachment_to_manifestation.rb +0 -15
  86. data/spec/dummy/db/migrate/20090719201843_create_extents.rb +0 -12
  87. data/spec/dummy/db/migrate/20090720091106_create_medium_of_performances.rb +0 -12
  88. data/spec/dummy/db/migrate/20090720091429_create_content_types.rb +0 -12
  89. data/spec/dummy/db/migrate/20090812151902_create_patron_relationship_types.rb +0 -12
  90. data/spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb +0 -27
  91. data/spec/dummy/db/migrate/20091025080447_create_licenses.rb +0 -12
  92. data/spec/dummy/db/migrate/20091202124834_create_versions.rb +0 -18
  93. data/spec/dummy/db/migrate/20091214131723_create_series_statements.rb +0 -13
  94. data/spec/dummy/db/migrate/20100129142347_create_import_requests.rb +0 -15
  95. data/spec/dummy/db/migrate/20100223121519_rename_series_statement_title_to_original_title.rb +0 -13
  96. data/spec/dummy/db/migrate/20100321235924_add_series_statement_identifier_to_series_statement.rb +0 -10
  97. data/spec/dummy/db/migrate/20100525124311_create_manifestation_relationships.rb +0 -13
  98. data/spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb +0 -13
  99. data/spec/dummy/db/migrate/20100607044753_create_manifestation_relationship_types.rb +0 -12
  100. data/spec/dummy/db/migrate/20100814091104_add_position_to_patron_relationship.rb +0 -11
  101. data/spec/dummy/db/migrate/20100925043847_create_resource_import_results.rb +0 -15
  102. data/spec/dummy/db/migrate/20100925074559_create_patron_import_results.rb +0 -12
  103. data/spec/dummy/db/migrate/20101212070145_add_acquired_at_to_item.rb +0 -9
  104. data/spec/dummy/db/migrate/20110301035123_add_pub_date_to_manifestation.rb +0 -9
  105. data/spec/dummy/db/migrate/20110301121550_add_birth_date_and_death_date_to_patron.rb +0 -11
  106. data/spec/dummy/db/migrate/20110425133109_add_issn_to_series_statement.rb +0 -9
  107. data/spec/dummy/db/migrate/20110618091240_add_periodical_to_series_statement.rb +0 -9
  108. data/spec/dummy/db/migrate/20110619064807_add_edition_string_to_manifestation.rb +0 -9
  109. data/spec/dummy/db/migrate/20110620173525_add_bookstore_id_to_item.rb +0 -11
  110. data/spec/dummy/db/migrate/20110627034940_create_series_statement_merge_lists.rb +0 -9
  111. data/spec/dummy/db/migrate/20110627035057_create_series_statement_merges.rb +0 -12
  112. data/spec/dummy/db/migrate/20110820131417_create_series_has_manifestations.rb +0 -13
  113. data/spec/dummy/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb +0 -13
  114. data/spec/dummy/db/migrate/20110916091020_add_volume_number_to_manifestation.rb +0 -13
  115. data/spec/dummy/db/migrate/20110916103953_add_manifestaiton_id_to_series_statement.rb +0 -10
  116. data/spec/dummy/db/migrate/20110918161853_rename_series_statement_manifestation_id_to_root_manifestation_id.rb +0 -13
  117. data/spec/dummy/db/migrate/20110918162329_add_note_to_series_statement.rb +0 -9
  118. data/spec/dummy/db/migrate/20111009183423_add_ndc_to_manifestation.rb +0 -9
  119. data/spec/dummy/db/migrate/20111124110059_create_create_types.rb +0 -12
  120. data/spec/dummy/db/migrate/20111124110319_create_realize_types.rb +0 -12
  121. data/spec/dummy/db/migrate/20111124110355_create_produce_types.rb +0 -12
  122. data/spec/dummy/db/migrate/20111124112131_add_create_type_to_create.rb +0 -7
  123. data/spec/dummy/db/migrate/20120125152919_add_title_subseries_transcription_to_series_statement.rb +0 -6
  124. data/spec/dummy/db/migrate/20120129020544_add_budget_type_id_to_item.rb +0 -6
  125. data/spec/dummy/db/migrate/20120319120638_add_content_type_id_to_manifestation.rb +0 -6
  126. data/spec/dummy/db/migrate/20120410104851_add_year_of_publication_to_manifestation.rb +0 -5
  127. data/spec/dummy/db/migrate/20120413072700_add_picture_meta_to_picture_file.rb +0 -5
  128. data/spec/dummy/db/migrate/20120413100352_add_fingerprint_to_picture_file.rb +0 -5
  129. data/spec/dummy/db/migrate/20120413161340_add_fingerprint_to_resource_import_file.rb +0 -5
  130. data/spec/dummy/db/migrate/20120413161403_add_fingerprint_to_patron_import_file.rb +0 -5
  131. data/spec/dummy/db/migrate/20120413170705_add_error_message_to_resource_import_file.rb +0 -5
  132. data/spec/dummy/db/migrate/20120413170720_add_error_message_to_patron_import_file.rb +0 -5
  133. data/spec/dummy/db/migrate/20120415060308_rename_resource_import_file_imported_at_to_executed_at.rb +0 -9
  134. data/spec/dummy/db/migrate/20120415060323_rename_patron_import_file_imported_at_to_executed_at.rb +0 -9
  135. data/spec/dummy/db/migrate/20120415164821_add_attachment_meta_to_manifestation.rb +0 -5
  136. data/spec/dummy/db/migrate/20120418081407_add_month_of_publication_to_manifestation.rb +0 -5
  137. data/spec/dummy/db/migrate/20120602141129_add_edit_mode_to_patron_import_file.rb +0 -5
  138. data/spec/dummy/private/system/event_import_files/event_imports/000/000/004/original/event_destroy_file.tsv +0 -4
  139. data/spec/dummy/private/system/event_import_files/event_imports/000/000/004/original/event_update_file.tsv +0 -4
  140. data/spec/dummy/private/system/event_imports/4/original/event_destroy_file.tsv +0 -4
  141. data/spec/dummy/private/system/event_imports/4/original/event_update_file.tsv +0 -4
  142. data/spec/dummy/solr/data/test/index/_5l.fdt +0 -0
  143. data/spec/dummy/solr/data/test/index/_5l.fdx +0 -0
  144. data/spec/dummy/solr/data/test/index/_5l.fnm +0 -4
  145. data/spec/dummy/solr/data/test/index/_5l.frq +0 -0
  146. data/spec/dummy/solr/data/test/index/_5l.nrm +0 -1
  147. data/spec/dummy/solr/data/test/index/_5l.prx +0 -0
  148. data/spec/dummy/solr/data/test/index/_5l.tii +0 -0
  149. data/spec/dummy/solr/data/test/index/_5l.tis +0 -0
  150. data/spec/dummy/solr/data/test/index/_5l_1.del +0 -0
  151. data/spec/dummy/solr/data/test/index/_5m.fdt +0 -0
  152. data/spec/dummy/solr/data/test/index/_5m.fdx +0 -0
  153. data/spec/dummy/solr/data/test/index/_5m.fnm +0 -4
  154. data/spec/dummy/solr/data/test/index/_5m.frq +0 -0
  155. data/spec/dummy/solr/data/test/index/_5m.nrm +0 -1
  156. data/spec/dummy/solr/data/test/index/_5m.prx +0 -0
  157. data/spec/dummy/solr/data/test/index/_5m.tii +0 -0
  158. data/spec/dummy/solr/data/test/index/_5m.tis +0 -0
  159. data/spec/dummy/solr/data/test/index/_5m_1.del +0 -0
  160. data/spec/dummy/solr/data/test/index/_5n.fdt +0 -0
  161. data/spec/dummy/solr/data/test/index/_5n.fdx +0 -0
  162. data/spec/dummy/solr/data/test/index/_5n.fnm +0 -4
  163. data/spec/dummy/solr/data/test/index/_5n.frq +0 -0
  164. data/spec/dummy/solr/data/test/index/_5n.nrm +0 -1
  165. data/spec/dummy/solr/data/test/index/_5n.prx +0 -0
  166. data/spec/dummy/solr/data/test/index/_5n.tii +0 -0
  167. data/spec/dummy/solr/data/test/index/_5n.tis +0 -0
  168. data/spec/dummy/solr/data/test/index/segments_6l +0 -0
@@ -1,27 +0,0 @@
1
- class AddDcndlSchema < ActiveRecord::Migration
2
- def self.up
3
- add_column :manifestations, :title_alternative_transcription, :text
4
- add_column :patrons, :full_name_alternative_transcription, :text
5
- add_column :manifestations, :description, :text
6
- add_column :manifestations, :abstract, :text
7
- add_column :manifestations, :available_at, :timestamp
8
- add_column :manifestations, :valid_until, :timestamp
9
- add_column :manifestations, :date_submitted, :timestamp
10
- add_column :manifestations, :date_accepted, :timestamp
11
- add_column :manifestations, :date_caputured, :timestamp
12
- rename_column :manifestations, :copyright_date, :date_copyrighted
13
- end
14
-
15
- def self.down
16
- remove_column :manifestations, :title_alternative_transcription
17
- remove_column :patrons, :full_name_alternative_transcription
18
- remove_column :manifestations, :description
19
- remove_column :manifestations, :abstract
20
- remove_column :manifestations, :available_at
21
- remove_column :manifestations, :valid_until
22
- remove_column :manifestations, :date_submitted
23
- remove_column :manifestations, :date_accepted
24
- remove_column :manifestations, :date_caputured
25
- rename_column :manifestations, :date_copyrighted, :copyright_date
26
- end
27
- end
@@ -1,12 +0,0 @@
1
- class CreateLicenses < ActiveRecord::Migration
2
- def change
3
- create_table :licenses do |t|
4
- t.string :name, :null => false
5
- t.string :display_name
6
- t.text :note
7
- t.integer :position
8
-
9
- t.timestamps
10
- end
11
- end
12
- end
@@ -1,18 +0,0 @@
1
- class CreateVersions < ActiveRecord::Migration
2
- def self.up
3
- create_table :versions do |t|
4
- t.string :item_type, :null => false
5
- t.integer :item_id, :null => false
6
- t.string :event, :null => false
7
- t.string :whodunnit
8
- t.text :object
9
- t.datetime :created_at
10
- end
11
- add_index :versions, [:item_type, :item_id]
12
- end
13
-
14
- def self.down
15
- remove_index :versions, [:item_type, :item_id]
16
- drop_table :versions
17
- end
18
- end
@@ -1,13 +0,0 @@
1
- class CreateSeriesStatements < ActiveRecord::Migration
2
- def change
3
- create_table :series_statements do |t|
4
- t.text :title
5
- t.text :numbering
6
- t.text :title_subseries
7
- t.text :numbering_subseries
8
- t.integer :position
9
-
10
- t.timestamps
11
- end
12
- end
13
- end
@@ -1,15 +0,0 @@
1
- class CreateImportRequests < ActiveRecord::Migration
2
- def change
3
- create_table :import_requests do |t|
4
- t.string :isbn
5
- t.string :state
6
- t.integer :manifestation_id
7
- t.integer :user_id
8
-
9
- t.timestamps
10
- end
11
- add_index :import_requests, :isbn
12
- add_index :import_requests, :manifestation_id
13
- add_index :import_requests, :user_id
14
- end
15
- end
@@ -1,13 +0,0 @@
1
- class RenameSeriesStatementTitleToOriginalTitle < ActiveRecord::Migration
2
- def self.up
3
- rename_column :series_statements, :title, :original_title
4
- add_column :series_statements, :title_transcription, :text
5
- add_column :series_statements, :title_alternative, :text
6
- end
7
-
8
- def self.down
9
- rename_column :series_statements, :original_title, :title
10
- remove_column :series_statements, :title_transcription
11
- remove_column :series_statements, :title_alternative
12
- end
13
- end
@@ -1,10 +0,0 @@
1
- class AddSeriesStatementIdentifierToSeriesStatement < ActiveRecord::Migration
2
- def self.up
3
- add_column :series_statements, :series_statement_identifier, :string
4
- add_index :series_statements, :series_statement_identifier
5
- end
6
-
7
- def self.down
8
- remove_column :series_statements, :series_statement_identifier
9
- end
10
- end
@@ -1,13 +0,0 @@
1
- class CreateManifestationRelationships < ActiveRecord::Migration
2
- def change
3
- create_table :manifestation_relationships do |t|
4
- t.integer :parent_id
5
- t.integer :child_id
6
- t.integer :manifestation_relationship_type_id
7
-
8
- t.timestamps
9
- end
10
- add_index :manifestation_relationships, :parent_id
11
- add_index :manifestation_relationships, :child_id
12
- end
13
- end
@@ -1,13 +0,0 @@
1
- class CreatePatronRelationships < ActiveRecord::Migration
2
- def change
3
- create_table :patron_relationships do |t|
4
- t.integer :parent_id
5
- t.integer :child_id
6
- t.integer :patron_relationship_type_id
7
-
8
- t.timestamps
9
- end
10
- add_index :patron_relationships, :parent_id
11
- add_index :patron_relationships, :child_id
12
- end
13
- end
@@ -1,12 +0,0 @@
1
- class CreateManifestationRelationshipTypes < ActiveRecord::Migration
2
- def change
3
- create_table :manifestation_relationship_types 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
- end
@@ -1,11 +0,0 @@
1
- class AddPositionToPatronRelationship < ActiveRecord::Migration
2
- def self.up
3
- add_column :manifestation_relationships, :position, :integer
4
- add_column :patron_relationships, :position, :integer
5
- end
6
-
7
- def self.down
8
- remove_column :patron_relationships, :position
9
- remove_column :manifestation_relationships, :position
10
- end
11
- end
@@ -1,15 +0,0 @@
1
- class CreateResourceImportResults < ActiveRecord::Migration
2
- def change
3
- create_table :resource_import_results do |t|
4
- t.integer :resource_import_file_id
5
- t.integer :manifestation_id
6
- t.integer :item_id
7
- t.text :body
8
-
9
- t.timestamps
10
- end
11
- add_index :resource_import_results, :resource_import_file_id
12
- add_index :resource_import_results, :manifestation_id
13
- add_index :resource_import_results, :item_id
14
- end
15
- end
@@ -1,12 +0,0 @@
1
- class CreatePatronImportResults < ActiveRecord::Migration
2
- def change
3
- create_table :patron_import_results do |t|
4
- t.integer :patron_import_file_id
5
- t.integer :patron_id
6
- t.integer :user_id
7
- t.text :body
8
-
9
- t.timestamps
10
- end
11
- end
12
- end
@@ -1,9 +0,0 @@
1
- class AddAcquiredAtToItem < ActiveRecord::Migration
2
- def self.up
3
- add_column :items, :acquired_at, :timestamp
4
- end
5
-
6
- def self.down
7
- remove_column :items, :acquired_at
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- class AddPubDateToManifestation < ActiveRecord::Migration
2
- def self.up
3
- add_column :manifestations, :pub_date, :string
4
- end
5
-
6
- def self.down
7
- remove_column :manifestations, :pub_date
8
- end
9
- end
@@ -1,11 +0,0 @@
1
- class AddBirthDateAndDeathDateToPatron < ActiveRecord::Migration
2
- def self.up
3
- add_column :patrons, :birth_date, :string
4
- add_column :patrons, :death_date, :string
5
- end
6
-
7
- def self.down
8
- remove_column :patrons, :death_date
9
- remove_column :patrons, :birth_date
10
- end
11
- 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
4
- end
5
-
6
- def self.down
7
- remove_column :series_statements, :periodical
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- class AddEditionStringToManifestation < ActiveRecord::Migration
2
- def self.up
3
- add_column :manifestations, :edition_string, :string
4
- end
5
-
6
- def self.down
7
- remove_column :manifestations, :edition_string
8
- end
9
- end
@@ -1,11 +0,0 @@
1
- class AddBookstoreIdToItem < ActiveRecord::Migration
2
- def self.up
3
- add_column :items, :bookstore_id, :integer
4
- add_index :items, :bookstore_id
5
- end
6
-
7
- def self.down
8
- remove_index :items, :bookstore_id
9
- remove_column :items, :bookstore_id
10
- end
11
- end
@@ -1,9 +0,0 @@
1
- class CreateSeriesStatementMergeLists < ActiveRecord::Migration
2
- def change
3
- create_table :series_statement_merge_lists do |t|
4
- t.string :title
5
-
6
- t.timestamps
7
- end
8
- end
9
- end
@@ -1,12 +0,0 @@
1
- class CreateSeriesStatementMerges < ActiveRecord::Migration
2
- def change
3
- create_table :series_statement_merges do |t|
4
- t.integer :series_statement_id, :null => false
5
- t.integer :series_statement_merge_list_id, :null => false
6
-
7
- t.timestamps
8
- end
9
- add_index :series_statement_merges, :series_statement_id
10
- add_index :series_statement_merges, :series_statement_merge_list_id
11
- end
12
- 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,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,13 +0,0 @@
1
- class AddVolumeNumberToManifestation < ActiveRecord::Migration
2
- def self.up
3
- add_column :manifestations, :volume_number, :integer
4
- add_column :manifestations, :issue_number, :integer
5
- add_column :manifestations, :serial_number, :integer
6
- end
7
-
8
- def self.down
9
- remove_column :manifestations, :serial_number
10
- remove_column :manifestations, :issue_number
11
- remove_column :manifestations, :volume_number
12
- end
13
- end
@@ -1,10 +0,0 @@
1
- class AddManifestaitonIdToSeriesStatement < ActiveRecord::Migration
2
- def self.up
3
- add_column :series_statements, :manifestation_id, :integer
4
- add_index :series_statements, :manifestation_id
5
- end
6
-
7
- def self.down
8
- remove_column :series_statements, :manifestation_id
9
- end
10
- end
@@ -1,13 +0,0 @@
1
- class RenameSeriesStatementManifestationIdToRootManifestationId < ActiveRecord::Migration
2
- def self.up
3
- remove_index :series_statements, :series_statement_identifier
4
- rename_column :series_statements, :manifestation_id, :root_manifestation_id
5
- add_index :series_statements, :series_statement_identifier
6
- end
7
-
8
- def self.down
9
- remove_index :series_statements, :series_statement_identifier
10
- rename_column :series_statements, :root_manifestation_id, :manifestation_id
11
- add_index :series_statements, :series_statement_identifier
12
- end
13
- end
@@ -1,9 +0,0 @@
1
- class AddNoteToSeriesStatement < ActiveRecord::Migration
2
- def self.up
3
- add_column :series_statements, :note, :text
4
- end
5
-
6
- def self.down
7
- remove_column :series_statements, :note
8
- end
9
- 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 CreateCreateTypes < ActiveRecord::Migration
2
- def change
3
- create_table :create_types 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,12 +0,0 @@
1
- class CreateRealizeTypes < ActiveRecord::Migration
2
- def change
3
- create_table :realize_types 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,12 +0,0 @@
1
- class CreateProduceTypes < ActiveRecord::Migration
2
- def change
3
- create_table :produce_types 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