Deleting
In order to delete some items delete_all method should be used. Any
callback won’t be called. Items delete in efficient way in batch.
Address.where(city: 'London').delete_all
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
In order to delete some items delete_all method should be used. Any
callback won’t be called. Items delete in efficient way in batch.
Address.where(city: 'London').delete_all