aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-09-01 22:18:47 +0900
committerGitHub <noreply@github.com>2017-09-01 22:18:47 +0900
commit806f96ceaecbf9cf8d2fdbbdaf1fb2a499769cbf (patch)
treecb7d5798f5fd2b8fc0fda1a278e626483a12cbc6 /activerecord
parent17faed96b48d6c6b0bd3e8f5c5b0117537fefa11 (diff)
parentacaff3b3bfe4918e00920fb14c9f4240d00dcb21 (diff)
downloadrails-806f96ceaecbf9cf8d2fdbbdaf1fb2a499769cbf.tar.gz
rails-806f96ceaecbf9cf8d2fdbbdaf1fb2a499769cbf.tar.bz2
rails-806f96ceaecbf9cf8d2fdbbdaf1fb2a499769cbf.zip
Merge pull request #29850 from yahonda/test_with_mariadb_102_on_trusty
CI with the latest stable(GA) version of MariaDB 10.2
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/migration/columns_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/cases/migration/columns_test.rb b/activerecord/test/cases/migration/columns_test.rb
index 1b1d0af132..8ca20b6172 100644
--- a/activerecord/test/cases/migration/columns_test.rb
+++ b/activerecord/test/cases/migration/columns_test.rb
@@ -142,6 +142,10 @@ module ActiveRecord
end
def test_remove_column_with_multi_column_index
+ # MariaDB starting with 10.2.8
+ # Dropping a column that is part of a multi-column UNIQUE constraint is not permitted.
+ skip if current_adapter?(:Mysql2Adapter) && connection.mariadb? && connection.version >= "10.2.8"
+
add_column "test_models", :hat_size, :integer
add_column "test_models", :hat_style, :string, limit: 100
add_index "test_models", ["hat_style", "hat_size"], unique: true