search for: rexecconstraints

Displaying 2 results from an estimated 2 matches for "rexecconstraints".

2006 Apr 25
3
rake test:units fails on Postgresql due to nil
...?page=2 I get through the: rake db:migrate With the tables created properly but then when I run the: rake test:units I get a failure: ActiveRecord::StatementInvalid: RuntimeError: ERROR C23502 Mnull value in column "title" violates not-null constraint FexecMain.c L1750 RExecConstraints: INSERT INTO books ("id") VALUES (2) My only departure from the directions is to use postgresql rather than mysql as the database adapter. -- Posted via http://www.ruby-forum.com/.
2007 Mar 01
1
PostgreSQL primary (sequence) key issue
Hi, I have a sequence set up on one of my tables called seq_user_mytable. I tried the following with no joy: set_primary_key "user_id", :sequence => "seq_user_mytable" and: ActiveRecord::Base.seq_user_mytable again with no joy. How do I implement a sequence in Rails/ActiveRecord? -- Regards Andrew --~--~---------~--~----~------------~-------~--~----~ You received this