Ok, can you explain whats a fragment and how to use it?
create table(:posts) do
add :inserted_at, :naive_datetime, default: fragment("now()")
end
the fragment() function is calling a now() function?
Ok, can you explain whats a fragment and how to use it?
create table(:posts) do
add :inserted_at, :naive_datetime, default: fragment("now()")
end
the fragment() function is calling a now() function?