You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Save yourself the callbacks and use Sequel's Timestamp Plugin. It's one of many that come in the core.
# Timestamp all model instances using +created_at+ and +updated_at+# (called before loading subclasses)Sequel::Model.plugin:timestamps# Timestamp Album instances, with custom column namesAlbum.plugin:timestamps,:create=>:created_on,:update=>:updated_on# Timestamp Artist instances, forcing an overwrite of the create# timestamp, and setting the update timestamp when creatingAlbum.plugin:timestamps,:force=>true,:update_on_create=>true
The text was updated successfully, but these errors were encountered:
Save yourself the callbacks and use Sequel's Timestamp Plugin. It's one of many that come in the core.
The text was updated successfully, but these errors were encountered: