enju_message 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/app/models/message.rb +1 -1
  3. data/app/models/message_request.rb +1 -1
  4. data/app/models/message_request_transition.rb +1 -1
  5. data/app/models/message_transition.rb +1 -1
  6. data/db/migrate/20180107162659_add_constraints_to_most_recent_for_message_transitions.rb +13 -0
  7. data/db/migrate/20180107162711_add_constraints_to_most_recent_for_message_request_transitions.rb +13 -0
  8. data/lib/enju_message/version.rb +1 -1
  9. data/spec/dummy/db/migrate/059_create_libraries.rb +7 -9
  10. data/spec/dummy/db/migrate/069_create_shelves.rb +3 -4
  11. data/spec/dummy/db/migrate/080_create_library_groups.rb +2 -3
  12. data/spec/dummy/db/migrate/120_create_baskets.rb +2 -3
  13. data/spec/dummy/db/migrate/20081006090811_create_subscriptions.rb +4 -7
  14. data/spec/dummy/db/migrate/20081006093246_create_subscribes.rb +4 -5
  15. data/spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb +2 -2
  16. data/spec/dummy/db/migrate/20120319173203_create_accepts.rb +3 -6
  17. data/spec/dummy/db/migrate/20140110122216_create_user_import_files.rb +1 -1
  18. data/spec/dummy/db/migrate/20140110131010_create_user_import_results.rb +2 -2
  19. data/spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb +1 -2
  20. data/spec/dummy/db/migrate/20140709113413_create_user_export_files.rb +1 -1
  21. data/spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb +1 -1
  22. data/spec/dummy/db/migrate/20140720170714_add_default_library_id_to_user_import_file.rb +1 -1
  23. data/spec/dummy/db/migrate/20140720170735_add_default_user_group_id_to_user_import_file.rb +1 -1
  24. data/spec/dummy/db/migrate/20140821151023_create_colors.rb +1 -3
  25. data/spec/dummy/db/migrate/20150117111136_add_foreign_key_to_items_referencing_manifestations.rb +5 -0
  26. data/spec/dummy/db/migrate/20150924115059_create_withdraws.rb +3 -5
  27. data/spec/dummy/db/migrate/20151125004028_add_profile_id_to_agent.rb +6 -0
  28. data/spec/dummy/db/migrate/20151213070943_add_translation_table_to_library_group.rb +19 -6
  29. data/spec/dummy/db/migrate/20151213072705_add_footer_banner_to_library_group.rb +15 -2
  30. data/spec/dummy/db/migrate/20160801080612_add_most_recent_to_import_request_transitions.rb +9 -0
  31. data/spec/dummy/db/migrate/20160801080619_add_most_recent_to_resource_import_file_transitions.rb +9 -0
  32. data/spec/dummy/db/migrate/20160801080637_add_most_recent_to_resource_export_file_transitions.rb +9 -0
  33. data/spec/dummy/db/migrate/20160801080643_add_most_recent_to_agent_import_file_transitions.rb +9 -0
  34. data/spec/dummy/db/migrate/20160811102604_add_picture_width_to_picture_file.rb +6 -0
  35. data/spec/dummy/db/migrate/20160820004638_add_attachment_attachment_to_carrier_types.rb +11 -0
  36. data/spec/dummy/db/migrate/20171119051258_set_not_null_to_manifestation_id_on_items.rb +5 -0
  37. data/spec/dummy/db/migrate/20180102162311_add_header_logo_meta_to_library_group.rb +5 -0
  38. data/spec/dummy/db/migrate/20180107160726_add_constraints_to_most_recent_for_user_import_file_transitions.rb +13 -0
  39. data/spec/dummy/db/migrate/20180107160740_add_constraints_to_most_recent_for_user_export_file_transitions.rb +13 -0
  40. data/spec/dummy/db/migrate/20180107161311_add_constraints_to_most_recent_for_agent_import_file_transitions.rb +13 -0
  41. data/spec/dummy/db/migrate/20180107161331_add_constraints_to_most_recent_for_resource_import_file_transitions.rb +13 -0
  42. data/spec/dummy/db/migrate/20180107161347_add_constraints_to_most_recent_for_resource_export_file_transitions.rb +13 -0
  43. data/spec/dummy/db/migrate/20180107161410_add_constraints_to_most_recent_for_import_request_transitions.rb +13 -0
  44. data/spec/dummy/db/schema.rb +42 -11
  45. data/spec/fixtures/message_request_transitions.yml +1 -1
  46. metadata +39 -6
  47. data/lib/generators/enju_message/update/update_generator.rb +0 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fb3a849e9c31f0867bbccac8878932e6c5ad6a37
4
- data.tar.gz: d5ea5c1c3b6b741b1dbe274c3883ebbc0324f86e
3
+ metadata.gz: b3331d61ef8da31c2128f7686a3cdcc9c5103ac1
4
+ data.tar.gz: 413ff20e2bc783aeeda56c4bd310a747c1aafc41
5
5
  SHA512:
6
- metadata.gz: db9f9b8ffbcb0150781662824d986ce72bc1f9fe667c1fac89367272c55511aa4ba96efde4c5ce54d9e2c0be470900fcd850dc7ea397118d1882c38b2fc2a6ee
7
- data.tar.gz: fe3810733225c04c7b7d1e30d87374a8c3098b696abd812009ef76ffa730270423571f8b18c3c503267968e2a515809fd010ae218e8c82c72db6232898c22017
6
+ metadata.gz: de8c7f3430f71773fcd2fd1bc6ad2abf92fcb6a6eb5678748b782c9e96005831a13350c4057a435164e1b6909d66f47c7d299d0a8236fbb59d5153281a6b5626
7
+ data.tar.gz: 6412dd23c146ab481a3a7a28e8152b947876477233fbca37826a3ef686a2d4e66f6a476f8807af0671ccc2bd7df7797355515e1715b899a0d7048a3744b18b2e
@@ -31,7 +31,7 @@ class Message < ActiveRecord::Base
31
31
  end
32
32
 
33
33
  paginates_per 10
34
- has_many :message_transitions
34
+ has_many :message_transitions, autosave: false
35
35
  after_create :set_default_state
36
36
 
37
37
  def state_machine
@@ -14,7 +14,7 @@ class MessageRequest < ActiveRecord::Base
14
14
 
15
15
  paginates_per 10
16
16
 
17
- has_many :message_request_transitions
17
+ has_many :message_request_transitions, autosave: false
18
18
 
19
19
  def state_machine
20
20
  @state_machine ||= MessageRequestStateMachine.new(self, transition_class: MessageRequestTransition)
@@ -17,5 +17,5 @@ end
17
17
  # message_request_id :integer
18
18
  # created_at :datetime
19
19
  # updated_at :datetime
20
- # most_recent :boolean
20
+ # most_recent :boolean not null
21
21
  #
@@ -17,5 +17,5 @@ end
17
17
  # message_id :integer
