method

truncate_tables

Importance_0
v6.1.7.7 - 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 217
      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.