enju_seed 0.3.0.beta.2 → 0.3.0.beta.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/my_accounts_controller.rb +4 -4
  3. data/app/models/concerns/enju_seed/enju_user.rb +1 -1
  4. data/app/models/concerns/master_model.rb +1 -11
  5. data/app/models/identity.rb +1 -1
  6. data/app/models/profile.rb +6 -8
  7. data/app/models/role.rb +10 -27
  8. data/app/models/user_has_role.rb +2 -2
  9. data/app/policies/user_export_file_policy.rb +21 -0
  10. data/app/policies/user_import_file_policy.rb +21 -0
  11. data/app/policies/user_import_result_policy.rb +21 -0
  12. data/app/views/my_accounts/_edit_credential.html.slim +6 -6
  13. data/app/views/my_accounts/show.html.slim +1 -1
  14. data/app/views/profiles/_edit_credential.html.erb +6 -6
  15. data/app/views/profiles/_edit_credential.html.slim +6 -6
  16. data/app/views/profiles/new.html.slim +3 -3
  17. data/app/views/roles/index.html.slim +1 -1
  18. data/app/views/roles/show.html.slim +1 -1
  19. data/db/migrate/041_create_roles.rb +5 -6
  20. data/db/migrate/20100606065209_create_user_has_roles.rb +3 -3
  21. data/db/migrate/20140122054321_create_profiles.rb +5 -13
  22. data/db/migrate/20140811031145_add_expired_at_to_profile.rb +1 -1
  23. data/db/migrate/20141003181336_add_full_name_transcription_to_profile.rb +1 -1
  24. data/db/migrate/20141003182825_add_date_of_birth_to_profile.rb +1 -1
  25. data/db/migrate/20150421023923_create_identities.rb +4 -6
  26. data/db/migrate/20151126005552_add_provider_to_identity.rb +2 -2
  27. data/db/migrate/20170114174536_add_profile_id_to_user.rb +5 -0
  28. data/lib/enju_seed/engine.rb +2 -0
  29. data/lib/enju_seed/version.rb +1 -1
  30. data/spec/controllers/my_accounts_controller_spec.rb +0 -12
  31. data/spec/controllers/profiles_controller_spec.rb +24 -21
  32. data/spec/controllers/roles_controller_spec.rb +1 -1
  33. data/spec/dummy/db/migrate/005_create_manifestations.rb +12 -13
  34. data/spec/dummy/db/migrate/006_create_items.rb +7 -8
  35. data/spec/dummy/db/migrate/012_create_owns.rb +3 -5
  36. data/spec/dummy/db/migrate/015_create_creates.rb +3 -5
  37. data/spec/dummy/db/migrate/047_create_produces.rb +3 -5
  38. data/spec/dummy/db/migrate/059_create_libraries.rb +9 -10
  39. data/spec/dummy/db/migrate/069_create_shelves.rb +5 -6
  40. data/spec/dummy/db/migrate/073_create_carrier_types.rb +3 -3
  41. data/spec/dummy/db/migrate/077_create_user_groups.rb +4 -4
  42. data/spec/dummy/db/migrate/080_create_library_groups.rb +6 -7
  43. data/spec/dummy/db/migrate/112_create_frequencies.rb +3 -3
  44. data/spec/dummy/db/migrate/117_create_form_of_works.rb +3 -3
  45. data/spec/dummy/db/migrate/120_create_baskets.rb +3 -4
  46. data/spec/dummy/db/migrate/124_create_bookstores.rb +3 -3
  47. data/spec/dummy/db/migrate/130_create_request_status_types.rb +3 -3
  48. data/spec/dummy/db/migrate/131_create_request_types.rb +3 -3
  49. data/spec/dummy/db/migrate/20080830154109_create_realizes.rb +3 -5
  50. data/spec/dummy/db/migrate/20080830172106_create_exemplifies.rb +2 -4
  51. data/spec/dummy/db/migrate/20081006090811_create_subscriptions.rb +4 -5
  52. data/spec/dummy/db/migrate/20081006093246_create_subscribes.rb +5 -7
  53. data/spec/dummy/db/migrate/20090720091106_create_medium_of_performances.rb +3 -3
  54. data/spec/dummy/db/migrate/20090720091429_create_content_types.rb +3 -3
  55. data/spec/dummy/db/migrate/20100129142347_create_import_requests.rb +4 -7
  56. data/spec/dummy/db/migrate/20100211105551_add_admin_networks_to_library_group.rb +1 -1
  57. data/spec/dummy/db/migrate/20100525124311_create_manifestation_relationships.rb +4 -6
  58. data/spec/dummy/db/migrate/20120319173203_create_accepts.rb +3 -6
  59. data/spec/dummy/db/migrate/20130506175834_create_identifiers.rb +4 -5
  60. data/spec/dummy/db/migrate/20140110122216_create_user_import_files.rb +2 -2
  61. data/spec/dummy/db/migrate/20140110131010_create_user_import_results.rb +2 -2
  62. data/spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb +5 -4
  63. data/spec/dummy/db/migrate/20140529014410_create_item_transitions.rb +15 -0
  64. data/spec/dummy/db/migrate/20140709113413_create_user_export_files.rb +1 -1
  65. data/spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb +5 -5
  66. data/spec/dummy/db/migrate/20140720170714_add_default_library_id_to_user_import_file.rb +1 -1
  67. data/spec/dummy/db/migrate/20140720170735_add_default_user_group_id_to_user_import_file.rb +1 -1
  68. data/spec/dummy/db/migrate/20140802082007_add_manifestation_id_to_item.rb +2 -3
  69. data/spec/dummy/db/migrate/20141029131633_create_periodicals.rb +2 -2
  70. data/spec/dummy/db/migrate/20150924115059_create_withdraws.rb +3 -5
  71. data/spec/dummy/db/migrate/20151213072705_add_footer_banner_to_library_group.rb +2 -2
  72. data/spec/dummy/db/migrate/20151216123621_create_doi_records.rb +4 -4
  73. data/spec/dummy/db/migrate/20160319144230_create_issn_records.rb +4 -4
  74. data/spec/dummy/db/migrate/20160506144040_create_isbn_records.rb +4 -4
  75. data/spec/dummy/db/schema.rb +173 -144
  76. data/spec/factories/profile.rb +4 -4
  77. data/spec/factories/user.rb +3 -0
  78. data/spec/fixtures/libraries.yml +37 -37
  79. data/spec/fixtures/library_groups.yml +27 -20
  80. data/spec/fixtures/profiles.yml +27 -35
  81. data/spec/fixtures/roles.yml +12 -12
  82. data/spec/fixtures/user_groups.yml +20 -10
  83. data/spec/fixtures/user_has_roles.yml +2 -2
  84. data/spec/fixtures/users.yml +7 -0
  85. data/spec/models/profile_spec.rb +7 -9
  86. data/spec/models/role_spec.rb +10 -11
  87. data/spec/models/user_has_role_spec.rb +3 -4
  88. data/spec/models/user_spec.rb +0 -1
  89. metadata +33 -20
  90. data/db/migrate/20140610123439_drop_email_unique_constraint_enju_leaf_rc10.rb +0 -11
  91. data/spec/dummy/db/migrate/20150117111136_add_foreign_key_to_items_referencing_manifestations.rb +0 -5
  92. data/spec/dummy/db/migrate/20150124152756_add_foreign_key_to_shelves_referencing_libraries.rb +0 -6
  93. data/spec/dummy/db/migrate/20160703190209_add_foreign_key_on_manifestation_id_to_reserve.rb +0 -5
