Skip to content

openminds/custom_timestamps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CustomTimestamps
================

Some legacy databases have already defined their own created_at or updated_at fields. They can be easily filled in with ActiveRecord before_save filters, but changing this should be trivial. This plugin enables you to set your own column names for these timestamps

Example
=======

class LegacyModel < ActiveRecord::Base
  set_create_column :creation_time
  set_update_column :change_time
end


Copyright (c) 2009 Jan De Poorter, released under the MIT license

About

Use different columns then created_at and updated_at for timestamps

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages