method
add_column
v7.0.0 -
Show latest stable
- Class:
ActiveRecord::Migration::Compatibility::V6_1
add_column(table_name, column_name, type, **options)public
No documentation available.
# File activerecord/lib/active_record/migration/compatibility.rb, line 50
def add_column(table_name, column_name, type, **options)
if type == :datetime
options[:precision] ||= nil
end
type = PostgreSQLCompat.compatible_timestamp_type(type, connection)
super
end