You need to create an oracle sequence that is named TableName_seq, that should do it. This is how to create a sequence: CREATE SEQUENCE TABLENAME_SEQ INCREMENT BY 1 START WITH 100 Chris -- Posted via http://www.ruby-forum.com/.