diff options
author | Kuldeep Aggarwal <kd.engineer@yahoo.co.in> | 2014-05-26 22:57:32 +0530 |
---|---|---|
committer | Kuldeep Aggarwal <kd.engineer@yahoo.co.in> | 2014-05-26 22:57:32 +0530 |
commit | b9c43e0ee9beda5d1587e168695afa80186f8c22 (patch) | |
tree | e814ee2a92684f883633929aee83d2c4b11986a8 | |
parent | 2ae6e110033416cc542404d81e30523b954c6daa (diff) | |
download | rails-b9c43e0ee9beda5d1587e168695afa80186f8c22.tar.gz rails-b9c43e0ee9beda5d1587e168695afa80186f8c22.tar.bz2 rails-b9c43e0ee9beda5d1587e168695afa80186f8c22.zip |
remove unwanted `to_sym` call.
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb index 9e53d10bb4..484c44dc8d 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb @@ -5,7 +5,7 @@ module ActiveRecord private def visit_AddColumn(o) - sql_type = type_to_sql(o.type.to_sym, o.limit, o.precision, o.scale) + sql_type = type_to_sql(o.type, o.limit, o.precision, o.scale) sql = "ADD COLUMN #{quote_column_name(o.name)} #{sql_type}" add_column_options!(sql, column_options(o)) end |