📜  如何在 Ruby on Rails 迁移中重命名数据库列? - 红宝石代码示例

📅  最后修改于: 2022-03-11 15:04:46.399000             🧑  作者: Mango

代码示例2
rails generate migration rename_title_to_name_in_tasks

class RenameTitleToNameInTasks < ActiveRecord::Migration[6.0]
  def change
    rename_column :tasks, :title, :name
  end
end