method

schema_precision

Importance_0
v7.1.3.2 - 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/abstract/schema_dumper.rb, line 67
        def schema_precision(column)
          if column.type == :datetime
            case column.precision
            when nil
              "nil"
            when DEFAULT_DATETIME_PRECISION
              nil
            else
              column.precision.inspect
            end
          elsif column.precision
            column.precision.inspect
          end
        end
Register or log in to add new notes.