Hi everyone.

I have a quick question.  I'm wondering if there's a Rails plugin along
the lines of foreign_key_migrations, but for check constraints.  (I
found mig-constraints already, but that's apparently not maintained and
doesn't seem to work.)  Basically, I'd like to be able to do something
like

add_column :rating, :integer, :check => '<= 5'

and have the check constraint generated.

If no one can refer me to a suitable plugin, I think I'll start hacking
foreign_key_migrations to add this feature.

Best,
--
Marnen Laibow-Koser
mar...@marnen.org
http://www.marnen.org
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to