# ActiveRecord Test

## Version

ActiveRecord 7.0

## Dependency

- Ruby 3.0
- bundle
- mysql-client
- TiDB
- Run `make sync`

## Sync Code

This test code sync from [here](https://github.com/hooopo/rails/tree/activerecord-orm-test).

## Run

- Local

    Change `TIDB_SERVER_PATH` parameter in `activerecord-orm-test/test_local.sh` script and run:

    ```shell
    make sync
    cd activerecord-orm-test
    sh test_local.sh
    ```

- CI

    `TIDB_SERVER_PATH` parameter required:

    ```shell
    cd activerecord-orm-test
    sh test.sh
    ```
- Docker images for test

  docker pull hub-new.pingcap.net/jenkins/ruby27:latest
