Module: ActiveRecord::Migration::Compatibility::V6_0::TableDefinition
- Defined in:
- activerecord/lib/active_record/migration/compatibility.rb
Instance Method Summary collapse
- #column(name, type, index: nil, **options) ⇒ Object
- #references(*args, **options) ⇒ Object (also: #belongs_to)
Instance Method Details
#column(name, type, index: nil, **options) ⇒ Object
229 230 231 232 |
# File 'activerecord/lib/active_record/migration/compatibility.rb', line 229 def column(name, type, index: nil, **) [:precision] ||= nil super end |
#references(*args, **options) ⇒ Object Also known as: belongs_to
223 224 225 226 |
# File 'activerecord/lib/active_record/migration/compatibility.rb', line 223 def references(*args, **) [:_uses_legacy_reference_index_name] = true super end |