Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v1.2.6) is shown here.
add_column(table_name, column_name, type, options = {})
public
Adds a new
column to the named table. See TableDefinition#column for details of the
options you can use.
# File activerecord/lib/active_record/connection_adapters/frontbase_adapter.rb, line 792
def add_column(table_name, column_name, type, options = {})
add_column_sql = "ALTER TABLE #{table_name} ADD #{column_name} #{type_to_sql(type, options[:limit])}"
options[:type] = type
add_column_options!(add_column_sql, options)
execute(add_column_sql)
end