<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,5 +1,7 @@
 *1.2.0 RC1* (November 22nd, 2006)
 
+* Added ActiveRecord::Base.clear_active_connections! in development mode so the database connection is not carried over from request to request. Some databases won't reread the schema if that doesn't happen (I'm looking at you SQLite), so you have to restart the server after each migration (= no fun) [DHH]
+
 * Made RAILS_GEM_VERSION work for beta gems too, so specifying 1.1.6 will give you 1.1.6.4520 if available [DHH]
 
 * Update to Prototype and script.aculo.us [5579]. [Sam Stephenson, Thomas Fuchs]</diff>
      <filename>railties/CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -55,7 +55,11 @@ class Dispatcher
     # mailers, and so forth. This allows them to be loaded again without having
     # to restart the server (WEBrick, FastCGI, etc.).
     def reset_application!
-      ActiveRecord::Base.reset_subclasses if defined?(ActiveRecord)
+      if defined?(ActiveRecord)
+        ActiveRecord::Base.reset_subclasses
+        ActiveRecord::Base.clear_active_connections!
+      end
+
       Dependencies.clear
       ActiveSupport::Deprecation.silence do # TODO: Remove after 1.2
         Class.remove_class(*Reloadable.reloadable_classes)</diff>
      <filename>railties/lib/dispatcher.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>82e5ff7c6ea6ff516cfc8d7ed7b18c128d7d50d4</id>
    </parent>
  </parents>
  <author>
    <name>David Heinemeier Hansson</name>
    <email>david@loudthinking.com</email>
  </author>
  <url>http://github.com/rubyruy/rails/commit/12949bbc135a33c9618e7816105d70b8a9c7e426</url>
  <id>12949bbc135a33c9618e7816105d70b8a9c7e426</id>
  <committed-date>2006-11-22T21:16:44-08:00</committed-date>
  <authored-date>2006-11-22T21:16:44-08:00</authored-date>
  <message>Added ActiveRecord::Base.clear_active_connections! in development mode so the database connection is not carried over from request to request. Some databases won't reread the schema if that doesn't happen (I'm looking at you SQLite), so you have to restart the server after each migration (= no fun) [DHH]

git-svn-id: http://svn-commit.rubyonrails.org/rails/branches/1-2-pre-release@5617 5ecf4fe2-1ee6-0310-87b1-e25e094e27de</message>
  <tree>1f6ac108a23dcefadd337c9f583de491e054f729</tree>
  <committer>
    <name>David Heinemeier Hansson</name>
    <email>david@loudthinking.com</email>
  </committer>
</commit>
