Not sure what happened here.
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
class RenameCafIdToObjectiveId < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
def change_table
|
||||
remove_foreign_key :principles, :cafs
|
||||
remove_index :principles, :caf_id
|
||||
rename_column :principles, :caf_id, :objective_id
|
||||
add_foreign_key :principles, :objectives
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user