lib/active_record/connection_adapters/fdbsql/schema_statements.rb
def change_column(table_name, column_name, type, options = {})
          execute(
            "ALTER TABLE #{quote_table_name(table_name)} "+
            "ALTER COLUMN #{quote_column_name(column_name)} "+
            "SET DATA TYPE #{type_to_sql(type, options[:limit], options[:precision], options[:scale])}",
            SCHEMA_LOG_NAME
          )
          change_column_default(table_name, column_name, options[:default]) if options_include_default?(options)
          change_column_null(table_name, column_name, options[:null], options[:default]) if options.key?(:null)
        end
# Changes the column's definition according to the new options.
# See TableDefinition#column for details of the options you can use.
Changes the column's definition according to the new options.
See TableDefinition#column for details of the options you can use.
Changes the column ' s definition according to the new options . See TableDefinition#column for details of the options you can use .
def change_column(table_name, column_name, type, options = {})
          execute(
            "ALTER TABLE #{quote_table_name(table_name)} "+
            "ALTER COLUMN #{quote_column_name(column_name)} "+
            "SET DATA TYPE #{type_to_sql(type, options[:limit], options[:precision], options[:scale])}",
            SCHEMA_LOG_NAME
          )
          change_column_default(table_name, column_name, options[:default]) if options_include_default?(options)
          change_column_null(table_name, column_name, options[:null], options[:default]) if options.key?(:null)
        end
def change_column ( table_name , column_name , type , options = { } ) execute ( "ALTER TABLE #{quote_table_name(table_name)} " + "ALTER COLUMN #{quote_column_name(column_name)} " + "SET DATA TYPE #{type_to_sql(type, options[:limit], options[:precision], options[:scale])}" , SCHEMA_LOG_NAME ) change_column_default ( table_name , column_name , options [ :default ] ) if options_include_default? ( options ) change_column_null ( table_name , column_name , options [ :null ] , options [ :default ] ) if options . key? ( :null ) end
Changes the column's definition according to the new options.
Changes the column ' s definition according to the new options .
table_name
column_name
type
options