@@ -35,6 +35,6 @@ user4:
35
35
  # id :integer not null, primary key
36
36
  # user_id :integer not null
37
37
  # role_id :integer not null
38
- # created_at :datetime
39
- # updated_at :datetime
38
+ # created_at :datetime not null
39
+ # updated_at :datetime not null
40
40
  #
@@ -6,6 +6,7 @@ admin:
6
6
  username: enjuadmin
7
7
  email: tanabe@kamata.lib.teu.ac.jp
8
8
  created_at: 2007-11-19 16:58:32.111941 +09:00
9
+ profile_id: 30ab045a-3b92-45bf-baba-0c74ed19ea94
9
10
  librarian1:
10
11
  updated_at: 2008-05-31 12:41:16.337474 +09:00
11
12
  encrypted_password: $2a$10$9O2VuTccN4gHq36ARg0QReSrb1D7WrBBhZZ759RM9moHbB0W5zCzS
@@ -13,6 +14,7 @@ librarian1:
13
14
  username: librarian1
14
15
  email: librarian1@kamata.lib.teu.ac.jp
15
16
  created_at: 2007-11-19 16:58:33.172441 +09:00
17
+ profile_id: 2d4405c1-a6c3-4439-95f5-694e6e7ed7db
16
18
  user1:
17
19
  updated_at: 2008-05-31 13:02:25.101261 +09:00
