method

remove_column

Importance_0
v7.0.0 - Show latest stable - 0 notes - Class: SchemaStatements
remove_column(table_name, column_name, type = nil, **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/mysql/schema_statements.rb, line 73
        def remove_column(table_name, column_name, type = nil, **options)
          if foreign_key_exists?(table_name, column: column_name)
            remove_foreign_key(table_name, column: column_name)
          end
          super
        end
Register or log in to add new notes.