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


177
178
179
180
# File 'activerecord/lib/active_record/migration/compatibility.rb', line 177

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

#timestamps(**options) ⇒ Object


183
184
185
186
# File 'activerecord/lib/active_record/migration/compatibility.rb', line 183

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