Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'master' of git@github.com:napcs/lazy_developer

  • Loading branch information...
commit 541cc1271dfa0d493ba6738c4411fa09c6ba4451 2 parents 9c96449 + 4f10740
@napcs authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 tasks/db_migrate_merge.rake
View
4 tasks/db_migrate_merge.rake
@@ -15,9 +15,9 @@ namespace :db do
lines = file.split("\n")
index_regex = /add_index "(.*)", (.*):name => "(.*)"/
- tables = lines.collect{|line| " drop_table #{$1}" if line =~ table_regex }
-
table_regex = /create_table (.*),(.*)/
+
+ tables = lines.collect{|line| " drop_table #{$1}" if line =~ table_regex }
indexes = lines.collect{|line| " remove_index :#{$1}, :name => :#{$3}" if line =~ index_regex}
# hack to correct spacing so it "looks pretty"
Please sign in to comment.
Something went wrong with that request. Please try again.