9 lines
270 B
Ruby
9 lines
270 B
Ruby
class RenameCafIdToObjectiveId < ActiveRecord::Migration[7.0]
|
|
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
|