Browse files

Clarify sequence name issue on custom version classes

  • Loading branch information...
1 parent ccdc9cc commit 04bb4027d9c873890d7404dd1db79f953df0dc97 @dvydra dvydra committed Apr 13, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0
@@ -356,6 +356,13 @@ You can specify custom version subclasses with the `:class_name` option:
This allows you to store each model's versions in a separate table, which is useful if you have a lot of versions being created.
+If you are using Postgres, you should also define the sequence that your custom version class will use:
+ class PostVersion < Version
+ self.table_name = :post_versions
+ self.sequence_name = :post_version_id_seq
+ end
Alternatively you could store certain metadata for one type of version, and other metadata for other versions.
If you only use custom version classes and don't use PaperTrail's built-in one, on Rails 3.2 you must:

0 comments on commit 04bb402

Please sign in to comment.