Migrations 'Zombie State' and MS SQL
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
A list of stuff I should remember but never do
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
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
Anonymous
4 Oct 06 at 7:05 am