aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2013-12-03 17:54:25 +0100
committerYves Senn <yves.senn@gmail.com>2013-12-03 17:54:25 +0100
commitbe5527b8e8fcc25946b128fe78db10d5bee2a483 (patch)
tree22bcea749969051c6a03ee69d7e47a0d877b68b4 /activerecord/lib
parent7c20a8b5581f1b0054cba590542960be455a027e (diff)
downloadrails-be5527b8e8fcc25946b128fe78db10d5bee2a483.tar.gz
rails-be5527b8e8fcc25946b128fe78db10d5bee2a483.tar.bz2
rails-be5527b8e8fcc25946b128fe78db10d5bee2a483.zip
`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 ```
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb2
1 files changed, 1 insertions, 1 deletions
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