OSDN Git Service

copy pmds
authornomeu <nomeu@users.sourceforge.jp>
Thu, 7 Jul 2011 03:39:35 +0000 (12:39 +0900)
committernomeu <nomeu@users.sourceforge.jp>
Thu, 7 Jul 2011 03:39:35 +0000 (12:39 +0900)
bin/copy-pmds.rb [new file with mode: 0644]

diff --git a/bin/copy-pmds.rb b/bin/copy-pmds.rb
new file mode 100644 (file)
index 0000000..4554980
--- /dev/null
@@ -0,0 +1,6 @@
+Record::Pmd.all(:include => :arc).each do |rec|
+  pmd = Pmd.new
+  pmd.arc = rec.arc.code
+  pmd.path = rec.path
+  pmd.save
+end