This gem runs in .
Overview
Use the MultiColumnRename gem to efficiently rename several columns in your dataset at the same time. This gem allows you to apply a consistent naming pattern by adding a prefix or suffix to selected columns, or perform advanced renaming using custom SQL expressions.Prerequisites
- Add
prophecy_basicspackage version 1.0.0 or higher to your project.
Parameters
Example
Assume you have the following table that includes the weather forecast for the next four days.- Create a MultiColumnRename gem.
- Open the gem configuration and stay in the Visual view.
- Under Select columns to rename, select all columns.
- For the Rename method, choose Advanced rename.
- Click Select expression > Function.
-
Search for and select the
lowerfunction. -
Inside of the
lowerfunction, click expr > Custom Code. -
Inside of the code box, write
column_name. This applies the function to the column name. - Click Done on the code box, and then click Save on your gem.

