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



230
231
232
233
# File 'lib/active_record/migration/compatibility.rb', line 230

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

#timestamps(**options) ⇒ Object



236
237
238
239
# File 'lib/active_record/migration/compatibility.rb', line 236

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