123456789_123456789_123456789_123456789_123456789_

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

Do not use. This module is for internal use only.
Relationships & Source Files
Defined in: activerecord/lib/active_record/migration/compatibility.rb

Instance Method Summary

Instance Method Details

#belongs_to(*args, **options)

Alias for #references.

[ GitHub ]

  
# File 'activerecord/lib/active_record/migration/compatibility.rb', line 239

alias :belongs_to :references

#column(name, type, index: nil, **options)

[ GitHub ]

  
# File 'activerecord/lib/active_record/migration/compatibility.rb', line 241

def column(name, type, index: nil, **options)
  options[:precision] ||= nil
  super
end

#raise_on_if_exist_options(options) (private)

[ GitHub ]

  
# File 'activerecord/lib/active_record/migration/compatibility.rb', line 247

def raise_on_if_exist_options(options)
end

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

[ GitHub ]

  
# File 'activerecord/lib/active_record/migration/compatibility.rb', line 235

def references(*args, **options)
  options[:_uses_legacy_reference_index_name] = true
  super
end