method

build_change_column_default_definition

Importance_0
v7.2.3 - Show latest stable - 0 notes - Class: SchemaStatements
build_change_column_default_definition(table_name, column_name, default_or_changes) 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 445
        def build_change_column_default_definition(table_name, column_name, default_or_changes) # :nodoc:
          column = column_for(table_name, column_name)
          return unless column

          default = extract_new_default_value(default_or_changes)
          ChangeColumnDefaultDefinition.new(column, default)
        end
Register or log in to add new notes.