Skip to content

Commit

Permalink
Merge pull request #667 from onerinas/patch-1
Browse files Browse the repository at this point in the history
README update: Change depth_cache: true to cache_depth: true
  • Loading branch information
kbrock committed Jul 12, 2023
2 parents 0e17fe5 + 3fa8d97 commit 8bd197f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -77,7 +77,7 @@ $ rails g migration add_[ancestry]_to_[table] ancestry:string:index
class AddAncestryToTable < ActiveRecord::Migration[6.1]
def change
change_table(:table) do |t|
# postgrel
# postgres
t.string "ancestry", collation: 'C', null: false
t.index "ancestry"
# mysql
Expand Down Expand Up @@ -504,7 +504,7 @@ end
# app/models/[model.rb]

class [Model] < ActiveRecord::Base
has_ancestry depth_cache: true
has_ancestry cache_depth: true
end
```

Expand Down

0 comments on commit 8bd197f

Please sign in to comment.