method

add_column_position!

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

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.

add_column_position!(sql, options)
public

No documentation available.

# File activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb, line 558
      def add_column_position!(sql, options)
        if options[:first]
          sql << " FIRST"
        elsif options[:after]
          sql << " AFTER #{quote_column_name(options[:after])}"
        end
      end