123456789_123456789_123456789_123456789_123456789_

Module: ActiveRecord::Migration::Compatibility::V4_2::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(**options)

Alias for #references.

[ GitHub ]

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

alias :belongs_to :references

#raise_on_if_exist_options(options) (private)

[ GitHub ]

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

def raise_on_if_exist_options(options)
end

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

[ GitHub ]

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

def references(*, **options)
  options[:index] ||= false
  super
end

#timestamps(**options)

[ GitHub ]

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

def timestamps(**options)
  options[:null] = true if options[:null].nil?
  super
end