a8c0ebccbd
* Add `ActiveRecord::Base.connection.truncate` for SQLite3 adapter. SQLite doesn't support `TRUNCATE TABLE`, but SQLite3 adapter can support `ActiveRecord::Base.connection.truncate` by using `DELETE FROM`. `DELETE` without `WHERE` uses "The Truncate Optimization", see https://www.sqlite.org/lang_delete.html. * Add `rails db:seed:replant` that truncates database tables and loads the seeds Closes #34765 |
||
---|---|---|
.. | ||
database_tasks_test.rb | ||
mysql_rake_test.rb | ||
postgresql_rake_test.rb | ||
sqlite_rake_test.rb |