Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add accredited column to Provider #4787

Merged
merged 2 commits into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions config/analytics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ shared:
- created_at
- updated_at
provider:
- accredited
- selectable_school
- id
- address4
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# frozen_string_literal: true

class ChangeColumnAccreditingProviderToBoolean < ActiveRecord::Migration[8.0]
def change
add_column :provider, :accredited, :boolean, null: false, default: false

add_index :provider, :accredited
end
end
4 changes: 3 additions & 1 deletion 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[8.0].define(version: 2024_11_29_151352) do
ActiveRecord::Schema[8.0].define(version: 2024_12_19_142038) do
# These are extensions that must be enabled in order to support this database
enable_extension "btree_gin"
enable_extension "btree_gist"
Expand Down Expand Up @@ -327,6 +327,8 @@
t.tsvector "searchable"
t.text "address3"
t.boolean "selectable_school", default: false, null: false
t.boolean "accredited", default: false, null: false
t.index ["accredited"], name: "index_provider_on_accredited"
t.index ["accrediting_provider"], name: "index_provider_on_accrediting_provider", where: "(accrediting_provider = 'Y'::text)"
t.index ["can_sponsor_student_visa"], name: "index_provider_on_can_sponsor_student_visa"
t.index ["changed_at"], name: "index_provider_on_changed_at", unique: true
Expand Down
Binary file modified docs/database-diagram.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading