We use Rails 3.2.18 with activerecord-sqlserver-adapter gem. Everything was fine until we noticed an issue that decimal column is treated as integer. Tuns out that despite the fact that column has decimal(18,2) type set, ActiveRecords sees it as decimal(18,0), and treats attribute as integer.
> Model.columns_hash['decimal_attr'].sql_type
=> "decimal(18,0)"
> Model.columns_hash['decimal_attr'].type
=> :integer
Any suggestions? I'd be happy to get at least a direction to dig this.
Edit: this is an existing table in a legacy database