Not sure what happened here.

This commit is contained in:
Jez Caudle 2023-01-27 12:22:34 +00:00
parent b27e424732
commit 737dcc81e2
2 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,8 @@
class RenameCafIdToObjectiveId < ActiveRecord::Migration[7.0] 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
end end

2
db/schema.rb generated
View File

@ -10,7 +10,7 @@
# #
# It's strongly recommended that you check this file into your version control system. # It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.0].define(version: 2023_01_27_091956) do ActiveRecord::Schema[7.0].define(version: 2023_01_27_095856) do
create_table "action_text_rich_texts", charset: "utf8mb4", force: :cascade do |t| create_table "action_text_rich_texts", charset: "utf8mb4", force: :cascade do |t|
t.string "name", null: false t.string "name", null: false
t.text "body", size: :long t.text "body", size: :long