method

truncate_all

Importance_0
v6.0.0 - Show latest stable - 0 notes - Class: DatabaseTasks
truncate_all(environment = env) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 226
      def truncate_all(environment = env)
        ActiveRecord::Base.configurations.configs_for(env_name: environment).each do |db_config|
          truncate_tables db_config.config
        end
      end
Register or log in to add new notes.