Skip to content

Commit

Permalink
Add type definitions to delete_all
Browse files Browse the repository at this point in the history
  • Loading branch information
kazuyainoue0124 committed Oct 31, 2024
1 parent df0b86d commit eccfa35
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gems/activerecord/6.0/activerecord-generated.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,7 @@ module ActiveRecord
# @author.books.delete_all(:delete_all)
#
# See delete for more info.
def delete_all: (?untyped? dependent) -> untyped
def delete_all: (?Symbol dependent) -> Integer

# Destroy all the records from this association.
#
Expand Down Expand Up @@ -1232,7 +1232,7 @@ module ActiveRecord
#
# Pet.find(1, 2, 3)
# # => ActiveRecord::RecordNotFound: Couldn't find all Pets with 'id': (1, 2, 3)
def delete_all: (?untyped? dependent) -> untyped
def delete_all: (?Symbol dependent) -> Integer

# Deletes the records of the collection directly from the database
# ignoring the +:dependent+ option. Records are instantiated and it
Expand Down Expand Up @@ -19574,7 +19574,7 @@ module ActiveRecord
#
# Post.distinct.delete_all
# # => ActiveRecord::ActiveRecordError: delete_all doesn't support distinct
def delete_all: () -> untyped
def delete_all: () -> Integer

# Finds and destroys all records matching the specified conditions.
# This is short-hand for <tt>relation.where(condition).destroy_all</tt>.
Expand Down

0 comments on commit eccfa35

Please sign in to comment.