Skip to content

Mike Polischuk

Traveling in a Confused World

  • Travel
    • Travel in Mexico
    • Travel in Canada
    • Travel in Middle East
    • Travel in Mongolia
    • Travel in Georgia
  • Personal
  • Movies
  • Work

Make FactoryGirl Respect Uniqueness When Creating Associations

Programming
Mike11/10/201703/12/2026

If you have an ActiveRecord model associated with another model that has a uniqueness constraint, modeling it in FactoryGirl when writing specs doesn’t work out of the box. But there is a simple solution. Continue reading “Make FactoryGirl Respect Uniqueness When Creating Associations”

Welcome

Born in USSR, grew up in Israel, served in the army, worked in startups.

Since 2016, I'm traveling the Americas with my wife and our 5-year-old. Slowly making our way from Mexico to Patagonia, I'm trying to make sense of this modern life.

Get Occasional Updates

  • Travel
  • Personal
  • Movies
  • Work
Maker theme by ThemePatio