Sha256: 3cf457ea026528ab7057f763b47b9607165aaf2b228059b205db9e1df8a6fa39
Contents?: true
Size: 417 Bytes
Versions: 2
Compression:
Stored size: 417 Bytes
Contents
module SchemaPlusDefaultExpr module ActiveRecord module ConnectionAdapters module Mysql2Adapter def default_expr_valid?(expr) false # only the TIMESTAMP column accepts SQL column defaults and rails uses DATETIME end def sql_for_function(function) case function when :now then 'CURRENT_TIMESTAMP' end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems