method

invert_remove_foreign_key

invert_remove_foreign_key(args)
private

No documentation available.

# File activerecord/lib/active_record/migration/command_recorder.rb, line 218
      def invert_remove_foreign_key(args)
        from_table, to_table, remove_options = args
        raise ActiveRecord::IrreversibleMigration, "remove_foreign_key is only reversible if given a second table" if to_table.nil? || to_table.is_a?(Hash)

        reversed_args = [from_table, to_table]
        reversed_args << remove_options if remove_options

        [:add_foreign_key, reversed_args]
      end