Skip to content

Commit

Permalink
make bin/setup run without error
Browse files Browse the repository at this point in the history
  • Loading branch information
compwron committed Feb 6, 2024
1 parent f62f955 commit 7228937
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ class AddReferenceLearningHourTypes < ActiveRecord::Migration[7.0]
disable_ddl_transaction!

def change
add_reference :learning_hours, :learning_hour_type, validate: false, index: {algorithm: :concurrently}
# add_reference :learning_hours, :learning_hour_type, validate: false, index: {algorithm: :concurrently}
add_reference :learning_hours, :learning_hour_type, index: {algorithm: :concurrently}
end
end
5 changes: 2 additions & 3 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema[7.0].define(version: 2023_11_25_150721) do
ActiveRecord::Schema[7.1].define(version: 2023_11_25_150721) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"

Expand Down Expand Up @@ -395,7 +395,6 @@

create_table "learning_hours", force: :cascade do |t|
t.bigint "user_id", null: false
t.integer "learning_type", default: 5
t.string "name", null: false
t.integer "duration_minutes", null: false
t.integer "duration_hours", null: false
Expand Down Expand Up @@ -648,7 +647,7 @@
add_foreign_key "patch_notes", "patch_note_groups"
add_foreign_key "patch_notes", "patch_note_types"
add_foreign_key "placement_types", "casa_orgs"
add_foreign_key "placements", "casa_cases"
add_foreign_key "placements", "casa_cases", validate: false
add_foreign_key "placements", "placement_types"
add_foreign_key "placements", "users", column: "creator_id"
add_foreign_key "preference_sets", "users"
Expand Down

0 comments on commit 7228937

Please sign in to comment.