18
20
  encrypted_password: $2a$10$JthS59A0BNkDOoFpCXM0V.GhhffKaoWKbzpPahYp/vTFrOyM7h/uW
@@ -20,6 +22,7 @@ user1:
20
22
  username: user1
21
23
  email: user1@kamata.lib.teu.ac.jp
22
24
  created_at: 2007-11-19 16:58:34.637413 +09:00
25
+ profile_id: e6082def-74e9-43ad-bdab-8f77f9eaeec8
23
26
  librarian2:
24
27
  updated_at: 2008-05-31 12:42:23.340575 +09:00
25
28
  encrypted_password: $2a$10$YmmTGrYQ1Ir6oc7wXnp.GuNeO1eYLoP3sv8wMSIrTdaGw2BPwRrpS
@@ -27,6 +30,7 @@ librarian2:
27
30
  username: librarian2
28
31
  email: librarian2@library.example.jp
29
32
  created_at: 2008-01-18 12:24:04.222344 +09:00
33
+ profile_id: 2fe27c18-98f8-4cd5-ba2f-293dbb43e8a6
30
34
  user2:
31
35
  updated_at: 2008-05-31 12:42:44.711117 +09:00
32
36
  encrypted_password: $2a$10$i7UjJhLVrJM/J7qaTwW39OXw1NiwowUEbtNHVDV0sqMLjX9.UO9ca
@@ -34,6 +38,7 @@ user2:
34
38
  username: user2
35
39
  email: user2@library.example.jp
36
40
  created_at: 2008-01-18 13:29:06.922728 +09:00
41
+ profile_id: e832240e-afac-437c-bf50-29aaeed00967
37
42
  user3:
38
43
  updated_at: 2008-05-31 13:02:25.101261 +09:00
39
44
  encrypted_password: cc53de0c2d9a1a228daa9a673ec824473747e17507a6c3c4f7e5eff8821f531d4b9e23616b3ddc66fe17006b2298a556fbd567ac080e87f00f37eef8cee6c417
@@ -41,6 +46,7 @@ user3:
41
46
  username: user3
42
47
  email: user3@kamata.lib.teu.ac.jp
43
48
  created_at: 2007-11-19 16:58:34.637413 +09:00
49
+ profile_id: 15e47edb-a9db-4cc4-92f2-58078a1a2510
44
50
  user4:
45
51
  updated_at: 2008-05-31 13:02:25.101261 +09:00
46
52
  encrypted_password: cc53de0c2d9a1a228daa9a673ec824473747e17507a6c3c4f7e5eff8821f531d4b9e23616b3ddc66fe17006b2298a556fbd567ac080e87f00f37eef8cee6c417
@@ -49,3 +55,4 @@ user4:
49
55
  email: user4@kamata.lib.teu.ac.jp
50
56
  created_at: 2007-11-19 16:58:34.637413 +09:00
51
57
  locked_at: <%= 1.day.ago.to_s(:db) %>
58
+ profile_id: e77d4f87-4beb-42c8-ad9e-e99a59740512
@@ -1,5 +1,4 @@
1
- # -*- encoding: utf-8 -*-
2
- require 'spec_helper'
1
+ require 'rails_helper'
3
2
 
4
3
  describe Profile do
5
4
  # pending "add some examples to (or delete) #{__FILE__}"
@@ -15,7 +14,7 @@ describe Profile do
15
14
  end
16
15
 
17
16
  it 'should not set expired_at if its user group does not have valid period' do
18
- profile = FactoryGirl.create(:profile)
17
+ profile = FactoryGirl.build(:profile, user_group_id: '')
19
18
  profile.expired_at.should be_nil
20
19
  end
21
20
 
@@ -76,18 +75,17 @@ end
76
75
  #
77
76
  # Table name: profiles
78
77
  #
79
- # id :integer not null, primary key
80
- # user_id :integer
81
- # user_group_id :integer
82
- # library_id :integer
78
+ # id :uuid not null, primary key
79
+ # user_group_id :uuid
80
+ # library_id :uuid
83
81
  # locale :string
