I just thought you'd all like to know that it would be a good idea to change 
the invititations.message database column to TEXT instead of VARCHAR(255).  
It's actually pretty easy to write a message that is longer than 255 characters 
in length, which will cause an ActiveRecord::StatementInvalid exception (and 
thus an Internal Server Error for you app running in production) unless you 
change the form w/ some javascript to limit the message to 255 or add some 
exception handling.  I just changed the db field to text since there isn't 
really a good reason for this restriction.

I did the following migration:

class FixInviteTextField < ActiveRecord::Migration
  def self.up
    change_column :invitations, :message, :text
  end

  def self.down
    change_column :invitations, :message, :string
  end
end

-- 
You received this message because you are subscribed to the Google Groups 
"CommunityEngine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/communityengine?hl=en.

Reply via email to