Re: Rails - validate inclusion fails on rake test:integration

Frederick C.: “why validate the inclusion at all ? I’d validate the
presence of the
foo_id column and use a foreign key constraint to ensure that it can’t
contain junk.”

How you’d “use a foreign key constraint”? That is, how do you’d
implement the code in order “to ensure that it can’t contain junk”?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs