📅  最后修改于: 2022-03-11 15:04:49.409000             🧑  作者: Mango
class RenameTitleToNameInTasks < ActiveRecord::Migration[6.0]
def up
rename_column :tasks, :title, :name
end
def down
rename_column :tasks, :name, :title
end
end