method

change_column

rails latest stable - Class: ActiveRecord::ConnectionAdapters::MysqlAdapter

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.1.0) is shown here.

change_column(table_name, column_name, type, options = {})
public

No documentation available.

# File activerecord/lib/active_record/connection_adapters/mysql_adapter.rb, line 688
      def change_column(table_name, column_name, type, options = {}) #:nodoc:
        execute("ALTER TABLE #{quote_table_name(table_name)} #{change_column_sql(table_name, column_name, type, options)}")
      end