add data_migration for rename field for attribute_field. not yet tested
This commit is contained in:
parent
9bfd1d2b0c
commit
669220530d
|
@ -96,4 +96,8 @@ namespace :data_migration do
|
|||
app.save!
|
||||
end
|
||||
|
||||
task :rename_attribute_field => :environment do
|
||||
AttributeField.collection.update({},{'$rename' => {'title' => 'locale_title'}}, multi: true, safe: true)
|
||||
end
|
||||
|
||||
end
|
Reference in New Issue