diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-03-30 13:02:04 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-03-30 13:03:38 -0300 |
commit | 74a821760cc5c78d9932bbb1f15ba9cfba89b28d (patch) | |
tree | b4a5eafeb093c1d1298ba3c4801d6004798d76d8 | |
parent | 593e6978656e3dd07683d2add186b72c9fbad683 (diff) | |
download | rails-74a821760cc5c78d9932bbb1f15ba9cfba89b28d.tar.gz rails-74a821760cc5c78d9932bbb1f15ba9cfba89b28d.tar.bz2 rails-74a821760cc5c78d9932bbb1f15ba9cfba89b28d.zip |
No need to call to_sym
It is already called inside type_to_sql method.
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/schema_creation.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_creation.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_creation.rb index a51691bfa8..8ac20441da 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_creation.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_creation.rb @@ -13,7 +13,7 @@ module ActiveRecord end 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 #{quote_column_name(o.name)} #{sql_type}" add_column_options!(sql, column_options(o)) end @@ -26,7 +26,7 @@ module ActiveRecord end def visit_ColumnDefinition(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) column_sql = "#{quote_column_name(o.name)} #{sql_type}" add_column_options!(column_sql, column_options(o)) unless o.primary_key? column_sql |