summaryrefslogtreecommitdiff
path: root/db/migrate/20231102223203_remove_title_from_checkpoints.rb
blob: 92e54a01a917a248329cb69da44579b8cd6a53ff (plain)
1
2
3
4
5
6
7
8
9
10
11
class RemoveTitleFromCheckpoints < ActiveRecord::Migration[7.1]
  def up
    remove_column :checkpoints, :title
    rename_column :checkpoints, :description, :comment
  end

  def down
    rename_column :checkpoints, :comment, :description
    add_column :checkpoints, :title, :string
  end
end