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

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

Instance Method Summary collapse

Instance Method Details

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


146
147
148
149
# File 'activerecord/lib/active_record/migration/compatibility.rb', line 146

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

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


140
141
142
143
# File 'activerecord/lib/active_record/migration/compatibility.rb', line 140

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