method

down

Method not available on this version

This method is only available on newer versions. The first available version (v7.2.3) is shown here.

down(target_version = nil, &block)
public

No documentation available.

# File activerecord/lib/active_record/migration.rb, line 1267
    def down(target_version = nil, &block) # :nodoc:
      selected_migrations = if block_given?
        migrations.select(&block)
      else
        migrations
      end

      Migrator.new(:down, selected_migrations, schema_migration, internal_metadata, target_version).migrate
    end