search for: some_column1

Displaying 1 result from an estimated 1 matches for "some_column1".

Did you mean: some_column
2006 Feb 01
4
exclude a column in save!
...olumn that peeks its value from a sequence (postgres) some times. Other times, I set it to a certain value. This column has a default value of "nextval(''the_sequence'')"... When I want that this column peeks the value from the sequence, I do this: obj = Mymodel.new obj.some_column1 = blah obj.some_column2 = blah obj.some_column3 = blah obj.save! but when looking at the logs, this creates a sql statement like this: INSERT INTO Mymodels (some_column1, some_column2, some_column3, problem_column) VALUES (blah, blah, blah, NULL); this is a problem, because it''s passin...