Flowdock
method

invert_add_foreign_key

Importance_0
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: CommandRecorder

Method not available on this version

This method is only available on newer versions. The first available version of the method is shown here.

invert_add_foreign_key(args) private

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/migration/command_recorder.rb, line 172
      def invert_add_foreign_key(args)
        from_table, to_table, add_options = args
        add_options ||= {}

        if add_options[:name]
          options = { name: add_options[:name] }
        elsif add_options[:column]
          options = { column: add_options[:column] }
        else
          options = to_table
        end

        [:remove_foreign_key, [from_table, options]]
      end
Register or log in to add new notes.