diff --git a/Gemfile b/Gemfile index 2f12e018..d18ea636 100644 --- a/Gemfile +++ b/Gemfile @@ -8,3 +8,4 @@ gem "activerecord", "~> 7.2.0" gem "pg" gem "mysql2" gem "trilogy" +gem "sqlite3" diff --git a/gemfiles/activerecord61.gemfile b/gemfiles/activerecord61.gemfile index 513a41b3..26e80962 100644 --- a/gemfiles/activerecord61.gemfile +++ b/gemfiles/activerecord61.gemfile @@ -8,3 +8,4 @@ gem "activerecord", "~> 6.1.0" gem "pg", "< 1.5" gem "mysql2" gem "activerecord-trilogy-adapter" +gem "sqlite3", "< 2" diff --git a/gemfiles/activerecord70.gemfile b/gemfiles/activerecord70.gemfile index 4e773c14..1de09b29 100644 --- a/gemfiles/activerecord70.gemfile +++ b/gemfiles/activerecord70.gemfile @@ -8,3 +8,4 @@ gem "activerecord", "~> 7.0.0" gem "pg" gem "mysql2" gem "activerecord-trilogy-adapter" +gem "sqlite3", "< 2" diff --git a/gemfiles/activerecord71.gemfile b/gemfiles/activerecord71.gemfile index 371012d6..48eb160b 100644 --- a/gemfiles/activerecord71.gemfile +++ b/gemfiles/activerecord71.gemfile @@ -8,3 +8,4 @@ gem "activerecord", "~> 7.1.0" gem "pg" gem "mysql2" gem "trilogy" +gem "sqlite3", "< 2" diff --git a/gemfiles/activerecord80.gemfile b/gemfiles/activerecord80.gemfile index ae7b6f1f..102160af 100644 --- a/gemfiles/activerecord80.gemfile +++ b/gemfiles/activerecord80.gemfile @@ -8,3 +8,4 @@ gem "activerecord", "~> 8.0.0.beta1" gem "pg" gem "mysql2" gem "trilogy" +gem "sqlite3" diff --git a/test/misc_test.rb b/test/misc_test.rb index c55fbcc1..35301bfd 100644 --- a/test/misc_test.rb +++ b/test/misc_test.rb @@ -77,4 +77,15 @@ def test_target_version_outside_developer_env end end end + + def test_unsupported_adapter + previous_db_config = ActiveRecord::Base.connection_db_config.configuration_hash + ActiveRecord::Base.establish_connection(adapter: "sqlite3", database: ":memory:") + schema_migration.create_table + assert_output nil, /Unsupported adapter/ do + assert_unsafe CreateTableForce + end + ensure + ActiveRecord::Base.establish_connection(previous_db_config) if previous_db_config + end end