18
18
  # created_at :datetime
19
19
  # updated_at :datetime
20
- # most_recent :boolean
20
+ # most_recent :boolean not null
21
21
  #
@@ -0,0 +1,13 @@
1
+ class AddConstraintsToMostRecentForMessageTransitions < ActiveRecord::Migration
2
+ disable_ddl_transaction!
3
+
4
+ def up
5
+ add_index :message_transitions, [:message_id, :most_recent], unique: true, where: "most_recent", name: "index_message_transitions_parent_most_recent" #, algorithm: :concurrently
6
+ change_column_null :message_transitions, :most_recent, false
7
+ end
8
+
9
+ def down
10
+ remove_index :message_transitions, name: "index_message_transitions_parent_most_recent"
11
+ change_column_null :message_transitions, :most_recent, true
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ class AddConstraintsToMostRecentForMessageRequestTransitions < ActiveRecord::Migration
2
+ disable_ddl_transaction!
3
+
4
+ def up
5
+ add_index :message_request_transitions, [:message_request_id, :most_recent], unique: true, where: "most_recent", name: "index_message_request_transitions_parent_most_recent" #, algorithm: :concurrently
6
+ change_column_null :message_request_transitions, :most_recent, false
7
+ end
8
+
9
+ def down
10
+ remove_index :message_request_transitions, name: "index_message_request_transitions_parent_most_recent"
11
+ change_column_null :message_request_transitions, :most_recent, true
12
+ end
13
+ end
@@ -1,3 +1,3 @@
1
1
  module EnjuMessage
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
@@ -1,9 +1,9 @@
1
1
  class CreateLibraries < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :libraries do |t|
4
- t.string :name, :null => false
4
+ t.string :name, index: true, null: false
5
5
  t.text :display_name
6
- t.string :short_display_name, :null => false
6
+ t.string :short_display_name, null: false
7
7
  t.string :zip_code
8
8
  t.text :street
9
9
  t.text :locality
@@ -12,17 +12,15 @@ class CreateLibraries < ActiveRecord::Migration
12
12
  t.string :telephone_number_2
13
13
  t.string :fax_number
14
14
  t.text :note
15
- t.integer :call_number_rows, :default => 1, :null => false
16
- t.string :call_number_delimiter, :default => "|", :null => false
17
- t.integer :library_group_id, :default => 1, :null => false
18
- t.integer :users_count, :default => 0, :null => false
15
+ t.integer :call_number_rows, default: 1, null: false
16
+ t.string :call_number_delimiter, default: "|", null: false
17
+ t.references :library_group, index: true, null: false
18
+ t.integer :users_count, default: 0, null: false
19
19
  t.integer :position
20
- t.integer :country_id
20
+ t.references :country
21
21
 
22
22
  t.timestamps
23
23
  t.datetime :deleted_at
24
24
  end
25
- add_index :libraries, :library_group_id
26
- add_index :libraries, :name, :unique => true
27
25
  end
28
26
  end
@@ -1,15 +1,14 @@
1
1
  class CreateShelves < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :shelves do |t|
4
- t.string :name, :null => false
4
+ t.string :name, null: false
5
5
  t.text :display_name
6
6
  t.text :note
7
- t.integer :library_id, :default => 1, :null => false
8
- t.integer :items_count, :default => 0, :null => false
7
+ t.references :library, index: true, null: false
8
+ t.integer :items_count, default: 0, null: false
9
9
  t.integer :position
10
10
  t.timestamps
11
11
  t.datetime :deleted_at
12
12
  end
13
- add_index :shelves, :library_id
14
13
  end
15
14
  end
@@ -1,9 +1,9 @@
1
1
  class CreateLibraryGroups < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :library_groups do |t|
4
- t.string :name, :null => false
4
+ t.string :name, null: false
5
5
  t.text :display_name
6
- t.string :short_name, :null => false
6
+ t.string :short_name, index: true, null: false
7
7
  t.text :my_networks
8
8
  t.text :login_banner
9
9
  t.text :note
@@ -12,6 +12,5 @@ class CreateLibraryGroups < ActiveRecord::Migration
12
12
 
13
13
  t.timestamps
14
14
  end
15
- add_index :library_groups, :short_name
16
15
  end
17
16
  end
@@ -1,12 +1,11 @@
1
1
  class CreateBaskets < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :baskets do |t|
4
- t.integer :user_id
4
+ t.references :user, index: true
5
5
  t.text :note
6
- t.integer :lock_version, :default => 0, :null => false
6
+ t.integer :lock_version, default: 0, null: false
7
7
 
8
8
  t.timestamps
9
9
  end
10
- add_index :baskets, :user_id
11
10
  end
12
11
  end
@@ -1,17 +1,14 @@
1
1
  class CreateSubscriptions < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :subscriptions do |t|
4
- t.text :title, :null => false
4
+ t.text :title, null: false
5
5
  t.text :note
6
- #t.integer :subscription_list_id, :integer
7
- t.integer :user_id
8
- t.integer :order_list_id
6
+ t.references :user, index: true
7
+ t.references :order_list, index: true
9
8
  t.datetime :deleted_at
10
- t.integer :subscribes_count, :default => 0, :null => false
9
+ t.integer :subscribes_count, default: 0, null: false
11
10
 
12
11
  t.timestamps
13
12
  end
14
- add_index :subscriptions, :user_id
15
- add_index :subscriptions, :order_list_id
16
13
  end
17
14
  end
@@ -1,14 +1,13 @@
1
1
  class CreateSubscribes < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :subscribes do |t|
4
- t.integer :subscription_id, :null => false
5
- t.integer :work_id, :null => false
6
- t.datetime :start_at, :null => false
7
- t.datetime :end_at, :null => false
4
+ t.references :subscription, index: true, null: false
5
+ t.integer :work_id, null: false
6
+ t.datetime :start_at, null: false
7
+ t.datetime :end_at, null: false
8
8
 
9
9
  t.timestamps
10
10
  end
11
- add_index :subscribes, :subscription_id
12
11
  add_index :subscribes, :work_id
13
12
  end
14
13
  end
@@ -8,7 +8,7 @@ class AddDcndlSchema < ActiveRecord::Migration
8
8
  add_column :manifestations, :valid_until, :timestamp
9
9
  add_column :manifestations, :date_submitted, :timestamp
10
10
  add_column :manifestations, :date_accepted, :timestamp
11
- add_column :manifestations, :date_caputured, :timestamp
11
+ add_column :manifestations, :date_captured, :timestamp
12
12
  rename_column :manifestations, :copyright_date, :date_copyrighted
13
13
  end
14
14
 
@@ -21,7 +21,7 @@ class AddDcndlSchema < ActiveRecord::Migration
21
21
  remove_column :manifestations, :valid_until
22
22
  remove_column :manifestations, :date_submitted
23
23
  remove_column :manifestations, :date_accepted
