Rails automatically inserts values for columns like created_at and updated_at. Can i configure rails in such a way that it updates more columns. For example all my tables have a column called user holding the currentuser value, can I default rails ti insert user for any database change?
Rails automatically inserts values for columns like created_at and updated_at. Can i configure rails
Share
You could try using the before_save function in your model, unless I’ve misunderstood the question.