July 1, 2009
very psyched to have found this… Trac: http://labs.urielkatz.com/wiki/JStORM Intro by the developer: http://www.urielkatz.com/archive/detail/introducing-jstorm/
Posted via email from Richard Brant’s posterous
Read the full article →
June 16, 2009
Postgres doesn’t seem to handle imports very well. At least not as gracefully as MySQL. When the primary key sequence of a table gets out of whack, you can reset it via psql directly:
SELECT setval('table_name_id_seq', (SELECT MAX(id) FROM table_name)+1);
But that doesn’t see to solve the problem for my rails application. This does:
ActiveRecord::Base.connection.reset_pk_sequence!('table_name')
I posted this because [...]
Read the full article →