Permalink
Browse files

check if the table exists before droping the table

  • Loading branch information...
1 parent 8cf7170 commit e0b50a23074ba46101e247c5e85ce23fb794d320 @ricardochimal ricardochimal committed Apr 22, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/taps/schema.rb
View
@@ -22,7 +22,7 @@ def up
end
def down
- drop_table(\"#{table}\")
+ drop_table(\"#{table}\") if @db.table_exists?(\"#{table}\")
end
end
END_MIG

0 comments on commit e0b50a2

Please sign in to comment.