Module: ActiveRecord::Migration::Compatibility::V6_1::TableDefinition

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

Instance Method Summary collapse

Instance Method Details

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



184
185
186
187
# File 'activerecord/lib/active_record/migration/compatibility.rb', line 184

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

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



189
190
191
192
# File 'activerecord/lib/active_record/migration/compatibility.rb', line 189

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

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



179
180
181
182
# File 'activerecord/lib/active_record/migration/compatibility.rb', line 179

def new_column_definition(name, type, **options)
  type = PostgreSQLCompat.compatible_timestamp_type(type, @conn)
  super
end