Module: ActiveRecord::Migration::Compatibility::FourTwoShared::TableDefinition

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

Instance Method Summary collapse

Instance Method Details

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


18
19
20
21
# File 'activerecord/lib/active_record/migration/compatibility.rb', line 18

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

#timestamps(**options) ⇒ Object


24
25
26
27
# File 'activerecord/lib/active_record/migration/compatibility.rb', line 24

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