method
build_add_column_definition
rails latest stable - Class:
ActiveRecord::ConnectionAdapters::SchemaStatements
build_add_column_definition(table_name, column_name, type, **options)public
Builds an AlterTable object for adding a column to a table.
This definition object contains information about the column that would be created if the same arguments were passed to #add_column. See #add_column for information about passing a table_name, column_name, type and other options that can be passed.