method

schema_precision

Importance_0
v7.1.3.4 - Show latest stable - 0 notes - Class: SchemaDumper
schema_precision(column) private

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/connection_adapters/mysql/schema_dumper.rb, line 55
          def schema_precision(column)
            if /\Atime(?:stamp)?\b/.match?(column.sql_type) && column.precision == 0
              nil
            elsif column.type == :datetime
              column.precision == 0 ? "nil" : super
            else
              super
            end
          end
Register or log in to add new notes.