Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
brendon committed Nov 14, 2024
1 parent 237966e commit 5214605
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 @@ -40,10 +40,10 @@ To declare that your model should keep track of the position of its records you

```ruby
# The scope is global (all records will belong to the same list) and the database column
# is 'positioned'
# is 'position'
positioned

# The scope is on the belongs_to relationship 'list' and the database column is 'positioned'
# The scope is on the belongs_to relationship 'list' and the database column is 'position'
# We check if the scope is a belongs_to relationship and use its declared foreign_key as
# the scope value. In this case it would be 'list_id' since we haven't overridden the
# default foreign key.
Expand Down

0 comments on commit 5214605

Please sign in to comment.