From be5527b8e8fcc25946b128fe78db10d5bee2a483 Mon Sep 17 00:00:00 2001 From: Yves Senn Date: Tue, 3 Dec 2013 17:54:25 +0100 Subject: `connection.type_to_sql` returns a `String` for unmapped types. Closes #13146. This fixes an error when using: ``` change_colum :table, :column, :bigint, array: true ``` --- .../lib/active_record/connection_adapters/abstract/schema_statements.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib') diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb index 6268ae4875..51a6929dab 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb @@ -690,7 +690,7 @@ module ActiveRecord column_type_sql else - type + type.to_s end end -- cgit v1.2.3