24
- remove_column :manifestations, :date_caputured
24
+ remove_column :manifestations, :date_captured
25
25
  rename_column :manifestations, :date_copyrighted, :copyright_date
26
26
  end
27
27
  end
@@ -1,14 +1,11 @@
1
1
  class CreateAccepts < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :accepts do |t|
4
- t.integer :basket_id
5
- t.integer :item_id
6
- t.integer :librarian_id
4
+ t.references :basket, index: true
5
+ t.references :item, index: true
6
+ t.references :librarian, index: true
7
7
 
8
8
  t.timestamps
9
9
  end
10
-
11
- add_index :accepts, :basket_id
12
- add_index :accepts, :item_id
13
10
  end
14
11
  end
@@ -1,7 +1,7 @@
1
1
  class CreateUserImportFiles < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :user_import_files do |t|
4
- t.integer :user_id
4
+ t.references :user, index: true
5
5
  t.text :note
6
6
  t.datetime :executed_at
7
7
  t.string :user_import_file_name
@@ -1,8 +1,8 @@
1
1
  class CreateUserImportResults < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :user_import_results do |t|
4
- t.integer :user_import_file_id
5
- t.integer :user_id
4
+ t.references :user_import_file, index: true
5
+ t.references :user, index: true
6
6
  t.text :body
7
7
 
8
8
  t.timestamps
@@ -8,11 +8,10 @@ class CreateUserImportFileTransitions < ActiveRecord::Migration
8
8
  t.text :metadata, default: "{}"
9
9
  end
10
10
  t.integer :sort_key
11
- t.integer :user_import_file_id
11
+ t.references :user_import_file, index: true
12
12
  t.timestamps
13
13
  end
14
14
 
15
- add_index :user_import_file_transitions, :user_import_file_id
16
15
  add_index :user_import_file_transitions, [:sort_key, :user_import_file_id], unique: true, name: "index_user_import_file_transitions_on_sort_key_and_file_id"
17
16
  end
18
17
  end
@@ -1,7 +1,7 @@
1
1
  class CreateUserExportFiles < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :user_export_files do |t|
4
- t.integer :user_id
4
+ t.references :user, index: true
5
5
  t.attachment :user_export
6
6
  t.datetime :executed_at
7
7
 
@@ -8,7 +8,7 @@ class CreateUserExportFileTransitions < ActiveRecord::Migration
8
8
  t.text :metadata, default: "{}"
9
9
  end
10
10
  t.integer :sort_key
11
- t.integer :user_export_file_id
11
+ t.references :user_export_file, index: true
12
12
  t.timestamps
13
13
  end
14
14
 
@@ -1,5 +1,5 @@
1
1
  class AddDefaultLibraryIdToUserImportFile < ActiveRecord::Migration
2
2
  def change
3
- add_column :user_import_files, :default_library_id, :integer
3
+ add_reference :user_import_files, :default_library
4
4
  end
5
5
  end
@@ -1,5 +1,5 @@
1
1
  class AddDefaultUserGroupIdToUserImportFile < ActiveRecord::Migration
2
2
  def change
3
- add_column :user_import_files, :default_user_group_id, :integer
3
+ add_reference :user_import_files, :default_user_group
4
4
  end
5
5
  end
@@ -1,14 +1,12 @@
1
1
  class CreateColors < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :colors do |t|
4
- t.integer :library_group_id
4
+ t.references :library_group, index: true
5
5
  t.string :property
6
6
  t.string :code
7
7
  t.integer :position
8
8
 
9
9
  t.timestamps
10
10
  end
11
-
12
- add_index :colors, :library_group_id
13
11
  end
14
12
  end
@@ -0,0 +1,5 @@
1
+ class AddForeignKeyToItemsReferencingManifestations < ActiveRecord::Migration
2
+ def change
3
+ add_foreign_key :items, :manifestations
4
+ end
5
+ end
@@ -1,13 +1,11 @@
1
1
  class CreateWithdraws < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :withdraws do |t|
4
- t.integer :basket_id
5
- t.integer :item_id
6
- t.integer :librarian_id
4
+ t.references :basket, index: true
5
+ t.references :item, index: true
6
+ t.references :librarian, index: true
7
7
 
8
8
  t.timestamps null: false
9
9
  end
10
- add_index :withdraws, :basket_id
11
- add_index :withdraws, :item_id
12
10
  end
13
11
  end
@@ -0,0 +1,6 @@
1
+ class AddProfileIdToAgent < ActiveRecord::Migration
2
+ def change
3
+ add_column :agents, :profile_id, :integer
4
+ add_index :agents, :profile_id
5
+ end
6
+ end
@@ -1,13 +1,26 @@
1
+ # This migration comes from enju_library_engine (originally 20151213070943)
1
2
  class AddTranslationTableToLibraryGroup < ActiveRecord::Migration
2
3
  def up
3
- LibraryGroup.create_translation_table!({
4
- login_banner: :text
5
- }, {
6
- migrate_data: true
7
- })
4
+ if defined?(Globalize)
5
+ LibraryGroup.create_translation_table!({
6
+ login_banner: :text
7
+ }, {
8
+ migrate_data: true
9
+ })
10
+ end
11
+
12
+ if defined?(AwesomeHstoreTranslate)
13
+ add_column :library_groups, :login_banner, :hstore
14
+ end
8
15
  end
9
16
 
10
17
  def down
11
- LibraryGroup.drop_translation_table! migrate_data: true
18
+ if defined?(Globalize)
19
+ LibraryGroup.drop_translation_table! migrate_data: true
20
+ end
21
+
22
+ if defined?(AwesomeHstoreTranslate)
23
+ remove_column :library_groups, :login_banner
24
+ end
12
25
  end
13
26
  end
@@ -1,9 +1,22 @@
1
+ # This migration comes from enju_library_engine (originally 20151213072705)
1
2
  class AddFooterBannerToLibraryGroup < ActiveRecord::Migration
2
3
  def up
3
- LibraryGroup.add_translation_fields! footer_banner: :text
4
+ if defined?(Globalize)
5
+ LibraryGroup.add_translation_fields! footer_banner: :text
6
+ end
7
+
8
+ if defined?(AwesomeHstoreTranslate)
9
+ add_column :library_groups, :footer_banner, :hstore
10
+ end
4
11
  end
5
12
 
6
13
  def down
7
- remove_column :library_group_translations, :footer_banner
14
+ if defined?(Globalize)
15
+ remove_column :library_group_translations, :footer_banner
16
+ end
17
+
18
+ if defined?(AwesomeHstoreTranslate)
19
+ remove_column :library_groups, :footer_banner
20
+ end
8
21
  end
9
22
  end