84
82
  # user_number :string
85
83
  # full_name :text
86
84
  # note :text
87
85
  # keyword_list :text
88
86
  # required_role_id :integer
89
- # created_at :datetime
90
- # updated_at :datetime
87
+ # created_at :datetime not null
88
+ # updated_at :datetime not null
91
89
  # checkout_icalendar_token :string
92
90
  # save_checkout_history :boolean default(FALSE), not null
93
91
  # expired_at :datetime
@@ -1,5 +1,4 @@
1
- # -*- encoding: utf-8 -*-
2
- require 'spec_helper'
1
+ require 'rails_helper'
3
2
 
4
3
  describe Role do
5
4
  # pending "add some examples to (or delete) #{__FILE__}"
@@ -17,7 +16,7 @@ describe Role do
17
16
  end
18
17
 
19
18
  it 'should respond to localized_name' do
20
- roles(:role_00001).localized_name.should eq 'Guest'
19
+ roles(:role_00001).display_name.should eq 'Guest'
21
20
  end
22
21
 
23
22
  it 'should respond to default_role' do
@@ -29,12 +28,12 @@ end
29
28
  #
30
29
  # Table name: roles
31
30
  #
32
- # id :integer not null, primary key
33
- # name :string not null
34
- # display_name :string
35
- # note :text
36
- # created_at :datetime
37
- # updated_at :datetime
38
- # score :integer default(0), not null
39
- # position :integer
31
+ # id :integer not null, primary key
32
+ # name :string not null
33
+ # display_name_translations :jsonb
34
+ # note :text
35
+ # created_at :datetime not null
36
+ # updated_at :datetime not null
37
+ # score :integer default(0), not null
38
+ # position :integer
40
39
  #
@@ -1,5 +1,4 @@
1
- # -*- encoding: utf-8 -*-
2
- require 'spec_helper'
1
+ require 'rails_helper'
3
2
 
4
3
  describe UserHasRole do
5
4
  # pending "add some examples to (or delete) #{__FILE__}"
@@ -12,6 +11,6 @@ end
12
11
  # id :integer not null, primary key
13
12
  # user_id :integer not null
14
13
  # role_id :integer not null
15
- # created_at :datetime
16
- # updated_at :datetime
14
+ # created_at :datetime not null
15
+ # updated_at :datetime not null
17
16
  #
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  require 'rails_helper'
3
2
 
4
3
  describe User do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_seed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0.beta.2
4
+ version: 0.3.0.beta.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kosuke Tanabe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-10 00:00:00.000000000 Z
11
+ date: 2017-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 5.0.1
19
+ version: '5.0'
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: 5.0.1
26
+ version: '5.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: friendly_id
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0.8'
75
+ version: '0.9'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0.8'
82
+ version: '0.9'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: strip_attributes
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -156,14 +156,14 @@ dependencies:
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: '5.2'
159
+ version: '5.3'
160
160
  type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: '5.2'
166
+ version: '5.3'
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: rails_autolink
169
169
  requirement: !ruby/object:Gem::Requirement
@@ -221,7 +221,7 @@ dependencies:
221
221
  - !ruby/object:Gem::Version
222
222
  version: '2.3'
223
223
  - !ruby/object:Gem::Dependency
224
- name: json_pure
224
+ name: simple_form
225
225
  requirement: !ruby/object:Gem::Requirement
226
226
  requirements:
227
227
  - - ">="
@@ -235,7 +235,21 @@ dependencies:
235
235
  - !ruby/object:Gem::Version
236
236
  version: '0'
237
237
  - !ruby/object:Gem::Dependency
238
- name: simple_form
238
+ name: validates_timeliness
239
+ requirement: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - "~>"
242
+ - !ruby/object:Gem::Version
243
+ version: '4.0'
244
+ type: :runtime
245
+ prerelease: false
246
+ version_requirements: !ruby/object:Gem::Requirement
247
+ requirements:
248
+ - - "~>"
249
+ - !ruby/object:Gem::Version
250
+ version: '4.0'
251
+ - !ruby/object:Gem::Dependency
252
+ name: json_translate
239
253
  requirement: !ruby/object:Gem::Requirement
240
254
  requirements:
241
255
  - - ">="
