enju_biblio 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (144) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/manifestations_controller.rb +1 -1
  3. data/app/jobs/agent_import_file_job.rb +1 -1
  4. data/app/jobs/resource_export_file_job.rb +1 -1
  5. data/app/jobs/resource_import_file_job.rb +1 -1
  6. data/app/mailers/agent_import_mailer.rb +17 -0
  7. data/app/mailers/resource_export_mailer.rb +17 -0
  8. data/app/mailers/resource_import_mailer.rb +17 -0
  9. data/app/models/agent.rb +4 -4
  10. data/app/models/agent_import_file.rb +13 -1
  11. data/app/models/agent_import_file_transition.rb +1 -1
  12. data/app/models/agent_import_result.rb +1 -1
  13. data/app/models/agent_merge.rb +1 -1
  14. data/app/models/agent_merge_list.rb +1 -1
  15. data/app/models/agent_relationship.rb +1 -1
  16. data/app/models/agent_relationship_type.rb +1 -1
  17. data/app/models/agent_type.rb +1 -1
  18. data/app/models/carrier_type.rb +1 -1
  19. data/app/models/content_type.rb +1 -1
  20. data/app/models/country.rb +1 -1
  21. data/app/models/create.rb +1 -1
  22. data/app/models/create_type.rb +1 -1
  23. data/app/models/donate.rb +1 -1
  24. data/app/models/form_of_work.rb +1 -1
  25. data/app/models/frequency.rb +1 -1
  26. data/app/models/identifier.rb +1 -1
  27. data/app/models/identifier_type.rb +1 -1
  28. data/app/models/import_request.rb +1 -1
  29. data/app/models/import_request_transition.rb +1 -1
  30. data/app/models/item.rb +3 -3
  31. data/app/models/language.rb +2 -18
  32. data/app/models/license.rb +1 -1
  33. data/app/models/manifestation.rb +16 -4
  34. data/app/models/manifestation_relationship.rb +1 -1
  35. data/app/models/manifestation_relationship_type.rb +1 -1
  36. data/app/models/medium_of_performance.rb +1 -1
  37. data/app/models/own.rb +1 -1
  38. data/app/models/picture_file.rb +1 -1
  39. data/app/models/produce.rb +1 -1
  40. data/app/models/produce_type.rb +1 -1
  41. data/app/models/realize.rb +1 -1
  42. data/app/models/realize_type.rb +1 -1
  43. data/app/models/resource_export_file.rb +6 -4
  44. data/app/models/resource_export_file_transition.rb +1 -1
  45. data/app/models/resource_import_file.rb +30 -6
  46. data/app/models/resource_import_file_transition.rb +1 -1
  47. data/app/models/resource_import_result.rb +1 -1
  48. data/app/models/series_statement.rb +1 -1
  49. data/app/models/series_statement_merge.rb +1 -1
  50. data/app/models/series_statement_merge_list.rb +1 -1
  51. data/app/views/agent_import_mailer/completed.en.text.erb +9 -0
  52. data/app/views/agent_import_mailer/completed.ja.text.erb +9 -0
  53. data/app/views/agent_import_mailer/failed.en.text +9 -0
  54. data/app/views/agent_import_mailer/failed.ja.text.erb +9 -0
  55. data/app/views/items/show.html+phone.erb +0 -9
  56. data/app/views/items/show.html.erb +0 -12
  57. data/app/views/manifestations/_manifestation.json.jbuilder +53 -0
  58. data/app/views/manifestations/index.json.jbuilder +6 -0
  59. data/app/views/picture_files/edit.html.erb +2 -22
  60. data/app/views/resource_export_mailer/completed.en.text.erb +9 -0
  61. data/app/views/resource_export_mailer/completed.ja.text.erb +9 -0
  62. data/app/views/resource_export_mailer/failed.en.text.erb +9 -0
  63. data/app/views/resource_export_mailer/failed.ja.text.erb +9 -0
  64. data/app/views/resource_import_mailer/completed.en.text.erb +9 -0
  65. data/app/views/resource_import_mailer/completed.ja.text.erb +9 -0
  66. data/app/views/resource_import_mailer/failed.en.text.erb +9 -0
  67. data/app/views/resource_import_mailer/failed.ja.text.erb +9 -0
  68. data/config/locales/translation_en.yml +11 -0
  69. data/config/locales/translation_ja.yml +11 -0
  70. data/lib/enju_biblio/version.rb +1 -1
  71. data/spec/controllers/items_controller_spec.rb +0 -37
  72. data/spec/dummy/app/jobs/application_job.rb +7 -0
  73. data/spec/dummy/app/mailers/application_mailer.rb +4 -0
  74. data/spec/dummy/app/models/application_record.rb +3 -0
  75. data/spec/dummy/app/models/user.rb +1 -7
  76. data/spec/dummy/config/application.rb +2 -1
  77. data/spec/dummy/db/migrate/029_create_subjects.rb +3 -6
  78. data/spec/dummy/db/migrate/032_create_checkins.rb +3 -6
  79. data/spec/dummy/db/migrate/033_create_checkouts.rb +6 -11
  80. data/spec/dummy/db/migrate/035_create_reserves.rb +4 -9
  81. data/spec/dummy/db/migrate/121_create_checked_items.rb +3 -4
  82. data/spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb +2 -4
  83. data/spec/dummy/db/migrate/20081030023518_create_user_group_has_checkout_types.rb +2 -4
  84. data/spec/dummy/db/migrate/20081030023615_create_carrier_type_has_checkout_types.rb +2 -3
  85. data/spec/dummy/db/migrate/20081212075554_create_checkout_stat_has_manifestations.rb +2 -2
  86. data/spec/dummy/db/migrate/20081215094955_create_checkout_stat_has_users.rb +2 -4
  87. data/spec/dummy/db/migrate/20081216190517_create_reserve_stat_has_manifestations.rb +2 -2
  88. data/spec/dummy/db/migrate/20081220034117_create_reserve_stat_has_users.rb +2 -4
  89. data/spec/dummy/db/migrate/20090831220301_create_lending_policies.rb +3 -3
  90. data/spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb +2 -4
  91. data/spec/dummy/db/migrate/20110627122938_add_number_of_day_to_notify_overdue_to_user_group.rb +2 -2
  92. data/spec/dummy/db/migrate/20111129044509_add_pickup_location_to_reserve.rb +6 -0
  93. data/spec/dummy/db/migrate/20120424103932_add_librarian_id_to_checked_item.rb +1 -1
  94. data/spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb +1 -1
  95. data/spec/dummy/db/migrate/20140122054321_create_profiles.rb +4 -5
  96. data/spec/dummy/db/migrate/20140518050147_create_reserve_transitions.rb +1 -1
  97. data/spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb +1 -1
  98. data/spec/dummy/db/migrate/20140528045518_create_user_checkout_stat_transitions.rb +1 -1
  99. data/spec/dummy/db/migrate/20140528045539_create_user_reserve_stat_transitions.rb +1 -1
  100. data/spec/dummy/db/migrate/20140528045600_create_manifestation_checkout_stat_transitions.rb +1 -1
  101. data/spec/dummy/db/migrate/20140528045617_create_manifestation_reserve_stat_transitions.rb +1 -1
  102. data/spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb +1 -1
  103. data/spec/dummy/db/migrate/20140810061942_add_user_id_to_user_checkout_stat.rb +4 -8
  104. data/spec/dummy/db/migrate/20141014065831_add_shelf_id_to_checkout.rb +1 -2
  105. data/spec/dummy/db/migrate/20141020120523_add_library_id_to_checkout.rb +5 -0
  106. data/spec/dummy/db/migrate/20150106001709_create_demands.rb +11 -0
  107. data/spec/dummy/db/migrate/20150421023923_create_identities.rb +14 -0
  108. data/spec/dummy/db/migrate/20150923173139_add_url_to_classification.rb +5 -0
  109. data/spec/dummy/db/migrate/20150925092505_add_label_to_classification.rb +5 -0
  110. data/spec/dummy/db/migrate/20151126005552_add_provider_to_identity.rb +5 -0
  111. data/spec/dummy/db/migrate/20151213070943_add_translation_table_to_library_group.rb +4 -11
  112. data/spec/dummy/db/migrate/20180107160726_add_constraints_to_most_recent_for_user_import_file_transitions.rb +1 -1
  113. data/spec/dummy/db/migrate/20180107160740_add_constraints_to_most_recent_for_user_export_file_transitions.rb +1 -1
  114. data/spec/dummy/db/migrate/20180107161035_add_constraints_to_most_recent_for_reserve_transitions.rb +13 -0
  115. data/spec/dummy/db/migrate/20180107161951_add_constraints_to_most_recent_for_user_checkout_stat_transitions.rb +13 -0
  116. data/spec/dummy/db/migrate/20180107162009_add_constraints_to_most_recent_for_user_reserve_stat_transitions.rb +13 -0
  117. data/spec/dummy/db/migrate/20180107162029_add_constraints_to_most_recent_for_manifestation_checkout_stat_transitions.rb +13 -0
  118. data/spec/dummy/db/migrate/20180107162048_add_constraints_to_most_recent_for_manifestation_reserve_stat_transitions.rb +13 -0
  119. data/spec/dummy/db/schema.rb +51 -12
  120. data/spec/factories/agent.rb +1 -1
  121. data/spec/factories/identifier.rb +1 -0
  122. data/spec/factories/item.rb +0 -1
  123. data/spec/fixtures/reserve_transitions.yml +23 -7
  124. data/spec/mailers/agent_import_spec.rb +5 -0
  125. data/spec/mailers/previews/agent_import_preview.rb +4 -0
  126. data/spec/mailers/previews/resource_export_preview.rb +4 -0
  127. data/spec/mailers/previews/resource_import_preview.rb +4 -0
  128. data/spec/mailers/resource_export_spec.rb +5 -0
  129. data/spec/mailers/resource_import_spec.rb +5 -0
  130. data/spec/models/agent_spec.rb +1 -1
  131. data/spec/models/item_spec.rb +0 -41
  132. data/spec/models/manifestation_spec.rb +0 -32
  133. data/spec/models/resource_export_file_spec.rb +2 -26
  134. data/spec/models/resource_import_file_spec.rb +2 -2
  135. data/spec/policies/manifestation_policy_spec.rb +2 -5
  136. data/spec/views/items/index.html.erb_spec.rb +3 -10
  137. data/spec/views/manifestations/show.html.erb_spec.rb +1 -5
  138. metadata +121 -26
  139. data/spec/factories/checkout.rb +0 -9
  140. data/spec/fixtures/checked_items.yml +0 -35
  141. data/spec/fixtures/checkins.yml +0 -48
  142. data/spec/fixtures/checkouts.yml +0 -162
  143. data/spec/fixtures/item_has_use_restrictions.yml +0 -61
  144. data/spec/fixtures/lending_policies.yml +0 -92
