Skip to content

Commit

Permalink
cleanup, update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke VanderHart committed Feb 2, 2012
1 parent 3a83610 commit 5024e8b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -35,7 +35,7 @@ To run a migration on an alternate database, just invoke the `self.connectomatic
````ruby
class CreateSomething < ActiveRecord::Migration

self.connectomatic(:my_database)
connectomatic(:my_database)

def self.up
#
Expand Down
1 change: 0 additions & 1 deletion lib/connectomatic/active_record/migration.rb
Expand Up @@ -10,7 +10,6 @@ def self.included(base)
# Always reset the default connection when running a migration
::ActiveRecord::Migrator.class_eval do
def ddl_transaction_with_reset(*args, &block)
puts "resetting!"
::ActiveRecord::Base.establish_connection ::ActiveRecord::Base.configurations[Rails.env]
ddl_transaction_without_reset(*args, &block)
end
Expand Down

0 comments on commit 5024e8b

Please sign in to comment.