Row Version Migrations

Row Version Migrations is a plugin that automatically generates the following row version columns for every table:

: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).

Tags

Currently tagged with: migrations
You need to Login to tag this item.