Remove fk constraints from assignments

This commit is contained in:
Jeffrey Hardy
2024-09-30 12:59:01 -04:00
parent 55d846fce2
commit d916736210
2 changed files with 7 additions and 3 deletions
@@ -0,0 +1,6 @@
class RemoveFkConstraintsFromAssignments < ActiveRecord::Migration[8.0]
def change
remove_foreign_key :assignments, :bubbles
remove_foreign_key :assignments, :users
end
end
Generated
+1 -3
View File
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[8.0].define(version: 2024_09_24_191654) do
ActiveRecord::Schema[8.0].define(version: 2024_09_30_164803) do
create_table "accesses", force: :cascade do |t|
t.integer "bucket_id", null: false
t.integer "user_id", null: false
@@ -142,8 +142,6 @@ ActiveRecord::Schema[8.0].define(version: 2024_09_24_191654) do
add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id"
add_foreign_key "active_storage_variant_records", "active_storage_blobs", column: "blob_id"
add_foreign_key "assignments", "bubbles"
add_foreign_key "assignments", "users"
add_foreign_key "sessions", "users"
add_foreign_key "taggings", "bubbles"
add_foreign_key "taggings", "tags"