module ActiveRecord::Schema::Definition

def define(info, &block) # :nodoc:

:nodoc:
def define(info, &block) # :nodoc:
  connection_pool.with_connection do |connection|
    instance_eval(&block)
    connection_pool.schema_migration.create_table
    if info[:version].present?
      connection.assume_migrated_upto_version(info[:version])
    end
    connection_pool.internal_metadata.create_table_and_set_flags(connection_pool.migration_context.current_environment)
  end
end