Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make method private

  • Loading branch information...
commit e1a41fb9fc9eaedc3c220c8844aa04074746fa84 1 parent 4e2ca9b
Rafael Mendonça França rafaelfranca authored
11 activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.