module ActiveRecord::ConnectionAdapters::SchemaStatements
Public Instance Methods
foreign_key_name(from_table, options)
click to toggle source
# File lib/friendly_fk.rb, line 14 def foreign_key_name(from_table, options) options.fetch(:name) do "fk_#{from_table}__#{options[:to_table]}" end end