Module: ActiveRecord::Migration::Compatibility::V6_0::TableDefinition
- Defined in:
- lib/active_record/migration/compatibility.rb
Instance Method Summary collapse
- #references(*args, **options) ⇒ Object (also: #belongs_to)
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, **) args.each do |ref_name| ReferenceDefinition.new(ref_name, **).add_to(self) end end |