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
-
#belongs_to(**options)
Alias for #references.
- #references(**options) (also: #belongs_to)
- #timestamps(**options)
- #raise_on_if_exist_options(options) private
Instance Method Details
#belongs_to(**options)
Alias for #references.
# 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 ( ) end
#references(**options) Also known as: #belongs_to
[ GitHub ]# File 'activerecord/lib/active_record/migration/compatibility.rb', line 418
def references(*, ** ) [:index] ||= false super end
#timestamps(**options)
[ GitHub ]# File 'activerecord/lib/active_record/migration/compatibility.rb', line 424
def (** ) [:null] = true if [:null].nil? super end