Skip to content

Commit

Permalink
Update README.md. Remove deprecated options.
Browse files Browse the repository at this point in the history
  • Loading branch information
skalibog committed Oct 31, 2023
1 parent 37438c3 commit 5df7abb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ end

```ruby
class Article
index({ title: 1 }, { unique: true, background: true, drop_dups: true })
index({ title: 1 }, { unique: true, background: true })
index({ title: 1, created_at: -1 })
index({ category: 1 })
end
Expand All @@ -190,7 +190,7 @@ RSpec.describe Article, type: :model do
it do
is_expected
.to have_index_for(title: 1)
.with_options(unique: true, background: true, drop_dups: true)
.with_options(unique: true, background: true)
end
it { is_expected.to have_index_for(title: 1, created_at: -1) }
it { is_expected.to have_index_for(category: 1) }
Expand Down

0 comments on commit 5df7abb

Please sign in to comment.