Module: ActiveRecord::Migration::Compatibility::V4_2::TableDefinition

Defined in:
lib/active_record/migration/compatibility.rb

Instance Method Summary collapse

Instance Method Details

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



77
78
79
80
# File 'lib/active_record/migration/compatibility.rb', line 77

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

#timestamps(**options) ⇒ Object



83
84
85
86
# File 'lib/active_record/migration/compatibility.rb', line 83

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