Not sure what happened here.
This commit is contained in:
parent
b27e424732
commit
737dcc81e2
@ -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
2
db/schema.rb
generated
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user