Class: ActiveRecord::Migration::Compatibility::V5_2

Inherits:
V6_0
  • Object
show all
Defined in:
lib/active_record/migration/compatibility.rb

Direct Known Subclasses

V5_1

Defined Under Namespace

Modules: CommandRecorder, TableDefinition

Instance Method Summary collapse

Methods inherited from V6_0

#add_reference

Methods inherited from V6_1

#add_column, #change_column

Methods inherited from V7_0

#add_column, #add_foreign_key, #add_index, #change_column, #change_column_null, #create_table, #disable_extension, #rename_table

Instance Method Details

#add_timestamps(table_name, **options) ⇒ Object



285
286
287
288
# File 'lib/active_record/migration/compatibility.rb', line 285

def add_timestamps(table_name, **options)
  options[:precision] ||= nil
  super
end