Home > Ruby on Rails > Migrations 'Zombie State' and MS SQL

Migrations 'Zombie State' and MS SQL

4 April, 2006

Getting ‘Zombie State’ errors with migrations and MS SQL Server? Add the following to your config/enviroment.rb:

ActiveRecord::Base.connection.instance_variable_get("@connection")["AutoCommit"] = false
Advertisements
Categories: Ruby on Rails
  1. Anonymous
    4 October, 2006 at 7:05 am

    Rake Migrate doesn’t create/modify tables when this is set. I’ve unset this option to get Migrate to work but then set it at the end of the project and call rate schema:dump to fix the schema file

  1. No trackbacks yet.
Comments are closed.
%d bloggers like this: