<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,63 +1,15 @@
-# Be sure to restart your web server when you modify this file.
-
-# Uncomment below to force Rails into production mode when 
-# you don't control web/app server and can't set it the proper way
-# ENV['RAILS_ENV'] ||= 'production'
-
-# Specifies gem version of Rails to use when vendor/rails is not present
-# RAILS_GEM_VERSION = '1.1.6'
-
-# Bootstrap the Rails environment, frameworks, and default configuration
 require File.join(File.dirname(__FILE__), 'boot')
 require &quot;rubygems&quot;
 
 Rails::Initializer.run do |config|
-  # Settings in config/environments/* take precedence those specified here
-  
-  # Skip frameworks you're not going to use
-  # config.frameworks -= [ :action_web_service, :action_mailer ]
-
-  # Add additional load paths for your own custom dirs
-  # config.load_paths += %W( #{RAILS_ROOT}/extras )
-
-  # Force all environments to use the same logger level 
-  # (by default production uses :info, the others :debug)
-  # config.log_level = :debug
-
-  # Use the database for sessions instead of the file system
-  # (create the session table with 'rake db:sessions:create')
-  # config.action_controller.session_store = :active_record_store
 #  config.action_controller.session = {
 #    :session_key =&gt; '_example_rails_app',
 #    :secret      =&gt; '78b197e00cca77859c1e77d6498d16cd'
 #  }
-  # Use SQL instead of Active Record's schema dumper when creating the test database.
-  # This is necessary if your schema can't be completely dumped by the schema dumper, 
-  # like if you have constraints or database-specific column types
-  # config.active_record.schema_format = :sql
-
-  # Activate observers that should always be running
-  # config.active_record.observers = :cacher, :garbage_collector
-
-  # Make Active Record use UTC-base instead of local time
-  # config.active_record.default_timezone = :utc
-  
-  # See Rails::Configuration for more options
 end
 
-# Add new inflection rules using the following format 
-# (all these examples are active by default):
-# Inflector.inflections do |inflect|
-#   inflect.plural /^(ox)$/i, '\1en'
-#   inflect.singular /^(ox)en/i, '\1'
-#   inflect.irregular 'person', 'people'
-#   inflect.uncountable %w( fish sheep )
-# end
-
-# Include your application configuration below
-
 def in_memory_database?
-  ENV[&quot;RAILS_ENV&quot;] == &quot;test&quot; and 
+  ENV[&quot;RAILS_ENV&quot;] == &quot;test&quot; and
   ActiveRecord::Base.connection.class.to_s == &quot;ActiveRecord::ConnectionAdapters::SQLite3Adapter&quot; and
   Rails::Configuration.new.database_configuration['test']['database'] == ':memory:'
 end
@@ -66,4 +18,4 @@ if in_memory_database?
   puts &quot;creating sqlite in memory database&quot;
   # load &quot;#{RAILS_ROOT}/db/schema.rb&quot; # use db agnostic schema by default
   ActiveRecord::Migrator.up('db/migrate') # use migrations
-end
\ No newline at end of file
+end</diff>
      <filename>example_rails_app/config/environment.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,10 +3,10 @@ class InitialSchema &lt; ActiveRecord::Migration
     create_table :people do |t|
       t.column :name, :string, :default =&gt; nil
       t.column :address, :text
-    end
+    end rescue nil
   end
 
   def self.down
-    drop_table :people
+    drop_table :people rescue nil
   end
 end</diff>
      <filename>example_rails_app/db/migrate/001_initial_schema.rb</filename>
    </modified>
    <modified>
      <diff>@@ -4,10 +4,10 @@ class CreateAnimals &lt; ActiveRecord::Migration
       t.column :name,      :string, :default =&gt; nil
       t.column :person_id, :integer
       t.column :age, :float
-    end
+    end rescue nil
   end
 
   def self.down
-    drop_table :animals
+    drop_table :animals rescue nil
   end
 end</diff>
      <filename>example_rails_app/db/migrate/002_create_animals.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,11 +2,11 @@ class CreateThings &lt; ActiveRecord::Migration
   def self.up
     create_table :things do |t|
       t.column :name,      :string, :default =&gt; nil
-    end
+    end rescue nil
   end
 
   def self.down
-    drop_table :things
+    drop_table :things rescue nil
   end
 end
  </diff>
      <filename>example_rails_app/db/migrate/003_create_things.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,15 +2,15 @@ class CreateMockables &lt; ActiveRecord::Migration
   def self.up
     create_table :mockable_models do |t|
       t.column :name, :string
-    end
+    end rescue nil
     create_table :associated_models do |t|
       t.column :mockable_model_id, :integer
-    end
+    end rescue nil
   end
 
   def self.down
-    drop_table :mockable_models
-    drop_table :associated_models
+    drop_table :mockable_models rescue nil
+    drop_table :associated_models rescue nil
   end
 end
  </diff>
      <filename>example_rails_app/db/migrate/004_create_mockables.rb</filename>
    </modified>
    <modified>
      <diff>@@ -42,9 +42,9 @@ class PreCommit::RspecOnRails &lt; PreCommit
       sh &quot;git checkout #{pair[:tag]}&quot;
     end
     puts &quot;#####################################################&quot;
-    cleanup(cleanup_rspec)
     ensure_db_config
     clobber_sqlite_data
+    cleanup(cleanup_rspec)
     generate_rspec
 
     generate_login_controller
@@ -57,6 +57,7 @@ class PreCommit::RspecOnRails &lt; PreCommit
     # a clean DB?
     rake_sh &quot;db:test:prepare&quot;
     sh &quot;ruby vendor/plugins/rspec-rails/stories/all.rb&quot;
+  ensure
     cleanup(cleanup_rspec)
   end
 </diff>
      <filename>pre_commit/lib/pre_commit/rspec_on_rails.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>de7f9e0667c09e354ee0a60054988fa93b266a11</id>
    </parent>
  </parents>
  <author>
    <name>Brian Takita</name>
    <email>brian.takita@gmail.com</email>
  </author>
  <url>http://github.com/dchelimsky/rspec-dev/commit/d1782a195aa6040f3ef1c1654117e750bbf7a042</url>
  <id>d1782a195aa6040f3ef1c1654117e750bbf7a042</id>
  <committed-date>2008-05-21T23:29:55-07:00</committed-date>
  <authored-date>2008-05-21T23:29:42-07:00</authored-date>
  <message>Cleaning up Formatter. Making migrations less fragile to different versions of Rails.</message>
  <tree>c0b8f790b01731a1ad9838b64d588d737dcf7e47</tree>
  <committer>
    <name>Brian Takita</name>
    <email>brian.takita@gmail.com</email>
  </committer>
</commit>
