github
0 of 0 relevant lines covered (NaN%)
0.0 hits per line
1 |
module SchemaPlus::DefaultExpr |
26✔ |
2 |
module ActiveRecord |
26✔ |
3 |
module ConnectionAdapters |
26✔ |
4 |
module PostgresqlAdapter |
26✔ |
5 |
def default_expr_valid?(expr) |
26✔ |
6 |
true # arbitrary sql is okay in PostgreSQL |
91✔ |
7 |
end
|
|
8 |
|
|
9 |
def sql_for_function(function) |
26✔ |
10 |
case function
|
|
11 |
when :now |
|
12 |
"NOW()"
|
52✔ |
13 |
end
|
|
14 |
end
|
|
15 |
end
|
|
16 |
end
|
|
17 |
end
|
|
18 |
end
|