Permalink
Browse files

Signed-off-by: Brian Hogan / New Auburn Personal Computer Services <b…

…phogan@gmail.com>
  • Loading branch information...
1 parent 7f51b48 commit 6c9afbbd0c0e0cf80624b8361f72a1756da83652 @gisikw gisikw committed with Jun 10, 2009
Showing with 3 additions and 4 deletions.
  1. +3 −4 tasks/db_migrate_merge.rake
@@ -47,10 +47,10 @@ end
svn=File.exist?(RAILS_ROOT+"/db/migrate/.svn")
puts "SVN: #{svn}"
if svn
- puts "1"
`svn mkdir #{backups}`
- puts "2"
- `svn mv #{RAILS_ROOT+"/db/migrate/*"} #{backups}`
+ Dir.glob(#{RAILS_ROOT+"/db/migrate/*").each do |migration|
+ `svn mv #{migration} #{backups}`
+ end
else
FileUtils.mv(RAILS_ROOT+"/db/migrate", backups)
FileUtils.mkdir(RAILS_ROOT+"/db/migrate")
@@ -62,7 +62,6 @@ end
f << new_migration
end
- puts "3"
`svn add #{new_file}` if svn
puts "Created #{new_file}."

0 comments on commit 6c9afbb

Please sign in to comment.