Add foreign key options to safe_add_reference (#238) #224
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- ruby: 3.2 | |
gemfile: gemfiles/activerecord71.gemfile | |
- ruby: 3.1 | |
gemfile: Gemfile | |
- ruby: "3.0" | |
gemfile: gemfiles/activerecord61.gemfile | |
- ruby: 2.7 | |
gemfile: gemfiles/activerecord60.gemfile | |
- ruby: 2.6 | |
gemfile: gemfiles/activerecord52.gemfile | |
env: | |
BUNDLE_GEMFILE: ${{ matrix.gemfile }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- uses: ankane/setup-postgres@v1 | |
with: | |
database: strong_migrations_test | |
- run: bundle exec rake test | |
- uses: ankane/setup-mysql@v1 | |
with: | |
database: strong_migrations_test | |
- run: ADAPTER=mysql2 bundle exec rake test | |
- uses: ankane/setup-mariadb@v1 | |
with: | |
database: strong_migrations_test | |
- run: ADAPTER=mysql2 bundle exec rake test |