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
-
#belongs_to(*args, **options)
Alias for #references.
- #column(name, type, index: nil, **options)
- #references(*args, **options) (also: #belongs_to)
- #raise_on_if_exist_options(options) private
Instance Method Details
#belongs_to(*args, **options)
Alias for #references.
# 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, ** ) [:precision] ||= nil super end
#raise_on_if_exist_options(options) (private)
[ GitHub ]# File 'activerecord/lib/active_record/migration/compatibility.rb', line 247
def ( ) end
#references(*args, **options) Also known as: #belongs_to
[ GitHub ]# File 'activerecord/lib/active_record/migration/compatibility.rb', line 235
def references(*args, ** ) [:_uses_legacy_reference_index_name] = true super end