discourse/lib/generators/site_setting_rename_migration/USAGE
Krzysztof Kotlarek 5055e431a8
DEV: Custom generator for rename site setting migration (#24841)
Ability to automatically generate migration when site setting name is changed.
Example usage: `rails generate site_setting_rename_migration site_description contact_email`
2023-12-13 09:58:45 +11:00

9 lines
375 B
Plaintext

Description:
Generates migration to rename a site setting name from an old name to a new site setting name. This assumes that the new setting is the same data format as the old one.
Example:
bin/rails generate site_setting_rename_migration old_setting_name new_setting_name
This will create:
db/migrate/20231212111111_rename_old_setting_name_setting.rb