lib/active_wrapper/db.rb in winton-active_wrapper-0.1.4 vs lib/active_wrapper/db.rb in winton-active_wrapper-0.1.5

- old
+ new

@@ -19,16 +19,16 @@ def migrate(version=nil) ActiveRecord::Migrator.migrate("#{base}/db/migrate", version) end def migrate_reset - if @@env == 'test' + if @env == 'test' stdout = $stdout $stdout = File.new('/dev/null', 'w') end migrate(0) migrate - if @@env == 'test' + if @env == 'test' $stdout = stdout end end def generate_migration(name=nil) \ No newline at end of file