method

drop_join_table

Importance_1
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: ActiveRecord::ConnectionAdapters::SchemaStatements
drop_join_table(table_1, table_2, **options) public

Drops the join table specified by the given arguments. See #create_join_table and #drop_table for details.

Although this command ignores the block if one is given, it can be helpful to provide one in a migration’s change method so it can be reverted. In that case, the block will be used by #create_join_table.

Show source
Register or log in to add new notes.