+++ /dev/null
-Record::Arc.all.each do |rec|
- arc = Arc.find(rec.code)
- arc.thumbs = rec.thumbs.map { |t| t.video_id }
- arc.save
-end
+++ /dev/null
-Record::Arc.all(:include => :location).each do |rec|
- arc = Arc.new
- arc.key = rec.code
- arc.extname = rec.extname
- arc.site = rec.location.code
- arc.summary = rec.summary
- arc.origname = rec.origname
- arc.locked = rec.locked
- arc.save
-end
+++ /dev/null
-Record::Pmd.all(:include => :arc).each do |rec|
- pmd = Pmd.new
- pmd.arc = rec.arc.code
- pmd.path = rec.path
- pmd.save
-end
+++ /dev/null
-Record::Location.all.each do |location|
- site = Site.new
- site.key = location.code
- site.url = location.site
- site.summary = location.summary
- site.save
-end
+++ /dev/null
-Record::Thumb.all.each do |rec|
- thumb = Thumb.find(rec.video_id)
- thumb.arcs = rec.arcs.map { |a| a.code }
- thumb.save
-end
+++ /dev/null
-Record::Thumb.all.each do |rec|
- thumb = Thumb.new
- thumb.key = rec.video_id
- thumb.title = rec.title
- thumb.description = rec.description
- thumb.save
-end
+++ /dev/null
-Record::Vmd.all(:include => :arc).each do |rec|
- vmd = Vmd.new
- vmd.arc = rec.arc.code
- vmd.path = rec.path
- vmd.save
-end
+++ /dev/null
-Record::X.all(:include => :arc).each do |rec|
- x = X.new
- x.arc = rec.arc.code
- x.path = rec.path
- x.save
-end