It worked this time - def change, not def change_table

This commit is contained in:
2023-01-27 12:41:06 +00:00
parent 737dcc81e2
commit 44e224393a
2 changed files with 4 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
class RenameCafIdToObjectiveId < ActiveRecord::Migration[7.0]
def change_table
def change
remove_foreign_key :principles, :cafs
remove_index :principles, :caf_id
rename_column :principles, :caf_id, :objective_id