@@ -1,9 +0,0 @@
1
- FactoryBot.define do
2
- factory :checkout, class: Checkout do |f|
3
- f.due_date { Time.zone.now.next_week }
4
- f.association :item, factory: :item
5
- f.association :user, factory: :user
6
- f.association :librarian, factory: :librarian
7
- f.association :basket, factory: :basket
8
- end
9
- end
@@ -1,35 +0,0 @@
1
- ---
2
- checked_item_00001:
3
- id: 1
4
- item_id: 10
5
- basket_id: 1
6
- due_date: <%= 1.week.from_now.to_s(:db) %>
7
- checked_item_00002:
8
- id: 2
9
- item_id: 6
10
- basket_id: 2
11
- due_date: <%= 1.week.from_now.to_s(:db) %>
12
- checked_item_00003:
13
- id: 3
14
- item_id: 6
15
- basket_id: 9
16
- due_date: <%= 1.week.from_now.to_s(:db) %>
17
- checked_item_00004:
18
- id: 4
19
- item_id: 12
20
- basket_id: 8
21
- due_date: <%= 1.week.from_now.to_s(:db) %>
22
-
23
- # == Schema Information
24
- #
25
- # Table name: checked_items
26
- #
27
- # id :integer not null, primary key
28
- # item_id :integer not null
29
- # basket_id :integer not null
30
- # due_date :datetime not null
31
- # created_at :datetime not null
32
- # updated_at :datetime not null
33
- # librarian_id :integer
34
- #
35
-
@@ -1,48 +0,0 @@
1
- ---
2
- checkin_00001:
3
- item_id: 10
4
- updated_at: 2008-01-22 12:58:54.347742 +09:00
5
- id: 1
6
- librarian_id: 1
7
- created_at: 2008-01-22 12:58:54.347742 +09:00
8
- basket_id: 9
9
- checkin_00002:
10
- item_id: 9
11
- updated_at: 2007-12-14 00:28:41.854022 +09:00
12
- id: 2
13
- librarian_id: 2
14
- created_at: 2007-12-14 00:28:41.854022 +09:00
15
- basket_id: 10
16
- checkin_00003:
17
- item_id: 8
18
- updated_at: 2007-12-20 21:24:18.729192 +09:00
19
- id: 3
20
- librarian_id: 1
21
- created_at: 2007-12-20 21:24:18.729192 +09:00
22
- basket_id: 10
23
- checkin_00004:
24
- item_id: 7
25
- updated_at: 2008-01-23 00:39:27.785676 +09:00
26
- id: 4
27
- librarian_id: 2
28
- created_at: 2008-01-23 00:39:27.785676 +09:00
29
- basket_id: 10
30
- checkin_00005:
31
- item_id: 6
32
- updated_at: 2007-12-20 21:25:04.619479 +09:00
33
- id: 5
34
- librarian_id: 1
35
- created_at: 2007-12-20 21:25:04.619479 +09:00
36
- basket_id: 10
37
- # == Schema Information
38
- #
39
- # Table name: checkins
40
- #
41
- # id :integer not null, primary key
42
- # item_id :integer not null
43
- # librarian_id :integer
44
- # basket_id :integer
45
- # created_at :datetime not null
46
- # updated_at :datetime not null
47
- #
48
-
@@ -1,162 +0,0 @@
1
- ---
2
- checkout_00001:
3
- item_id: 1
4
- updated_at: 2007-09-08 01:20:22.000026 +09:00
5
- lock_version: 0
6
- user_id: 1
7
- id: 1
8
- librarian_id: 1
9
- checkout_renewal_count: 0
10
- due_date: <%= 2.day.from_now.beginning_of_day.to_s(:db) %>
11
- created_at: 2007-09-08 01:19:02.285850 +09:00
12
- basket_id: 1
13
- checkout_00002:
14
- item_id: 2
15
- updated_at: 2007-09-08 01:34:25.103403 +09:00
16
- lock_version: 0
17
- user_id: 1
18
- id: 2
19
- librarian_id: 1
20
- checkout_renewal_count: 0
21
- due_date: <%= 2.day.from_now.beginning_of_day.to_s(:db) %>
22
- created_at: 2007-09-08 01:34:07.363023 +09:00
23
- basket_id: 1
24
- checkout_00003:
25
- item_id: 3
26
- updated_at: 2007-09-09 21:15:11.648996 +09:00
27
- lock_version: 0
28
- user_id: 3
29
- id: 3
30
- librarian_id: 1
31
- checkout_renewal_count: 0
32
- due_date: <%= 2.day.from_now.beginning_of_day.to_s(:db) %>
33
- created_at: 2007-09-08 01:39:03.210081 +09:00
34
- basket_id: 2
35
- checkout_00004:
36
- item_id: 4
37
- updated_at: 2007-09-09 21:15:11.648996 +09:00
38
- lock_version: 0
39
- user_id: 1
40
- id: 4
41
- librarian_id: 1
42
- checkout_renewal_count: 0
43
- due_date: <%= 2.day.from_now.beginning_of_day.to_s(:db) %>
44
- created_at: 2007-09-08 01:39:03.210081 +09:00
45
- basket_id: 3
46
- checkout_00005:
47
- item_id: 5
48
- updated_at: 2007-09-09 21:15:11.648996 +09:00
49
- lock_version: 0
50
- user_id: 2
51
- id: 5
52
- librarian_id: 1
53
- checkout_renewal_count: 0
54
- due_date: <%= 2.day.from_now.beginning_of_day.to_s(:db) %>
55
- created_at: 2007-09-08 01:39:03.210081 +09:00
56
- basket_id: 4
57
- checkout_00006:
58
- item_id: 7
59
- updated_at: 2007-09-09 21:15:11.648996 +09:00
60
- lock_version: 0
61
- user_id: 2
62
- id: 6
63
- librarian_id: 2
64
- checkout_renewal_count: 0
65
- due_date: 2010-09-15 00:00:00 +09:00
66
- created_at: 2007-09-08 01:39:03.210081 +09:00
67
- checkout_00007:
68
- item_id: 7
69
- updated_at: 2007-09-09 21:15:11.648996 +09:00
70
- lock_version: 0
71
- user_id: 1
72
- id: 7
73
- librarian_id: 1
74
- checkout_renewal_count: 0
75
- due_date: <%= 2.day.from_now.beginning_of_day.to_s(:db) %>
76
- created_at: 2007-09-08 01:39:03.210081 +09:00
77
- basket_id: 5
78
- checkout_00008:
79
- item_id: 8
80
- updated_at: 2007-09-09 21:15:11.648996 +09:00
81
- lock_version: 0
82
- user_id: 2
83
- id: 8
84
- librarian_id: 1
85
- checkout_renewal_count: 0
86
- due_date: <%= 2.day.from_now.beginning_of_day.to_s(:db) %>
87
- created_at: 2007-09-08 01:39:03.210081 +09:00
88
- basket_id: 6
89
- checkout_00009:
90
- item_id: 9
91
- updated_at: 2007-09-09 21:15:11.648996 +09:00
92
- lock_version: 0
93
- user_id: 3
94
- id: 9
95
- librarian_id: 1
96
- checkout_renewal_count: 1
97
- due_date: <%= 2.day.from_now.beginning_of_day.to_s(:db) %>
98
- created_at: 2007-09-08 01:39:03.210081 +09:00
99
- basket_id: 7
100
- checkout_00010:
101
- item_id: 13
102
- updated_at: 2007-09-09 21:15:11.648996 +09:00
103
- lock_version: 0
104
- user_id: 3
105
- id: 10
106
- librarian_id: 1
107
- checkout_renewal_count: 1
108
- due_date: <%= 2.day.from_now.beginning_of_day.to_s(:db) %>
109
- created_at: 2007-09-08 01:39:03.210081 +09:00
110
- basket_id: 7
111
- checkout_00011:
112
- item_id: 14
113
- updated_at: 2007-09-09 21:15:11.648996 +09:00
114
- lock_version: 0
115
- user_id: 1
116
- id: 11
117
- librarian_id: 1
118
- checkout_renewal_count: 1
119
- due_date: <%= 180.days.ago.beginning_of_day.to_s(:db) %>
120
- created_at: 2007-09-08 01:39:03.210081 +09:00
121
- basket_id: 7
122
- checkout_00012:
123
- item_id: 6
124
- updated_at: 2007-09-09 21:15:11.648996 +09:00
125
- lock_version: 0
126
- user_id: 3
127
- id: 12
128
- librarian_id: 1
129
- checkout_renewal_count: 1
130
- due_date: <%= 180.days.ago.beginning_of_day.to_s(:db) %>
131
- created_at: 2007-09-08 01:39:03.210081 +09:00
132
- basket_id: 8
133
- checkin_id: 5
134
- checkout_00013:
135
- item_id: 7
136
- updated_at: 2007-09-09 21:15:11.648996 +09:00
137
- lock_version: 0
138
- user_id: 3
139
- id: 13
140
- librarian_id: 1
141
- checkout_renewal_count: 1
142
- due_date: <%= 180.days.ago.beginning_of_day.to_s(:db) %>
143
- created_at: 2007-09-08 01:39:03.210081 +09:00
144
- basket_id: 8
145
- checkin_id: 4
146
- # == Schema Information
147
- #
148
- # Table name: checkouts
149
- #
150
- # id :integer not null, primary key
151
- # user_id :integer
152
- # item_id :integer not null
153
- # checkin_id :integer
154
- # librarian_id :integer
155
- # basket_id :integer
156
- # due_date :datetime
157
- # checkout_renewal_count :integer default(0), not null
158
- # lock_version :integer default(0), not null
159
- # created_at :datetime not null
160
- # updated_at :datetime not null
161
- #
162
-
@@ -1,61 +0,0 @@
1
- ---
2
- item_has_use_restriction_00001:
3
- item_id: 1
4
- updated_at: 2008-02-13 12:29:36.013448 +09:00
5
- id: 1
6
- use_restriction_id: 10
7
- created_at: 2008-02-13 12:29:36.013448 +09:00
8
- item_has_use_restriction_00002:
9
- item_id: 2
10
- updated_at: 2008-02-13 17:58:37.527556 +09:00
11
- id: 2
12
- use_restriction_id: 2
13
- created_at: 2008-02-13 17:58:37.527556 +09:00
14
- item_has_use_restriction_00003:
15
- item_id: 3
16
- updated_at: 2008-02-13 17:58:49.490086 +09:00
17
- id: 3
18
- use_restriction_id: 3
19
- created_at: 2008-02-13 17:58:49.490086 +09:00
20
- item_has_use_restriction_00004:
21
- item_id: 17
22
- updated_at: 2008-02-13 12:29:36.013448 +09:00
23
- id: 4
24
- use_restriction_id: 6
25
- created_at: 2008-02-13 12:29:36.013448 +09:00
26
- item_has_use_restriction_00005:
27
- item_id: 21
28
- updated_at: 2008-02-13 12:29:36.013448 +09:00
29
- id: 5
30
- use_restriction_id: 6
31
- created_at: 2008-02-13 12:29:36.013448 +09:00
32
- item_has_use_restriction_00006:
33
- item_id: 11
34
- updated_at: 2008-02-13 12:29:36.013448 +09:00
35
- id: 6
36
- use_restriction_id: 6
37
- created_at: 2008-02-13 12:29:36.013448 +09:00
38
- item_has_use_restriction_00007:
39
- item_id: 6
40
- updated_at: 2008-02-13 12:29:36.013448 +09:00
41
- id: 7
42
- use_restriction_id: 6
43
- created_at: 2008-02-13 12:29:36.013448 +09:00
44
- item_has_use_restriction_00008:
45
- item_id: 23
46
- updated_at: 2008-02-13 12:29:36.013448 +09:00
47
- id: 8
48
- use_restriction_id: 6
49
- created_at: 2008-02-13 12:29:36.013448 +09:00
50
-
51
- # == Schema Information
52
- #
53
- # Table name: item_has_use_restrictions
54
- #
55
- # id :integer not null, primary key
56
- # item_id :integer not null
57
- # use_restriction_id :integer not null
58
- # created_at :datetime
59
- # updated_at :datetime
60
- #
61
-
@@ -1,92 +0,0 @@
1
- # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2
-
3
- lending_policy_00001:
4
- item_id: 1
5
- user_group_id: 1
6
- loan_period: 1
7
- fixed_due_date:
8
- renewal: 1
9
- fine: 10
10
- note: MyText
11
- position: 1
12
- lending_policy_00002:
13
- item_id: 1
14
- user_group_id: 2
15
- loan_period: 1
16
- fixed_due_date:
17
- renewal: 1
18
- fine: 10
19
- note: MyText
20
- position: 2
21
- lending_policy_00003:
22
- item_id: 10
23
- user_group_id: 2
24
- loan_period: 1
25
- fixed_due_date:
26
- renewal: 1
27
- fine: 10
28
- note: MyText
29
- position: 1
30
- lending_policy_00004:
31
- item_id: 6
32
- user_group_id: 1
33
- loan_period: 1
34
- fixed_due_date:
35
- renewal: 1
36
- fine: 10
37
- note: MyText
38
- position: 1
39
- lending_policy_00005:
40
- item_id: 6
41
- user_group_id: 2
42
- loan_period: 1
43
- fixed_due_date:
44
- renewal: 1
45
- fine: 10
46
- note: MyText
47
- position: 1
48
- lending_policy_00006:
49
- item_id: 11
50
- user_group_id: 1
51
- loan_period: 1
52
- fixed_due_date:
53
- renewal: 1
54
- fine: 10
55
- note: MyText
56
- position: 1
57
- note: MyText
58
- position: 1
59
- lending_policy_00007:
60
- item_id: 21
61
- user_group_id: 1
62
- loan_period: 1
63
- fixed_due_date:
64
- renewal: 1
65
- fine: 10
66
- note: MyText
67
- position: 1
68
- lending_policy_00008:
69
- item_id: 11
70
- user_group_id: 2
71
- loan_period: 1
72
- fixed_due_date:
73
- renewal: 1
74
- fine: 10
75
-
76
- # == Schema Information
77
- #
78
- # Table name: lending_policies
79
- #
80
- # id :integer not null, primary key
81
- # item_id :integer not null
82
- # user_group_id :integer not null
83
- # loan_period :integer default(0), not null
84
- # fixed_due_date :datetime
85
- # renewal :integer default(0), not null
86
- # fine :decimal(, ) default(0.0), not null
87
- # note :text
88
- # position :integer
89
- # created_at :datetime not null
90
- # updated_at :datetime not null
91
- #
92
-