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
Instance Method Details
#change(name, type, **options) ⇒ Object
71 72 73 74 |
# File 'lib/active_record/migration/compatibility.rb', line 71 def change(name, type, **) [:_skip_validate_options] = true super end |
#column(name, type, **options) ⇒ Object
66 67 68 69 |
# File 'lib/active_record/migration/compatibility.rb', line 66 def column(name, type, **) [:_skip_validate_options] = true super end |
#index(column_name, **options) ⇒ Object
76 77 78 79 |
# File 'lib/active_record/migration/compatibility.rb', line 76 def index(column_name, **) [:name] = legacy_index_name(name, column_name) if [:name].nil? super end |