mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
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 |
||
---|---|---|
.. | ||
dbs_test.rb | ||
dev_test.rb | ||
framework_test.rb | ||
initializers_test.rb | ||
log_test.rb | ||
migrations_test.rb | ||
multi_dbs_test.rb | ||
notes_test.rb | ||
restart_test.rb | ||
routes_test.rb | ||
tmp_test.rb |