Module: ActiveRecord::Migration::Compatibility::V7_0::TableDefinition
- Includes:
- LegacyIndexName
- Defined in:
- lib/active_record/migration/compatibility.rb
Instance Method Summary collapse
- #change(name, type, **options) ⇒ Object
- #column(name, type, **options) ⇒ Object
- #index(column_name, **options) ⇒ Object
- #references(*args, **options) ⇒ Object
Instance Method Details
#change(name, type, **options) ⇒ Object
75 76 77 78 |
# File 'lib/active_record/migration/compatibility.rb', line 75 def change(name, type, **) [:_skip_validate_options] = true super end |
#column(name, type, **options) ⇒ Object
70 71 72 73 |
# File 'lib/active_record/migration/compatibility.rb', line 70 def column(name, type, **) [:_skip_validate_options] = true super end |
#index(column_name, **options) ⇒ Object
80 81 82 83 |
# File 'lib/active_record/migration/compatibility.rb', line 80 def index(column_name, **) [:name] = legacy_index_name(name, column_name) if [:name].nil? super end |
#references(*args, **options) ⇒ Object
85 86 87 88 |
# File 'lib/active_record/migration/compatibility.rb', line 85 def references(*args, **) [:_skip_validate_options] = true super end |