Browse files

Use a similar comment to dm-transactions when rescuing this error

  • Loading branch information...
1 parent 3861917 commit 24b3abfee4bc351e25717738bd9cfb3a3c379c85 @dkubb dkubb committed May 21, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/dm-migrations/auto_migration.rb
View
3 lib/dm-migrations/auto_migration.rb
@@ -205,7 +205,8 @@ def include_migration_api(const_name)
adapter.send(:include, migration_module(const_name))
end
rescue LoadError
- # do nothing
+ # Silently ignore the fact that no adapter extensions could be required
+ # This means that the adapter in use doesn't support migrations
end
def migration_module(const_name)

0 comments on commit 24b3abf

Please sign in to comment.