method

add_foreign_key

Importance_0
v8.0.0 - Show latest stable - 0 notes - Class: V7_0
add_foreign_key(from_table, to_table, **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/migration/compatibility.rb, line 148
        def add_foreign_key(from_table, to_table, **options)
          if connection.adapter_name == "PostgreSQL" && options[:deferrable] == true
            options[:deferrable] = :immediate
          end
          super
        end
Register or log in to add new notes.