Module: ActiveRecord::Migration::Compatibility::V7_0::TableDefinition

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

Instance Method Summary collapse

Instance Method Details

#change(name, type, **options) ⇒ Object



78
79
80
81
# File 'lib/active_record/migration/compatibility.rb', line 78

def change(name, type, **options)
  options[:_skip_validate_options] = true
  super
end

#column(name, type, **options) ⇒ Object



73
74
75
76
# File 'lib/active_record/migration/compatibility.rb', line 73

def column(name, type, **options)
  options[:_skip_validate_options] = true
  super
end

#index(column_name, **options) ⇒ Object



83
84
85
86
# File 'lib/active_record/migration/compatibility.rb', line 83

def index(column_name, **options)
  options[:name] = legacy_index_name(name, column_name) if options[:name].nil?
  super
end

#references(*args, **options) ⇒ Object



88
89
90
91
# File 'lib/active_record/migration/compatibility.rb', line 88

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