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

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

Instance Method Summary collapse

Instance Method Details

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



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

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

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



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

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

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



69
70
71
72
# File 'lib/active_record/migration/compatibility.rb', line 69

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