Hi I am seeing something odd with my postgresql database with Rails 3, there is one model I can't update from Rails. From the rails console I can update other models, but not this particular model.
The model is simple, I can create a records, but after this I can't update a record. It was working before and now it's not. I've logged into the database using pgadmin3 and executed a SQL statement to update a field successfully. However from Rails all I get is an output like this (with no update, missing in the output is the actually SQL for update)
irb(main):023:0> s.save (0.1ms) BEGIN (0.1ms) COMMIT => true
Has anyone come across a problem like this with pgsql and Rails 3?
My models is simple I have a user model and a snippet model, the user model is a devise model, it works file, the snippet model does not.
class User < ActiveRecord::Base has_many :snippets, :dependent => :delete_all end
class Snippet < ActiveRecord::Base belongs_to :user end