Skip to content

Commit

Permalink
Merge pull request #5746 from rubyforgood/fix-local-db-discrepencies
Browse files Browse the repository at this point in the history
  • Loading branch information
schoork authored May 24, 2024
2 parents c6b08da + 3642afc commit 794ee4d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
1 change: 0 additions & 1 deletion app/models/learning_hour.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ def user_org_learning_topic_enable?
# id :bigint not null, primary key
# duration_hours :integer not null
# duration_minutes :integer not null
# learning_type :integer default(5)
# name :string not null
# occurred_at :datetime not null
# created_at :datetime not null
Expand Down
4 changes: 4 additions & 0 deletions db/migrate/20240523101303_fix_local_discrepencies.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
class FixLocalDiscrepencies < ActiveRecord::Migration[7.1]
def change
end
end
9 changes: 4 additions & 5 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.1].define(version: 2024_05_07_022441) do
ActiveRecord::Schema[7.1].define(version: 2024_05_23_101303) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"

Expand Down Expand Up @@ -420,7 +420,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 @@ -692,14 +691,14 @@
add_foreign_key "learning_hour_types", "casa_orgs"
add_foreign_key "learning_hours", "learning_hour_types"
add_foreign_key "learning_hours", "users"
add_foreign_key "mileage_rates", "casa_orgs"
add_foreign_key "mileage_rates", "casa_orgs", validate: false
add_foreign_key "mileage_rates", "users"
add_foreign_key "notes", "users", column: "creator_id"
add_foreign_key "notes", "users", column: "creator_id", validate: false
add_foreign_key "other_duties", "users", column: "creator_id"
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 794ee4d

Please sign in to comment.