add data_migration for rename field for attribute_field. not yet tested
This commit is contained in:
1 parent
5fb94f644d
commit
df6c7afd68
1 file changed
+4
@@ -96,4 +96,8 @@ namespace :data_migration do
|
|||||||
app.save!
|
app.save!
|
||||||
end
|
end
|
||||||
|
|
||||||
|
task :rename_attribute_field => :environment do
|
||||||
|
AttributeField.collection.update({},{'$rename' => {'title' => 'locale_title'}}, multi: true, safe: true)
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
Reference in new issue
Block a user