jruby/activerecord-jdbc-adapter — pull request #455 by emassip (2013-08-28 15:59:10+00:00)
Title: Handle change_column error when column has default binding or indexes.

Hello,

This PR fixes an error which is thrown when the altered column already has a default constraint or indexes attached to it .
While other backends do, MSSQL does not allow such change.

Code is taken from https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/blob/2ba76fe9b0650da2387001e2e1091e2714af8a17/lib/active_record/connection_adapters/sqlserver/schema_statements.rb#L62.