method

add_column

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: V6_1
add_column(table_name, column_name, type, **options) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/migration/compatibility.rb, line 168
        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
Register or log in to add new notes.