You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SELECT "versions".* FROM "versions" WHERE "versions"."item_id" = $1 AND "versions"."item_type" = $2 ORDER BY "versions"."created_at" ASC, "versions"."" ASC
def timestamp_sort_order(direction = "asc")
[arel_table[:created_at].send(direction.downcase)].tap do |array|
array << arel_table[primary_key].send(direction.downcase) if primary_key_is_int?
end
end
Here, the Version.primary_key is nil; even though it is specified in the db schema:
Unique things - we do a few class_evals to extend Contact, Account classes in a funky order; but that shouldn't affect the Version table not being recognized
In some situations, doing:
results in invalid SQL being generated:
The contact class has
Which points to
which does:
Here, the Version.primary_key is nil; even though it is specified in the db schema:
Database: Postgres 9.6?
and
The text was updated successfully, but these errors were encountered: