Permalink
Browse files

Make method private

  • Loading branch information...
1 parent 4e2ca9b commit e1a41fb9fc9eaedc3c220c8844aa04074746fa84 @rafaelfranca rafaelfranca committed Mar 26, 2014
Showing with 6 additions and 5 deletions.
  1. +6 −5 activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb
@@ -6,6 +6,12 @@ class AbstractMysqlAdapter < AbstractAdapter
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 @@ def visit_TableDefinition(o)
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

0 comments on commit e1a41fb

Please sign in to comment.