Method: SchemaPlus::ActiveRecord::ConnectionAdapters::MysqlAdapter::AddColumnOptions#sql_for_function

Defined in:
lib/schema_plus/active_record/connection_adapters/mysql_adapter.rb

#sql_for_function(function) ⇒ Object



173
174
175
176
177
# File 'lib/schema_plus/active_record/connection_adapters/mysql_adapter.rb', line 173

def sql_for_function(function)
  case function
  when :now then 'CURRENT_TIMESTAMP'
  end
end