lib/active_record/connection_adapters/fdbsql/schema_statements.rb
def add_column(table_name, column_name, type, options = {})
            sql = "ALTER TABLE #{quote_table_name(table_name)} "+
                  "ADD COLUMN #{quote_column_name(column_name)} "+
                  "#{type_to_sql(type, options[:limit], options[:precision], options[:scale])}"
            add_column_options!(sql, options)
            execute(sql, SCHEMA_LOG_NAME)
          end
# Adds a new column to the named table.
# See TableDefinition#column for details of the options you can use.
Adds a new column to the named table.
See TableDefinition#column for details of the options you can use.
Adds a new column to the named table . See TableDefinition#column for details of the options you can use .
def add_column(table_name, column_name, type, options = {})
            sql = "ALTER TABLE #{quote_table_name(table_name)} "+
                  "ADD COLUMN #{quote_column_name(column_name)} "+
                  "#{type_to_sql(type, options[:limit], options[:precision], options[:scale])}"
            add_column_options!(sql, options)
            execute(sql, SCHEMA_LOG_NAME)
          end
def add_column ( table_name , column_name , type , options = { } ) sql = "ALTER TABLE #{quote_table_name(table_name)} " + "ADD COLUMN #{quote_column_name(column_name)} " + "#{type_to_sql(type, options[:limit], options[:precision], options[:scale])}" add_column_options! ( sql , options ) execute ( sql , SCHEMA_LOG_NAME ) end
Adds a new column to the named table.
Adds a new column to the named table .
table_name
column_name
type
options