Row Version Migrations
Row Version Migrations is a plugin that automatically generates created_at, updated_at and lock_version columns for every table. The definitions for those columns look like this:
:created_at, :datetime, :null => false :updated_at, :datetime, :null => false :lock_version, :integer, :null => false, :default => 0
If you have a table for which you do not want row version columns to be generated, simply pass :row_version => false as an option to create_table:
create_table :orders, :row_version => false do |t| ... end
Dependencies
- RedHill on Rails Core (redhillonrails_core).
Installation
EDGE
To install using SVN:ruby script/plugin install svn://rubyforge.org/var/svn/redhillonrails/trunk/vendor/plugins/row_version_migrations
or using HTTP:
ruby script/plugin install http://redhillonrails.rubyforge.org/svn/trunk/vendor/plugins/row_version_migrations
2.0 Stable
To install using SVN:ruby script/plugin install svn://rubyforge.org/var/svn/redhillonrails/branches/stable-2.0/vendor/plugins/row_version_migrations
or using HTTP:
ruby script/plugin install http://redhillonrails.rubyforge.org/svn/branches/stable-2.0/vendor/plugins/row_version_migrations
1.2 Stable
To install using SVN:ruby script/plugin install svn://rubyforge.org/var/svn/redhillonrails/branches/stable-1.2/vendor/plugins/row_version_migrations
or using HTTP:
ruby script/plugin install http://redhillonrails.rubyforge.org/svn/branches/stable-1.2/vendor/plugins/row_version_migrations
1.1.6 Release
To install using SVN:ruby script/plugin install svn://rubyforge.org/var/svn/redhillonrails/tags/release-1.1.6/vendor/plugins/row_version_migrations
or using HTTP:
ruby script/plugin install http://redhillonrails.rubyforge.org/svn/tags/release-1.1.6/vendor/plugins/row_version_migrations