@@ -249,19 +263,19 @@ dependencies:
249
263
  - !ruby/object:Gem::Version
250
264
  version: '0'
251
265
  - !ruby/object:Gem::Dependency
252
- name: validates_timeliness
266
+ name: statesman
253
267
  requirement: !ruby/object:Gem::Requirement
254
268
  requirements:
255
269
  - - "~>"
256
270
  - !ruby/object:Gem::Version
257
- version: '4.0'
271
+ version: '2.0'
258
272
  type: :runtime
259
273
  prerelease: false
260
274
  version_requirements: !ruby/object:Gem::Requirement
261
275
  requirements:
262
276
  - - "~>"
263
277
  - !ruby/object:Gem::Version
264
- version: '4.0'
278
+ version: '2.0'
265
279
  - !ruby/object:Gem::Dependency
266
280
  name: pg
267
281
  requirement: !ruby/object:Gem::Requirement
@@ -383,6 +397,9 @@ files:
383
397
  - app/policies/application_policy.rb
384
398
  - app/policies/profile_policy.rb
385
399
  - app/policies/role_policy.rb
400
+ - app/policies/user_export_file_policy.rb
401
+ - app/policies/user_import_file_policy.rb
402
+ - app/policies/user_import_result_policy.rb
386
403
  - app/views/my_accounts/_edit_credential.html.slim
387
404
  - app/views/my_accounts/_form.html.slim
388
405
  - app/views/my_accounts/_show.html.slim
@@ -410,12 +427,12 @@ files:
410
427
  - db/migrate/20100606065209_create_user_has_roles.rb
411
428
  - db/migrate/20130221154434_add_additional_attributes_to_user.rb
412
429
  - db/migrate/20140122054321_create_profiles.rb
413
- - db/migrate/20140610123439_drop_email_unique_constraint_enju_leaf_rc10.rb
414
430
  - db/migrate/20140811031145_add_expired_at_to_profile.rb
415
431
  - db/migrate/20141003181336_add_full_name_transcription_to_profile.rb
416
432
  - db/migrate/20141003182825_add_date_of_birth_to_profile.rb
417
433
  - db/migrate/20150421023923_create_identities.rb
418
434
  - db/migrate/20151126005552_add_provider_to_identity.rb
435
+ - db/migrate/20170114174536_add_profile_id_to_user.rb
419
436
  - lib/enju_seed.rb
420
437
  - lib/enju_seed/engine.rb
421
438
  - lib/enju_seed/localized_name.rb
@@ -602,6 +619,7 @@ files:
602
619
  - spec/dummy/db/migrate/20140528045539_create_user_reserve_stat_transitions.rb
603
620
  - spec/dummy/db/migrate/20140528045600_create_manifestation_checkout_stat_transitions.rb
604
621
  - spec/dummy/db/migrate/20140528045617_create_manifestation_reserve_stat_transitions.rb
622
+ - spec/dummy/db/migrate/20140529014410_create_item_transitions.rb
605
623
  - spec/dummy/db/migrate/20140614065404_create_resource_export_files.rb
606
624
  - spec/dummy/db/migrate/20140614141500_create_resource_export_file_transitions.rb
607
625
  - spec/dummy/db/migrate/20140628072217_add_user_encoding_to_user_import_file.rb
@@ -627,8 +645,6 @@ files:
627
645
  - spec/dummy/db/migrate/20141020120523_add_library_id_to_checkout.rb
628
646
  - spec/dummy/db/migrate/20141029131633_create_periodicals.rb
629
647
  - spec/dummy/db/migrate/20150106001709_create_demands.rb
630
- - spec/dummy/db/migrate/20150117111136_add_foreign_key_to_items_referencing_manifestations.rb
631
- - spec/dummy/db/migrate/20150124152756_add_foreign_key_to_shelves_referencing_libraries.rb
632
648
  - spec/dummy/db/migrate/20150221063719_add_settings_to_library_group.rb
633
649
  - spec/dummy/db/migrate/20150302110310_add_attachment_id_to_manifestation.rb
634
650
  - spec/dummy/db/migrate/20150304183215_add_picture_id_to_picture_file.rb
@@ -656,7 +672,6 @@ files:
656
672
  - spec/dummy/db/migrate/20160703184747_add_most_recent_to_user_checkout_stat_transitions.rb
