Method: ActiveRecord::ConnectionAdapters::PostgreSQL::SchemaStatements#add_column
- Defined in:
- activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
#add_column(table_name, column_name, type, **options) ⇒ Object
:nodoc:
460 461 462 463 464 |
# File 'activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb', line 460 def add_column(table_name, column_name, type, **) # :nodoc: clear_cache! super change_column_comment(table_name, column_name, [:comment]) if .key?(:comment) end |