fn drop_tables(&self, steps: &mut Vec<SqlMigrationStep>) {
        for dropped_table in self.dropped_tables() {
            steps.push(SqlMigrationStep::DropTable {
                table_index: dropped_table.table_index(),
            });

            if !self.flavour.should_drop_foreign_keys_from_dropped_tables() {
                continue;
            }

            for fk in dropped_table.foreign_keys() {
                steps.push(SqlMigrationStep::DropForeignKey {
                    table_index: dropped_table.table_index(),
                    foreign_key_index: fk.foreign_key_index(),
                });
            }
        }
    }
// We drop the foreign keys of dropped tables first, so we can drop tables in whatever order we
// please later.
We drop the foreign keys of dropped tables first, so we can drop tables in whatever order we
please later.
We drop the foreign keys of dropped tables first so we can drop tables in whatever order we please later .
fn drop_tables(&self, steps: &mut Vec<SqlMigrationStep>) {
        for dropped_table in self.dropped_tables() {
            steps.push(SqlMigrationStep::DropTable {
                table_index: dropped_table.table_index(),
            });
            if !self.flavour.should_drop_foreign_keys_from_dropped_tables() {
                continue;
            }
            for fk in dropped_table.foreign_keys() {
                steps.push(SqlMigrationStep::DropForeignKey {
                    table_index: dropped_table.table_index(),
                    foreign_key_index: fk.foreign_key_index(),
                });
            }
        }
    }
fn drop_tables ( & self , steps : & mut Vec < SqlMigrationStep > ) { for dropped_table in self . dropped_tables ( ) { steps . push ( SqlMigrationStep :: DropTable { table_index : dropped_table . table_index ( ) , } ) ; if ! self . flavour . should_drop_foreign_keys_from_dropped_tables ( ) { continue ; } for fk in dropped_table . foreign_keys ( ) { steps . push ( SqlMigrationStep :: DropForeignKey { table_index : dropped_table . table_index ( ) , foreign_key_index : fk . foreign_key_index ( ) , } ) ; } } }
We drop the foreign keys of dropped tables first, so we can drop tables in whatever order we
please later.
We drop the foreign keys of dropped tables first so we can drop tables in whatever order we please later .
&self
steps
&mut Vec<SqlMigrationStep>