Skip to content

ActiveRecord::Migration.maintain_test_schema! ignore ssl_mode disabled #2844

@yk-eta

Description

@yk-eta

Steps to reproduce

create a project with mysql connection, run rspec test

Expected behavior

did not raise SSL error

Actual behavior

raised error

Failure/Error: ActiveRecord::Migration.maintain_test_schema!

ActiveRecord::ConnectionNotEstablished:
  TLS/SSL error: SSL is required, but the server does not support it

System configuration

config/database.yml

default: &default
  pool: 5
  adapter: mysql2
  encoding: utf8mb4
  charset: utf8mb4
  collation: utf8mb4_bin
  reconnect: false
  username: xxxx
  password: xxxx
  host: xxxx
  port: xxxx
  database: xxxx
  ssl_mode: disabled

database: 10.4.25-MariaDB libmysql - mysqlnd 8.1.10
ruby: 3.4.3
rails: 7.2.2.1
mysql2: 0.5.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions