rails-sqlserver / activerecord-sqlserver-adapter

SQL Server Adapter For Rails
MIT License
972 stars 558 forks source link

Enable identity insert on same connection #1101

Closed aidanharan closed 1 year ago

aidanharan commented 1 year ago

Fix issue with identity insert.

https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/actions/runs/6339845835/job/17219899517

ActiveRecord::Migration::ChangeSchemaTest#test_add_column_not_null_with_default:
[ActiveRecord::NotNullViolation] exception expected, not
Class: <ActiveRecord::ActiveRecordError>
Message: <"IDENTITY_INSERT could not be turned OFF for table [testings]">
---Backtrace---