mirror of
https://github.com/thoughtbot/shoulda-matchers.git
synced 2022-11-09 12:01:38 -05:00
Update on validates_uniqueness_of documentation example
[ci skip]
This commit is contained in:
parent
6a349b6e62
commit
b28b0e13c7
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ module Shoulda
|
|||
# unique, but the scoped attributes are not unique either.
|
||||
#
|
||||
# class Post < ActiveRecord::Base
|
||||
# validates_uniqueness_of :slug, scope: :user_id
|
||||
# validates_uniqueness_of :slug, scope: :journal_id
|
||||
# end
|
||||
#
|
||||
# # RSpec
|
||||
|
|
Loading…
Reference in a new issue