diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-03-26 20:04:12 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-03-26 20:04:12 -0300 |
commit | e1a41fb9fc9eaedc3c220c8844aa04074746fa84 (patch) | |
tree | 27133533719a7dd67472818547c12d483007c8d8 /activerecord/lib/active_record | |
parent | 4e2ca9b23fcaa98f4ef375a3a6d8eee579baec94 (diff) | |
download | rails-e1a41fb9fc9eaedc3c220c8844aa04074746fa84.tar.gz rails-e1a41fb9fc9eaedc3c220c8844aa04074746fa84.tar.bz2 rails-e1a41fb9fc9eaedc3c220c8844aa04074746fa84.zip |
Make method private
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb b/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb index 35931d864f..c74b916502 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb @@ -6,6 +6,12 @@ module ActiveRecord include Savepoints class SchemaCreation < AbstractAdapter::SchemaCreation + def visit_AddColumn(o) + add_column_position!(super, column_options(o)) + end + + private + def visit_TableDefinition(o) name = o.name create_sql = "CREATE#{' TEMPORARY' if o.temporary} TABLE #{quote_table_name(name)} " @@ -19,11 +25,6 @@ module ActiveRecord create_sql end - def visit_AddColumn(o) - add_column_position!(super, column_options(o)) - end - - private def visit_ChangeColumnDefinition(o) column = o.column options = o.options |