mirror of
https://github.com/discourse/discourse.git
synced 2024-12-21 16:33:57 +08:00
5055e431a8
Ability to automatically generate migration when site setting name is changed. Example usage: `rails generate site_setting_rename_migration site_description contact_email`
9 lines
375 B
Plaintext
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
|