Module: ActiveRecord::Migration::Compatibility::V6_0::TableDefinition

Defined in:
lib/active_record/migration/compatibility.rb

Instance Method Summary collapse

Instance Method Details

#references(*args, **options) ⇒ Object Also known as: belongs_to



42
43
44
45
46
# File 'lib/active_record/migration/compatibility.rb', line 42

def references(*args, **options)
  args.each do |ref_name|
    ReferenceDefinition.new(ref_name, **options).add_to(self)
  end
end