@@ -0,0 +1,9 @@
1
+ class AddMostRecentToImportRequestTransitions < ActiveRecord::Migration
2
+ def up
3
+ add_column :import_request_transitions, :most_recent, :boolean, null: true
4
+ end
5
+
6
+ def down
7
+ remove_column :import_request_transitions, :most_recent
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ class AddMostRecentToResourceImportFileTransitions < ActiveRecord::Migration
2
+ def up
3
+ add_column :resource_import_file_transitions, :most_recent, :boolean, null: true
4
+ end
5
+
6
+ def down
7
+ remove_column :resource_import_file_transitions, :most_recent
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ class AddMostRecentToResourceExportFileTransitions < ActiveRecord::Migration
2
+ def up
3
+ add_column :resource_export_file_transitions, :most_recent, :boolean, null: true
4
+ end
5
+
6
+ def down
7
+ remove_column :resource_export_file_transitions, :most_recent
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ class AddMostRecentToAgentImportFileTransitions < ActiveRecord::Migration
2
+ def up
3
+ add_column :agent_import_file_transitions, :most_recent, :boolean, null: true
4
+ end
5
+
6
+ def down
7
+ remove_column :agent_import_file_transitions, :most_recent
8
+ end
9
+ end
@@ -0,0 +1,6 @@
1
+ class AddPictureWidthToPictureFile < ActiveRecord::Migration
2
+ def change
3
+ add_column :picture_files, :picture_width, :integer
4
+ add_column :picture_files, :picture_height, :integer
5
+ end
6
+ end
@@ -0,0 +1,11 @@
1
+ class AddAttachmentAttachmentToCarrierTypes < ActiveRecord::Migration
2
+ def self.up
3
+ change_table :carrier_types do |t|
4
+ t.attachment :attachment
5
+ end
6
+ end
7
+
8
+ def self.down
9
+ remove_attachment :carrier_types, :attachment
10
+ end
11
+ end
@@ -0,0 +1,5 @@
1
+ class SetNotNullToManifestationIdOnItems < ActiveRecord::Migration
2
+ def change
3
+ change_column_null :items, :manifestation_id, false
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddHeaderLogoMetaToLibraryGroup < ActiveRecord::Migration
2
+ def change
3
+ add_column :library_groups, :header_logo_meta, :text
4
+ end
5
+ end
@@ -0,0 +1,13 @@
1
+ class AddConstraintsToMostRecentForUserImportFileTransitions < ActiveRecord::Migration
2
+ disable_ddl_transaction!
3
+
4
+ def up
5
+ add_index :user_import_file_transitions, [:user_import_file_id, :most_recent], unique: true, where: "most_recent", name: "index_user_import_file_transitions_parent_most_recent" #, algorithm: :concurrently
6
+ change_column_null :user_import_file_transitions, :most_recent, false
7
+ end
8
+
9
+ def down
10
+ remove_index :user_import_file_transitions, name: "index_user_import_file_transitions_parent_most_recent"
11
+ change_column_null :user_import_file_transitions, :most_recent, true
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ class AddConstraintsToMostRecentForUserExportFileTransitions < ActiveRecord::Migration
2
+ disable_ddl_transaction!
3
+
4
+ def up
5
+ add_index :user_export_file_transitions, [:user_export_file_id, :most_recent], unique: true, where: "most_recent", name: "index_user_export_file_transitions_parent_most_recent" #, algorithm: :concurrently
6
+ change_column_null :user_export_file_transitions, :most_recent, false
7
+ end
8
+
9
+ def down
10
+ remove_index :user_export_file_transitions, name: "index_user_export_file_transitions_parent_most_recent"
11
+ change_column_null :user_export_file_transitions, :most_recent, true
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ class AddConstraintsToMostRecentForAgentImportFileTransitions < ActiveRecord::Migration
2
+ disable_ddl_transaction!
3
+
4
+ def up
5
+ add_index :agent_import_file_transitions, [:agent_import_file_id, :most_recent], unique: true, where: "most_recent", name: "index_agent_import_file_transitions_parent_most_recent" #, algorithm: :concurrently
6
+ change_column_null :agent_import_file_transitions, :most_recent, false
7
+ end
8
+
9
+ def down
10
+ remove_index :agent_import_file_transitions, name: "index_agent_import_file_transitions_parent_most_recent"
11
+ change_column_null :agent_import_file_transitions, :most_recent, true
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ class AddConstraintsToMostRecentForResourceImportFileTransitions < ActiveRecord::Migration
2
+ disable_ddl_transaction!
3
+
4
+ def up
5
+ add_index :resource_import_file_transitions, [:resource_import_file_id, :most_recent], unique: true, where: "most_recent", name: "index_resource_import_file_transitions_parent_most_recent" #, algorithm: :concurrently
6
+ change_column_null :resource_import_file_transitions, :most_recent, false
7
+ end
8
+
9
+ def down
10
+ remove_index :resource_import_file_transitions, name: "index_resource_import_file_transitions_parent_most_recent"
11
+ change_column_null :resource_import_file_transitions, :most_recent, true
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ class AddConstraintsToMostRecentForResourceExportFileTransitions < ActiveRecord::Migration
2
+ disable_ddl_transaction!
3
+
4
+ def up
5
+ add_index :resource_export_file_transitions, [:resource_export_file_id, :most_recent], unique: true, where: "most_recent", name: "index_resource_export_file_transitions_parent_most_recent" #, algorithm: :concurrently
6
+ change_column_null :resource_export_file_transitions, :most_recent, false
7
+ end
8
+
9
+ def down
10
+ remove_index :resource_export_file_transitions, name: "index_resource_export_file_transitions_parent_most_recent"
11
+ change_column_null :resource_export_file_transitions, :most_recent, true
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ class AddConstraintsToMostRecentForImportRequestTransitions < ActiveRecord::Migration
2
+ disable_ddl_transaction!
3
+
4
+ def up
5
+ add_index :import_request_transitions, [:import_request_id, :most_recent], unique: true, where: "most_recent", name: "index_import_request_transitions_parent_most_recent" #, algorithm: :concurrently
6
+ change_column_null :import_request_transitions, :most_recent, false
7
+ end
8
+
9
+ def down
10
+ remove_index :import_request_transitions, name: "index_import_request_transitions_parent_most_recent"
11
+ change_column_null :import_request_transitions, :most_recent, true
12
+ end
13
+ end
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 20171126135238) do
14
+ ActiveRecord::Schema.define(version: 20180107162711) do
15
15
 
16
16
  create_table "accepts", force: :cascade do |t|
17
17
  t.integer "basket_id"
@@ -23,6 +23,7 @@ ActiveRecord::Schema.define(version: 20171126135238) do
23
23
 
24
24
  add_index "accepts", ["basket_id"], name: "index_accepts_on_basket_id"
25
25
  add_index "accepts", ["item_id"], name: "index_accepts_on_item_id"
26
+ add_index "accepts", ["librarian_id"], name: "index_accepts_on_librarian_id"
26
27
 
27
28
  create_table "agent_import_file_transitions", force: :cascade do |t|
28
29
  t.string "to_state"
@@ -31,8 +32,10 @@ ActiveRecord::Schema.define(version: 20171126135238) do
31
32
  t.integer "agent_import_file_id"
