I\'m trying to write a validation where only one record can be true. I have a \'game\' model with an \'active\' boolean column, only one game can be active at any time, so if so
I think you can just check the uniqueness of active_game when it is true.
validates_uniqueness_of :active_game, if: :active_game