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

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

Instance Method Summary collapse

Instance Method Details

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



196
197
198
199
# File 'activerecord/lib/active_record/migration/compatibility.rb', line 196

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

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



191
192
193
194
# File 'activerecord/lib/active_record/migration/compatibility.rb', line 191

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