module SchemaPlus::DefaultExpr::ActiveRecord::ConnectionAdapters::PostgresqlAdapter

Public Instance Methods

default_expr_valid?(expr) click to toggle source
# File lib/schema_plus/default_expr/active_record/connection_adapters/postgresql_adapter.rb, line 5
def default_expr_valid?(expr)
  true # arbitrary sql is okay in PostgreSQL
end
sql_for_function(function) click to toggle source
# File lib/schema_plus/default_expr/active_record/connection_adapters/postgresql_adapter.rb, line 9
def sql_for_function(function)
  case function
  when :now
    "NOW()"
  end
end