method

up

Method not available on this version

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

up(target_version = nil, &block)
public

No documentation available.

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

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