📅  最后修改于: 2022-03-11 15:04:46.399000             🧑  作者: Mango
rails generate migration rename_title_to_name_in_tasks
class RenameTitleToNameInTasks < ActiveRecord::Migration[6.0]
def change
rename_column :tasks, :title, :name
end
end