657
673
  - spec/dummy/db/migrate/20160703184805_add_most_recent_to_user_reserve_stat_transitions.rb
658
674
  - spec/dummy/db/migrate/20160703185015_add_most_recent_to_message_transitions.rb
659
- - spec/dummy/db/migrate/20160703190209_add_foreign_key_on_manifestation_id_to_reserve.rb
660
675
  - spec/dummy/db/migrate/20160801080612_add_most_recent_to_import_request_transitions.rb
661
676
  - spec/dummy/db/migrate/20160801080619_add_most_recent_to_resource_import_file_transitions.rb
662
677
  - spec/dummy/db/migrate/20160801080637_add_most_recent_to_resource_export_file_transitions.rb
@@ -914,6 +929,7 @@ test_files:
914
929
  - spec/dummy/db/migrate/20140528045539_create_user_reserve_stat_transitions.rb
915
930
  - spec/dummy/db/migrate/20140528045600_create_manifestation_checkout_stat_transitions.rb
916
931
  - spec/dummy/db/migrate/20140528045617_create_manifestation_reserve_stat_transitions.rb
932
+ - spec/dummy/db/migrate/20140529014410_create_item_transitions.rb
917
933
  - spec/dummy/db/migrate/20140614065404_create_resource_export_files.rb
918
934
  - spec/dummy/db/migrate/20140614141500_create_resource_export_file_transitions.rb
919
935
  - spec/dummy/db/migrate/20140628072217_add_user_encoding_to_user_import_file.rb
@@ -939,8 +955,6 @@ test_files:
939
955
  - spec/dummy/db/migrate/20141020120523_add_library_id_to_checkout.rb
940
956
  - spec/dummy/db/migrate/20141029131633_create_periodicals.rb
941
957
  - spec/dummy/db/migrate/20150106001709_create_demands.rb
942
- - spec/dummy/db/migrate/20150117111136_add_foreign_key_to_items_referencing_manifestations.rb
943
- - spec/dummy/db/migrate/20150124152756_add_foreign_key_to_shelves_referencing_libraries.rb
944
958
  - spec/dummy/db/migrate/20150221063719_add_settings_to_library_group.rb
945
959
  - spec/dummy/db/migrate/20150302110310_add_attachment_id_to_manifestation.rb
946
960
  - spec/dummy/db/migrate/20150304183215_add_picture_id_to_picture_file.rb
@@ -968,7 +982,6 @@ test_files:
968
982
  - spec/dummy/db/migrate/20160703184747_add_most_recent_to_user_checkout_stat_transitions.rb
969
983
  - spec/dummy/db/migrate/20160703184805_add_most_recent_to_user_reserve_stat_transitions.rb
970
984
  - spec/dummy/db/migrate/20160703185015_add_most_recent_to_message_transitions.rb
971
- - spec/dummy/db/migrate/20160703190209_add_foreign_key_on_manifestation_id_to_reserve.rb
972
985
  - spec/dummy/db/migrate/20160801080612_add_most_recent_to_import_request_transitions.rb
973
986
  - spec/dummy/db/migrate/20160801080619_add_most_recent_to_resource_import_file_transitions.rb
974
987
  - spec/dummy/db/migrate/20160801080637_add_most_recent_to_resource_export_file_transitions.rb
@@ -1,11 +0,0 @@
1
- class DropEmailUniqueConstraintEnjuLeafRc10 < ActiveRecord::Migration
2
- def up
3
- remove_index :users, :email
4
- add_index :users, :email
5
- end
6
-
7
- def down
8
- remove_index :users, :email
9
- add_index :users, :email, unique: true
10
- end
11
- end
@@ -1,5 +0,0 @@
1
- class AddForeignKeyToItemsReferencingManifestations < ActiveRecord::Migration
2
- def change
3
- add_foreign_key :items, :manifestations
4
- end
5
- end
@@ -1,6 +0,0 @@
1
- class AddForeignKeyToShelvesReferencingLibraries < ActiveRecord::Migration
2
- def change
3
- add_foreign_key :shelves, :libraries
4
- add_foreign_key :items, :shelves
5
- end
6
- end
@@ -1,5 +0,0 @@
1
- class AddForeignKeyOnManifestationIdToReserve < ActiveRecord::Migration
2
- def change
3
- add_foreign_key :reserves, :manifestations
4
- end
5
- end