32
33
  t.datetime "created_at"
33
34
  t.datetime "updated_at"
35
+ t.boolean "most_recent", null: false
34
36
  end
35
37
 
38
+ add_index "agent_import_file_transitions", ["agent_import_file_id", "most_recent"], name: "index_agent_import_file_transitions_parent_most_recent", unique: true
36
39
  add_index "agent_import_file_transitions", ["agent_import_file_id"], name: "index_agent_import_file_transitions_on_agent_import_file_id"
37
40
  add_index "agent_import_file_transitions", ["sort_key", "agent_import_file_id"], name: "index_agent_import_file_transitions_on_sort_key_and_file_id", unique: true
38
41
 
@@ -158,12 +161,14 @@ ActiveRecord::Schema.define(version: 20171126135238) do
158
161
  t.string "birth_date"
159
162
  t.string "death_date"
160
163
  t.string "agent_identifier"
164
+ t.integer "profile_id"
161
165
  end
162
166
 
163
167
  add_index "agents", ["agent_identifier"], name: "index_agents_on_agent_identifier"
164
168
  add_index "agents", ["country_id"], name: "index_agents_on_country_id"
165
169
  add_index "agents", ["full_name"], name: "index_agents_on_full_name"
166
170
  add_index "agents", ["language_id"], name: "index_agents_on_language_id"
171
+ add_index "agents", ["profile_id"], name: "index_agents_on_profile_id"
167
172
  add_index "agents", ["required_role_id"], name: "index_agents_on_required_role_id"
168
173
 
169
174
  create_table "baskets", force: :cascade do |t|
@@ -200,12 +205,16 @@ ActiveRecord::Schema.define(version: 20171126135238) do
200
205
  end
201
206
 
202
207
  create_table "carrier_types", force: :cascade do |t|
203
- t.string "name", null: false
208
+ t.string "name", null: false
204
209
  t.text "display_name"
205
210
  t.text "note"
206
211
  t.integer "position"
207
212
  t.datetime "created_at"
208
213
  t.datetime "updated_at"
214
+ t.string "attachment_file_name"
215
+ t.string "attachment_content_type"
216
+ t.integer "attachment_file_size"
217
+ t.datetime "attachment_updated_at"
209
218
  end
210
219
 
211
220
  create_table "colors", force: :cascade do |t|
@@ -341,8 +350,10 @@ ActiveRecord::Schema.define(version: 20171126135238) do
341
350
  t.integer "import_request_id"
342
351
  t.datetime "created_at"
343
352
  t.datetime "updated_at"
353
+ t.boolean "most_recent", null: false
344
354
  end
345
355
 
356
+ add_index "import_request_transitions", ["import_request_id", "most_recent"], name: "index_import_request_transitions_parent_most_recent", unique: true
346
357
  add_index "import_request_transitions", ["import_request_id"], name: "index_import_request_transitions_on_import_request_id"
347
358
  add_index "import_request_transitions", ["sort_key", "import_request_id"], name: "index_import_request_transitions_on_sort_key_and_request_id", unique: true
348
359
 
@@ -378,7 +389,7 @@ ActiveRecord::Schema.define(version: 20171126135238) do
378
389
  t.string "binding_item_identifier"
379
390
  t.string "binding_call_number"
380
391
  t.datetime "binded_at"
381
- t.integer "manifestation_id"
392
+ t.integer "manifestation_id", null: false
382
393
  end
383
394
 
384
395
  add_index "items", ["binding_item_identifier"], name: "index_items_on_binding_item_identifier"
@@ -418,7 +429,7 @@ ActiveRecord::Schema.define(version: 20171126135238) do
418
429
  t.text "note"
419
430
  t.integer "call_number_rows", default: 1, null: false
420
431
  t.string "call_number_delimiter", default: "|", null: false
421
- t.integer "library_group_id", default: 1, null: false
432
+ t.integer "library_group_id", null: false
422
433
  t.integer "users_count", default: 0, null: false
423
434
  t.integer "position"
424
435
  t.integer "country_id"
@@ -432,7 +443,7 @@ ActiveRecord::Schema.define(version: 20171126135238) do
432
443
  end
433
444
 
434
445
  add_index "libraries", ["library_group_id"], name: "index_libraries_on_library_group_id"
435
- add_index "libraries", ["name"], name: "index_libraries_on_name", unique: true
446
+ add_index "libraries", ["name"], name: "index_libraries_on_name"
436
447
 
437
448
  create_table "library_group_translations", force: :cascade do |t|
438
449
  t.integer "library_group_id", null: false
@@ -470,6 +481,7 @@ ActiveRecord::Schema.define(version: 20171126135238) do
470
481
  t.string "header_logo_content_type"
471
482
  t.integer "header_logo_file_size"
472
483
  t.datetime "header_logo_updated_at"
484
+ t.text "header_logo_meta"
473
485
  end
474
486
 
475
487
  add_index "library_groups", ["short_name"], name: "index_library_groups_on_short_name"
@@ -548,7 +560,7 @@ ActiveRecord::Schema.define(version: 20171126135238) do
548
560
  t.datetime "valid_until"
549
561
  t.datetime "date_submitted"
550
562
  t.datetime "date_accepted"
551
- t.datetime "date_caputured"
563
+ t.datetime "date_captured"
552
564
  t.string "pub_date"
553
565
  t.string "edition_string"
554
566
  t.integer "volume_number"
@@ -588,9 +600,10 @@ ActiveRecord::Schema.define(version: 20171126135238) do
588
600
  t.integer "message_request_id"
589
601
  t.datetime "created_at"
590
602
  t.datetime "updated_at"
591
- t.boolean "most_recent"
603
+ t.boolean "most_recent", null: false
592
604
  end
593
605
 
606
+ add_index "message_request_transitions", ["message_request_id", "most_recent"], name: "index_message_request_transitions_parent_most_recent", unique: true
594
607
  add_index "message_request_transitions", ["message_request_id"], name: "index_message_request_transitions_on_message_request_id"
595
608
  add_index "message_request_transitions", ["sort_key", "message_request_id"], name: "index_message_request_transitions_on_sort_key_and_request_id", unique: true
596
609
 
@@ -624,9 +637,10 @@ ActiveRecord::Schema.define(version: 20171126135238) do
624
637
  t.integer "message_id"
625
638
  t.datetime "created_at"
626
639
  t.datetime "updated_at"
627
- t.boolean "most_recent"
640
+ t.boolean "most_recent", null: false
628
641
  end
629
642
 
643
+ add_index "message_transitions", ["message_id", "most_recent"], name: "index_message_transitions_parent_most_recent", unique: true
630
644
  add_index "message_transitions", ["message_id"], name: "index_message_transitions_on_message_id"
631
645
  add_index "message_transitions", ["sort_key", "message_id"], name: "index_message_transitions_on_sort_key_and_message_id", unique: true
632
646
 
