model validation with SQL Server

Hi,

I have a model that looks like this:

class Assessment < ActiveRecord::Base   ...   set_table_name "SCG_Assessment"   set_primary_key "ID_"   validates_presence_of :Name, :Description, :Version   validates_length_of :Name, :maximum => 50   ... end

Are you sure you don't want :maximum => 49? Your test string was exactly 50 characters long, so according to :maximum => 50 it's a valid length.

My setup is windows server 2003 R2, RoR 1.1.6, and SQL Server 2005.

God save you :slight_smile: