Patches: Browse | Submit New | Admin

[#18209] migration doesn't use version column name specified by :version_column of acts_as_versioned statement

Date:
2008-02-19 15:06
Priority:
3
Submitted By:
Artem Vasiliev (artemv)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
migration doesn't use version column name specified by :version_column of acts_as_versioned statement

Detailed description
suppose we have 
{{{
  acts_as_versioned :version_column => :lock_version
}}}
in Model class; 
and 
{{{
    Model.create_versioned_table
}}}
in migration.

The migration still creates 'version' column instead of 'lock_version'.

Actually not only migration uses hardcoded 'version' name but copying routine too - both are fixed with this patch.

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
custom_version_column_for_migration.patch Download

Changes:

Field Old Value Date By
File Added3383: custom_version_column_for_migration.patch2008-02-19 15:06artemv