@@ -676,6 +690,8 @@ ActiveRecord::Schema.define(version: 20171126135238) do
676
690
  t.datetime "picture_updated_at"
677
691
  t.text "picture_meta"
678
692
  t.string "picture_fingerprint"
693
+ t.integer "picture_width"
694
+ t.integer "picture_height"
679
695
  end
680
696
 
681
697
  add_index "picture_files", ["picture_attachable_id", "picture_attachable_type"], name: "index_picture_files_on_picture_attachable_id_and_type"
@@ -767,8 +783,10 @@ ActiveRecord::Schema.define(version: 20171126135238) do
767
783
  t.integer "resource_export_file_id"
768
784
  t.datetime "created_at"
769
785
  t.datetime "updated_at"
786
+ t.boolean "most_recent", null: false
770
787
  end
771
788
 
789
+ add_index "resource_export_file_transitions", ["resource_export_file_id", "most_recent"], name: "index_resource_export_file_transitions_parent_most_recent", unique: true
772
790
  add_index "resource_export_file_transitions", ["resource_export_file_id"], name: "index_resource_export_file_transitions_on_file_id"
773
791
  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
774
792
 
@@ -790,8 +808,10 @@ ActiveRecord::Schema.define(version: 20171126135238) do
790
808
  t.integer "resource_import_file_id"
791
809
  t.datetime "created_at"
792
810
  t.datetime "updated_at"
811
+ t.boolean "most_recent", null: false
793
812
  end
794
813
 
814
+ add_index "resource_import_file_transitions", ["resource_import_file_id", "most_recent"], name: "index_resource_import_file_transitions_parent_most_recent", unique: true
795
815
  add_index "resource_import_file_transitions", ["resource_import_file_id"], name: "index_resource_import_file_transitions_on_file_id"
796
816
  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
797
817
 
@@ -901,7 +921,7 @@ ActiveRecord::Schema.define(version: 20171126135238) do
901
921
  t.string "name", null: false
902
922
  t.text "display_name"
903
923
  t.text "note"
904
- t.integer "library_id", default: 1, null: false
924
+ t.integer "library_id", null: false
905
925
  t.integer "items_count", default: 0, null: false
906
926
  t.integer "position"
907
927
  t.datetime "created_at"
@@ -945,11 +965,13 @@ ActiveRecord::Schema.define(version: 20171126135238) do
945
965
  t.integer "user_export_file_id"
946
966
  t.datetime "created_at"
947
967
  t.datetime "updated_at"
948
- t.boolean "most_recent"
968
+ t.boolean "most_recent", null: false
949
969
  end
950
970
 
951
971
  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
972
+ add_index "user_export_file_transitions", ["user_export_file_id", "most_recent"], name: "index_user_export_file_transitions_parent_most_recent", unique: true
952
973
  add_index "user_export_file_transitions", ["user_export_file_id"], name: "index_user_export_file_transitions_on_file_id"
974
+ add_index "user_export_file_transitions", ["user_export_file_id"], name: "index_user_export_file_transitions_on_user_export_file_id"
953
975
 
954
976
  create_table "user_export_files", force: :cascade do |t|
955
977
  t.integer "user_id"
@@ -962,6 +984,8 @@ ActiveRecord::Schema.define(version: 20171126135238) do
962
984
  t.datetime "updated_at"
963
985
  end
964
986
 
987
+ add_index "user_export_files", ["user_id"], name: "index_user_export_files_on_user_id"
988
+
965
989
  create_table "user_groups", force: :cascade do |t|
966
990
  t.string "name"
967
991
  t.text "display_name"
@@ -991,10 +1015,11 @@ ActiveRecord::Schema.define(version: 20171126135238) do
991
1015
  t.integer "user_import_file_id"
992
1016
  t.datetime "created_at"
993
1017
  t.datetime "updated_at"
994
- t.boolean "most_recent"
1018
+ t.boolean "most_recent", null: false
995
1019
  end
996
1020
 
997
1021
  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
1022
+ add_index "user_import_file_transitions", ["user_import_file_id", "most_recent"], name: "index_user_import_file_transitions_parent_most_recent", unique: true
998
1023
  add_index "user_import_file_transitions", ["user_import_file_id"], name: "index_user_import_file_transitions_on_user_import_file_id"
999
1024
 
1000
1025
  create_table "user_import_files", force: :cascade do |t|
@@ -1015,6 +1040,8 @@ ActiveRecord::Schema.define(version: 20171126135238) do
1015
1040
  t.integer "default_user_group_id"
1016
1041
  end
1017
1042
 
1043
+ add_index "user_import_files", ["user_id"], name: "index_user_import_files_on_user_id"
1044
+
1018
1045
  create_table "user_import_results", force: :cascade do |t|
1019
1046
  t.integer "user_import_file_id"
1020
1047
  t.integer "user_id"
@@ -1024,6 +1051,9 @@ ActiveRecord::Schema.define(version: 20171126135238) do
1024
1051
  t.text "error_message"
1025
1052
  end
1026
1053
 
1054
+ add_index "user_import_results", ["user_id"], name: "index_user_import_results_on_user_id"
1055
+ add_index "user_import_results", ["user_import_file_id"], name: "index_user_import_results_on_user_import_file_id"
1056
+
1027
1057
  create_table "users", force: :cascade do |t|
1028
1058
  t.string "email", default: "", null: false
1029
1059
  t.string "encrypted_password", default: "", null: false
@@ -1072,5 +1102,6 @@ ActiveRecord::Schema.define(version: 20171126135238) do
1072
1102
 
1073
1103
  add_index "withdraws", ["basket_id"], name: "index_withdraws_on_basket_id"
1074
1104
  add_index "withdraws", ["item_id"], name: "index_withdraws_on_item_id"
1105
+ add_index "withdraws", ["librarian_id"], name: "index_withdraws_on_librarian_id"
1075
1106
 
1076
1107
  end
@@ -16,5 +16,5 @@ message_request_transition_00001:
16
16
  # message_request_id :integer
17
17
  # created_at :datetime
18
18
  # updated_at :datetime
19
- # most_recent :boolean
19
+ # most_recent :boolean not null
20
20
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_message
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kosuke Tanabe
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.2.3
19
+ version: 0.2.4
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.2.3
26
+ version: 0.2.4
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: awesome_nested_set
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.2.2
61
+ version: 0.2.3
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.2.2
68
+ version: 0.2.3
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: sqlite3
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -264,13 +264,14 @@ files:
264
264
  - db/migrate/20140518135713_create_message_request_transitions.rb
265
265
  - db/migrate/20160703185015_add_most_recent_to_message_transitions.rb
266
266
  - db/migrate/20160814165332_add_most_recent_to_message_request_transitions.rb
267
+ - db/migrate/20180107162659_add_constraints_to_most_recent_for_message_transitions.rb
268
+ - db/migrate/20180107162711_add_constraints_to_most_recent_for_message_request_transitions.rb
267
269
  - lib/enju_message.rb
