method

change_column_for_alter

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: SchemaStatements
change_column_for_alter(table_name, column_name, type, **options) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb, line 1002
          def change_column_for_alter(table_name, column_name, type, **options)
            change_col_def = build_change_column_definition(table_name, column_name, type, **options)
            sqls = [schema_creation.accept(change_col_def)]
            sqls << Proc.new { change_column_comment(table_name, column_name, options[:comment]) } if options.key?(:comment)
            sqls
          end
Register or log in to add new notes.