It worked this time - def change, not def change_table
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user