268
270
  - lib/enju_message/engine.rb
269
271
  - lib/enju_message/version.rb
270
272
  - lib/generators/enju_message/setup/USAGE
271
273
  - lib/generators/enju_message/setup/setup_generator.rb
272
274
  - lib/generators/enju_message/setup/templates/db/fixtures/message_templates.yml
273
- - lib/generators/enju_message/update/update_generator.rb
274
275
  - lib/tasks/enju_message_tasks.rake
275
276
  - lib/tasks/message_template.rb
276
277
  - spec/controllers/message_requests_controller_spec.rb
@@ -435,22 +436,38 @@ files:
435
436
  - spec/dummy/db/migrate/20140823095740_rename_manifestation_periodical_to_serial.rb
436
437
  - spec/dummy/db/migrate/20141003181336_add_full_name_transcription_to_profile.rb
437
438
  - spec/dummy/db/migrate/20141003182825_add_date_of_birth_to_profile.rb
439
+ - spec/dummy/db/migrate/20150117111136_add_foreign_key_to_items_referencing_manifestations.rb
438
440
  - spec/dummy/db/migrate/20150221063719_add_settings_to_library_group.rb
439
441
  - spec/dummy/db/migrate/20150506105356_add_error_message_to_user_import_result.rb
440
442
  - spec/dummy/db/migrate/20150924115059_create_withdraws.rb
443
+ - spec/dummy/db/migrate/20151125004028_add_profile_id_to_agent.rb
441
444
  - spec/dummy/db/migrate/20151213070943_add_translation_table_to_library_group.rb
442
445
  - spec/dummy/db/migrate/20151213072705_add_footer_banner_to_library_group.rb
443
446
  - spec/dummy/db/migrate/20160610093229_add_html_snippet_to_library_group.rb
444
447
  - spec/dummy/db/migrate/20160627232219_add_most_recent_to_user_import_file_transitions.rb
445
448
  - spec/dummy/db/migrate/20160627232316_add_most_recent_to_user_export_file_transitions.rb
449
+ - spec/dummy/db/migrate/20160801080612_add_most_recent_to_import_request_transitions.rb
450
+ - spec/dummy/db/migrate/20160801080619_add_most_recent_to_resource_import_file_transitions.rb
451
+ - spec/dummy/db/migrate/20160801080637_add_most_recent_to_resource_export_file_transitions.rb
452
+ - spec/dummy/db/migrate/20160801080643_add_most_recent_to_agent_import_file_transitions.rb
453
+ - spec/dummy/db/migrate/20160811102604_add_picture_width_to_picture_file.rb
446
454
  - spec/dummy/db/migrate/20160813191647_add_max_number_of_results_to_library_group.rb
447
455
  - spec/dummy/db/migrate/20160813191733_add_family_name_first_to_library_group.rb
448
456
  - spec/dummy/db/migrate/20160813192542_add_pub_year_facet_range_interval_to_library_group.rb
449
457
  - spec/dummy/db/migrate/20160813203039_add_user_id_to_library_group.rb
458
+ - spec/dummy/db/migrate/20160820004638_add_attachment_attachment_to_carrier_types.rb
450
459
  - spec/dummy/db/migrate/20170305064014_add_csv_charset_conversion_to_library_group.rb
451
460
  - spec/dummy/db/migrate/20171014084528_add_header_logo_to_library_group.rb
461
+ - spec/dummy/db/migrate/20171119051258_set_not_null_to_manifestation_id_on_items.rb
452
462
  - spec/dummy/db/migrate/20171126133835_rename_login_banner_to_old_login_banner.rb
453
463
  - spec/dummy/db/migrate/20171126135238_add_foreign_key_to_library_group_id_on_library.rb
464
+ - spec/dummy/db/migrate/20180102162311_add_header_logo_meta_to_library_group.rb
465
+ - spec/dummy/db/migrate/20180107160726_add_constraints_to_most_recent_for_user_import_file_transitions.rb
466
+ - spec/dummy/db/migrate/20180107160740_add_constraints_to_most_recent_for_user_export_file_transitions.rb
467
+ - spec/dummy/db/migrate/20180107161311_add_constraints_to_most_recent_for_agent_import_file_transitions.rb
468
+ - spec/dummy/db/migrate/20180107161331_add_constraints_to_most_recent_for_resource_import_file_transitions.rb
469
+ - spec/dummy/db/migrate/20180107161347_add_constraints_to_most_recent_for_resource_export_file_transitions.rb
470
+ - spec/dummy/db/migrate/20180107161410_add_constraints_to_most_recent_for_import_request_transitions.rb
454
471
  - spec/dummy/db/schema.rb
455
472
  - spec/dummy/public/404.html
456
473
  - spec/dummy/public/422.html
@@ -542,6 +559,7 @@ test_files:
542
559
  - spec/dummy/public/404.html
543
560
  - spec/dummy/db/schema.rb
544
561
  - spec/dummy/db/migrate/20170305064014_add_csv_charset_conversion_to_library_group.rb
562
+ - spec/dummy/db/migrate/20180107161347_add_constraints_to_most_recent_for_resource_export_file_transitions.rb
545
563
  - spec/dummy/db/migrate/20140823095740_rename_manifestation_periodical_to_serial.rb
546
564
  - spec/dummy/db/migrate/20090720091429_create_content_types.rb
547
565
  - spec/dummy/db/migrate/20140709113413_create_user_export_files.rb
@@ -569,6 +587,8 @@ test_files:
569
587
  - spec/dummy/db/migrate/20171014084528_add_header_logo_to_library_group.rb
570
588
  - spec/dummy/db/migrate/20140720170714_add_default_library_id_to_user_import_file.rb
571
589
  - spec/dummy/db/migrate/20120125152919_add_title_subseries_transcription_to_series_statement.rb
590
+ - spec/dummy/db/migrate/20180107160740_add_constraints_to_most_recent_for_user_export_file_transitions.rb
591
+ - spec/dummy/db/migrate/20180107161410_add_constraints_to_most_recent_for_import_request_transitions.rb
572
592
  - spec/dummy/db/migrate/20140628072217_add_user_encoding_to_user_import_file.rb
573
593
  - spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb
574
594
  - spec/dummy/db/migrate/20130412083556_add_latitude_and_longitude_to_library.rb
@@ -579,6 +599,7 @@ test_files:
579
599
  - spec/dummy/db/migrate/130_create_request_status_types.rb
580
600
  - spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
581
601
  - spec/dummy/db/migrate/20100925043847_create_resource_import_results.rb
602
+ - spec/dummy/db/migrate/20150117111136_add_foreign_key_to_items_referencing_manifestations.rb
582
603
  - spec/dummy/db/migrate/20100314190054_add_opening_hour_to_library.rb
583
604
  - spec/dummy/db/migrate/20100525124311_create_manifestation_relationships.rb
584
605
  - spec/dummy/db/migrate/20140614065404_create_resource_export_files.rb
