method

truncate_tables

Importance_0
v7.0.0 - Show latest stable - 0 notes - Class: DatabaseTasks
truncate_tables(db_config) private

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 240
      def truncate_tables(db_config)
        ActiveRecord::Base.establish_connection(db_config)

        connection = ActiveRecord::Base.connection
        connection.truncate_tables(*connection.tables)
      end
Register or log in to add new notes.