123456789_123456789_123456789_123456789_123456789_

Module: ActiveRecord::Migration::Compatibility::V5_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 357

alias :belongs_to :references

#primary_key(name, type = :primary_key, **options)

[ GitHub ]

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

def primary_key(name, type = :primary_key, **options)
  type = :integer if type == :primary_key
  super
end

#raise_on_if_exist_options(options) (private)

[ GitHub ]

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

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 354

def references(*args, **options)
  super(*args, type: :integer, **options)
end