Flowdock
method

change_column_null_for_alter

Importance_0
v5.2.3 - Show latest stable - 0 notes - Class: SchemaStatements
change_column_null_for_alter(table_name, column_name, null, default = nil) private

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 714
          def change_column_null_for_alter(table_name, column_name, null, default = nil)
            "ALTER COLUMN #{quote_column_name(column_name)} #{null ? 'DROP' : 'SET'} NOT NULL"
          end
Register or log in to add new notes.