@@ -134,48 +134,48 @@ namespace :enju_leaf do
134
134
Manifestation . transaction do
135
135
case identifier_type . name
136
136
when 'isbn'
137
- IsbnRecordAndManifestation . create (
137
+ IsbnRecordAndManifestation . create! (
138
138
manifestation : identifier . manifestation ,
139
139
isbn_record : IsbnRecord . find_by ( body : identifier . body )
140
140
)
141
141
when 'issn'
142
- IssnRecordAndManifestation . create (
142
+ IssnRecordAndManifestation . create! (
143
143
manifestation : identifier . manifestation ,
144
144
issn_record : IssnRecord . find_by ( body : identifier . body )
145
145
)
146
146
when 'issn_l'
147
- IssnRecordAndManifestation . create (
147
+ IssnRecordAndManifestation . create! (
148
148
manifestation : identifier . manifestation ,
149
149
issn_record : IssnRecord . find_by ( body : identifier . body )
150
150
)
151
151
when 'jpno'
152
- JpnoRecord . create (
152
+ JpnoRecord . create! (
153
153
manifestation : identifier . manifestation ,
154
154
body : identifier . body
155
155
)
156
156
when 'iss_itemno'
157
- NdlBibIdRecord . create (
157
+ NdlBibIdRecord . create! (
158
158
manifestation : identifier . manifestation ,
159
159
body : identifier . body
160
160
)
161
161
when 'ncid'
162
- NcidRecord . create (
162
+ NcidRecord . create! (
163
163
manifestation : identifier . manifestation ,
164
164
body : identifier . body
165
165
)
166
166
when 'lccn'
167
- LccnRecord . create (
167
+ LccnRecord . create! (
168
168
manifestation : identifier . manifestation ,
169
169
body : identifier . body
170
170
)
171
171
when 'doi'
172
- DoiRecord . create (
172
+ DoiRecord . create! (
173
173
manifestation : identifier . manifestation ,
174
174
body : identifier . body
175
175
)
176
176
end
177
177
178
- identifier . destroy
178
+ # identifier.destroy
179
179
Rails . logger . info "#{ identifier_type . name } #{ identifier . body } migrated"
180
180
end
181
181
end
0 commit comments