rails/railties/test/application/rake
Bogdan a8c0ebccbd Allow truncate for SQLite3 adapter and add rails db:seed:replant (#34779)
* 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
2019-03-04 14:57:38 -08:00
..
dbs_test.rb Allow truncate for SQLite3 adapter and add rails db:seed:replant (#34779) 2019-03-04 14:57:38 -08:00
dev_test.rb Respect config setting when output deprecation notice in rake tasks 2018-09-04 20:06:54 +09:00
framework_test.rb Adding frozen_string_literal pragma to Railties. 2017-08-14 19:08:09 +02:00
initializers_test.rb Respect config setting when output deprecation notice in rake tasks 2018-09-04 20:06:54 +09:00
log_test.rb Run in-app rails commands via fork+load where possible 2017-09-04 20:19:39 +09:30
migrations_test.rb Fix CustomCops/AssertNot to allow it to have failure message 2018-05-13 11:32:47 +09:00
multi_dbs_test.rb let Zeitwerk integration unhook AS::Dependencies 2019-02-19 15:22:48 -08:00
notes_test.rb Respect config setting when output deprecation notice in rake tasks 2018-09-04 20:06:54 +09:00
restart_test.rb Run in-app rails commands via fork+load where possible 2017-09-04 20:19:39 +09:30
routes_test.rb Add Exim and Qmail support to Action Mailbox 2019-01-12 21:38:26 -05:00
tmp_test.rb Run in-app rails commands via fork+load where possible 2017-09-04 20:19:39 +09:30