APIdock / Ruby on Rails
/
Browse About
method

execute_block

v7.1.3.4 - Show latest stable - Class: ActiveRecord::Migration
execute_block()
private

No documentation available.

# File activerecord/lib/active_record/migration.rb, line 1137
      def execute_block
        if connection.respond_to? :execute_block
          super # use normal delegation to record the block
        else
          yield
        end
      end

Related methods

  • Instance methods
  • announce
  • connection
  • copy
  • disable_ddl_transaction
  • down
  • exec_migration
  • execution_strategy
  • method_missing
  • migrate
  • next_migration_number
  • proper_table_name
  • reversible
  • revert
  • reverting?
  • run
  • say
  • say_with_time
  • suppress_messages
  • table_name_options
  • up
  • up_only
  • write
  • Class methods
  • []
  • check_all_pending!
  • check_pending!
  • check_pending_migrations
  • current_version
  • disable_ddl_transaction!
  • inherited
  • load_schema_if_pending!
  • maintain_test_schema!
  • method_missing
  • migrate
  • nearest_delegate
  • new
  • valid_version_format?
  • Private methods
  • privateany_schema_needs_update?
  • privatedb_configs_in_current_env
  • privateenv
  • privatepending_migrations
  • privatecommand_recorder
  • privateexecute_block
  • privateformat_arguments
  • privateinternal_option?
APIdock API Documentation Browser

© 2026 APIdock