1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/test/application
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
..
configuration Use respond_to test helpers 2018-01-25 23:32:58 -05:00
initializers Enable Style/RedundantBegin cop to avoid newly adding redundant begin block 2018-12-21 06:12:42 +09:00
middleware Remove deprecated config.secret_token 2019-01-17 16:08:34 -05:00
rack Log the remote IP addr of clients behind a proxy 2018-07-31 20:45:37 +05:30
rake Allow truncate for SQLite3 adapter and add rails db:seed:replant (#34779) 2019-03-04 14:57:38 -08:00
asset_debugging_test.rb Pass the skip_pipeline option in image_submit_tag 2018-03-14 11:18:06 +00:00
assets_test.rb Make Webpacker the default JavaScript compiler for Rails 6 (#33079) 2018-09-30 22:31:21 -07:00
bin_setup_test.rb Ignore warnings such as Psych.safe_load is deprecated 2018-11-13 11:19:03 +00:00
configuration_test.rb Replace autoloader accessors with Rails.autoloaders.{main,once} 2019-02-14 22:34:16 -08:00
console_test.rb Remove deprecated environment argument from the rails commands 2019-01-17 16:08:34 -05:00
content_security_policy_test.rb Remove trailing semi-colon from CSP 2018-02-19 12:20:43 +00:00
credentials_test.rb Restructure credentials after environment overrides. 2019-01-14 20:13:00 +01:00
current_attributes_integration_test.rb Don't need the layout here 2017-09-04 05:44:45 +09:30
dbconsole_test.rb Use correct variable 2018-09-11 07:06:30 +09:00
generators_test.rb Do not show credentials in generators help 2017-11-09 20:59:16 +09:00
help_test.rb Run in-app rails commands via fork+load where possible 2017-09-04 20:19:39 +09:30
integration_test_case_test.rb rails new runs rails active_storage:install 2017-11-06 21:29:14 +00:00
loading_test.rb let Zeitwerk integration unhook AS::Dependencies 2019-02-19 15:22:48 -08:00
mailer_previews_test.rb Zeitwerk integration 2019-02-12 02:28:04 -08:00
middleware_test.rb No need to handle if FrozenError is available 2018-12-23 13:26:20 +00:00
multiple_applications_test.rb Zeitwerk integration 2019-02-12 02:28:04 -08:00
paths_test.rb Fix CustomCops/AssertNot to allow it to have failure message 2018-05-13 11:32:47 +09:00
per_request_digest_cache_test.rb Include ActiveSupport::Testing::MethodCallAssertions in railties/test/isolation/abstract_unit.rb 2018-06-09 00:00:28 +03:00
rackup_test.rb Remove unnecessary migration deletion 2017-11-08 13:24:16 +09:00
rake_test.rb Zeitwerk integration 2019-02-12 02:28:04 -08:00
rendering_test.rb Fix RenderingTest in railtie 2018-04-04 06:12:24 +09:00
routing_test.rb Adding frozen_string_literal pragma to Railties. 2017-08-14 19:08:09 +02:00
runner_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
server_test.rb Fix rubocop violations 2019-02-09 10:50:58 +09:00
test_runner_test.rb Railities typo fixes. 2019-02-01 16:42:40 +05:30
test_test.rb Add test parallelization to Rails 2018-02-15 19:21:24 -05:00
url_generation_test.rb Respect ENV variables when finding DBs etc for the test suite 2019-02-06 01:20:06 +10:30
version_test.rb Run in-app rails commands via fork+load where possible 2017-09-04 20:19:39 +09:30
zeitwerk_integration_test.rb Make this test stronger 2019-02-23 15:27:24 -08:00