lib/schema_plus/foreign_keys/active_record/connection_adapters/abstract_adapter.rb
# Define a foreign key constraint.  Valid options are :on_update,
# :on_delete, and :deferrable, with values as described at
# ConnectionAdapters::ForeignKeyDefinition
#
# (NOTE: Sqlite3 does not support altering a table to add foreign-key
# constraints; they must be included in the table specification when
# it's created.  If you're using Sqlite3, this method will raise an
# error.)
Define a foreign key constraint.

Sqlite3 does not support altering a table to add foreign-key
constraints; they must be included in the table specification when
it's created.  If you're using Sqlite3, this method will raise an
error.)
Define a foreign key constraint . Sqlite3 does not support altering a table to add foreign - key constraints ; they must be included in the table specification when it ' s created . If you ' re using Sqlite3 this method will raise an error . )
def remove_foreign_key_sql(from_table, to_table, options)
          if foreign_key_name = get_foreign_key_name(from_table, to_table, options)
            "DROP CONSTRAINT #{options[:if_exists] ? "IF EXISTS" : ""} #{foreign_key_name}"
          end
        end
def remove_foreign_key_sql ( from_table , to_table , options ) if foreign_key_name = get_foreign_key_name ( from_table , to_table , options ) "DROP CONSTRAINT #{options[:if_exists] ? "IF EXISTS" : ""} #{foreign_key_name}" end end
Define a foreign key constraint.
Define a foreign key constraint .
from_table
to_table
options