@@ -592,6 +613,7 @@ test_files:
592
613
  - spec/dummy/db/migrate/20140110131010_create_user_import_results.rb
593
614
  - spec/dummy/db/migrate/20110627035057_create_series_statement_merges.rb
594
615
  - spec/dummy/db/migrate/131_create_request_types.rb
616
+ - spec/dummy/db/migrate/20160801080637_add_most_recent_to_resource_export_file_transitions.rb
595
617
  - spec/dummy/db/migrate/20081006093246_create_subscribes.rb
596
618
  - spec/dummy/db/migrate/20120410104851_add_year_of_publication_to_manifestation.rb
597
619
  - spec/dummy/db/migrate/133_create_agent_merges.rb
@@ -613,6 +635,7 @@ test_files:
613
635
  - spec/dummy/db/migrate/20150506105356_add_error_message_to_user_import_result.rb
614
636
  - spec/dummy/db/migrate/20110916091020_add_volume_number_to_manifestation.rb
615
637
  - spec/dummy/db/migrate/20160627232316_add_most_recent_to_user_export_file_transitions.rb
638
+ - spec/dummy/db/migrate/20180107161311_add_constraints_to_most_recent_for_agent_import_file_transitions.rb
616
639
  - spec/dummy/db/migrate/20081006090811_create_subscriptions.rb
617
640
  - spec/dummy/db/migrate/077_create_user_groups.rb
618
641
  - spec/dummy/db/migrate/134_create_agent_merge_lists.rb
@@ -622,7 +645,10 @@ test_files:
622
645
  - spec/dummy/db/migrate/20100129142347_create_import_requests.rb
623
646
  - spec/dummy/db/migrate/125_create_donates.rb
624
647
  - spec/dummy/db/migrate/20120129020544_add_budget_type_id_to_item.rb
648
+ - spec/dummy/db/migrate/20180107161331_add_constraints_to_most_recent_for_resource_import_file_transitions.rb
625
649
  - spec/dummy/db/migrate/20081028083142_create_agent_import_files.rb
650
+ - spec/dummy/db/migrate/20151125004028_add_profile_id_to_agent.rb
651
+ - spec/dummy/db/migrate/20171119051258_set_not_null_to_manifestation_id_on_items.rb
626
652
  - spec/dummy/db/migrate/20110918162329_add_note_to_series_statement.rb
627
653
  - spec/dummy/db/migrate/20140610123439_drop_email_unique_constraint_enju_leaf_rc10.rb
628
654
  - spec/dummy/db/migrate/001_create_agents.rb
@@ -636,20 +662,25 @@ test_files:
636
662
  - spec/dummy/db/migrate/20110301035123_add_pub_date_to_manifestation.rb
637
663
  - spec/dummy/db/migrate/20150221063719_add_settings_to_library_group.rb
638
664
  - spec/dummy/db/migrate/20120129014038_create_budget_types.rb
665
+ - spec/dummy/db/migrate/20160801080612_add_most_recent_to_import_request_transitions.rb
639
666
  - spec/dummy/db/migrate/112_create_frequencies.rb
640
667
  - spec/dummy/db/migrate/20110603184217_add_edit_mode_to_resource_import_file.rb
641
668
  - spec/dummy/db/migrate/20080830154109_create_realizes.rb
642
669
  - spec/dummy/db/migrate/20120413161340_add_fingerprint_to_resource_import_file.rb
643
670
  - spec/dummy/db/migrate/20111124110059_create_create_types.rb
644
671
  - spec/dummy/db/migrate/20120319120638_add_content_type_id_to_manifestation.rb
672
+ - spec/dummy/db/migrate/20180102162311_add_header_logo_meta_to_library_group.rb
673
+ - spec/dummy/db/migrate/20160801080619_add_most_recent_to_resource_import_file_transitions.rb
645
674
  - spec/dummy/db/migrate/20081027150907_create_picture_files.rb
646
675
  - spec/dummy/db/migrate/20100607044753_create_manifestation_relationship_types.rb
647
676
  - spec/dummy/db/migrate/20130421164124_add_series_master_to_series_statement.rb
648
677
  - spec/dummy/db/migrate/20111124112131_add_create_type_to_create.rb
649
678
  - spec/dummy/db/migrate/005_create_manifestations.rb
650
679
  - spec/dummy/db/migrate/20151213070943_add_translation_table_to_library_group.rb
680
+ - spec/dummy/db/migrate/20180107160726_add_constraints_to_most_recent_for_user_import_file_transitions.rb
651
681
  - spec/dummy/db/migrate/20080830172106_create_exemplifies.rb
652
682
  - spec/dummy/db/migrate/20120602141129_add_edit_mode_to_agent_import_file.rb
683
+ - spec/dummy/db/migrate/20160801080643_add_most_recent_to_agent_import_file_transitions.rb
653
684
  - spec/dummy/db/migrate/20130421155019_add_creator_string_to_series_statement.rb
654
685
  - spec/dummy/db/migrate/20100814091104_add_position_to_agent_relationship.rb
655
686
  - spec/dummy/db/migrate/117_create_form_of_works.rb
@@ -665,6 +696,7 @@ test_files:
665
696
  - spec/dummy/db/migrate/20140720140916_add_binding_item_identifier_to_item.rb
666
697
  - spec/dummy/db/migrate/20090705212043_add_attachments_attachment_to_manifestation.rb
667
698
  - spec/dummy/db/migrate/012_create_owns.rb
699
+ - spec/dummy/db/migrate/20160820004638_add_attachment_attachment_to_carrier_types.rb
668
700
  - spec/dummy/db/migrate/20140614141500_create_resource_export_file_transitions.rb
669
701
  - spec/dummy/db/migrate/002_devise_create_users.rb
670
702
  - spec/dummy/db/migrate/20110619064807_add_edition_string_to_manifestation.rb
@@ -672,6 +704,7 @@ test_files:
672
704
  - spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb
673
705
  - spec/dummy/db/migrate/20091025080447_create_licenses.rb
674
706
  - spec/dummy/db/migrate/20120413161403_add_fingerprint_to_agent_import_file.rb
707
+ - spec/dummy/db/migrate/20160811102604_add_picture_width_to_picture_file.rb
675
708
  - spec/dummy/db/migrate/20130429020822_add_root_manifestation_id_to_series_statement.rb
676
709
  - spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb
677
710
  - spec/dummy/db/migrate/20110222073537_add_url_to_library_group.rb
@@ -1,9 +0,0 @@
1
- class EnjuMessage::UpdateGenerator < Rails::Generators::Base
2
- source_root File.expand_path('../templates', __FILE__)
3
- desc "Create files for updating Next-L Enju"
4
-
5
- def copy_migration_files
6
- generate('statesman:add_constraints_to_most_recent', 'Message', 'MessageTransition')
7
- generate('statesman:add_constraints_to_most_recent', 'MessageRequest', 'MessageRequestTransition')
8
- end
9
- end