docs/Extension/Models.md in archangel-0.0.5 vs docs/Extension/Models.md in archangel-0.0.6
- old
+ new
@@ -8,10 +8,10 @@
module Archangel
class Foo < ApplicationRecord
before_validation :parameterize_slug
validates :bar, presence: true
- validates :slug, presence: true, uniqueness: true
+ validates :slug, presence: true, uniqueness: { scope: :site_id }
belongs_to :site
protected