rails-sqlserver / activerecord-sqlserver-adapter

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

Need to set explicitly set JSON attribute as such #1118

Closed aidanharan closed 8 months ago

aidanharan commented 8 months ago

Since SQL Server does not have a native JSON column type, JSON columns are stored as nvarchar(max). Need to explicitly mark a model's attribute as JSON since it cannot be inferred.

This PR marks the admin_users.json_options column as JSON so that the StoreTest#saved changes tracking for accessors with json column test passes following https://github.com/rails/rails/pull/43386