Module: ActiveRecord::Migration::Compatibility::V6_0::TableDefinition

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

Instance Method Summary collapse

Instance Method Details

#column(name, type, index: nil, **options) ⇒ Object



238
239
240
241
# File 'lib/active_record/migration/compatibility.rb', line 238

def column(name, type, index: nil, **options)
  options[:precision] ||= nil
  super
end

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



232
233
234
235
# File 'lib/active_record/migration/compatibility.rb', line 232

def references(*args, **options)
  options[:_uses_legacy_reference_index_name] = true
  super
end